IHost Interface

Definition

A host is coupled to a component and provides random number generation and concurrency guidance. Note that the random number generation, like the host environment methods, should be accessed only from the main thread for the component.

public interface IHost : Microsoft.ML.Runtime.IHostEnvironment
type IHost = interface
    interface IHostEnvironment
    interface IChannelProvider
    interface IExceptionContext
    interface IProgressChannelProvider
Public Interface IHost
Implements IHostEnvironment
Implements

Properties

ComponentCatalog

The catalog of loadable components (Microsoft.ML.LoadableClassAttribute) that are available in this host.

(Inherited from IHostEnvironment)
ContextDescription

A string describing the context itself.

(Inherited from IExceptionContext)
Rand

The random number generator issued to this component. Note that random number generators are NOT thread safe.

Methods

Process<TException>(TException) (Inherited from IExceptionContext)
Register(String, Nullable<Int32>, Nullable<Boolean>)

Create a host with the given registration name.

(Inherited from IHostEnvironment)
Start(String)

Start a standard message channel.

(Inherited from IChannelProvider)
StartPipe<TMessage>(String)

Start a generic information pipe.

(Inherited from IChannelProvider)
StartProgressChannel(String)

Create a progress channel for a computation named name.

(Inherited from IProgressChannelProvider)

Applies to