IHostEnvironment Interface

Definition

The host environment interface creates hosts for components. Note that the methods of this interface should be called from the main thread for the environment. To get an environment to service another thread, call Fork and pass the return result to that thread.

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

Properties

ComponentCatalog

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

ContextDescription

A string describing the context itself.

(Inherited from IExceptionContext)

Methods

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

Create a host with the given registration name.

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