Share via


IComponentFactory<TArg1,TComponent> Interface

Definition

An interface for creating a component when we take one extra parameter (and an IHostEnvironment).

public interface IComponentFactory<in TArg1,out TComponent> : Microsoft.ML.Runtime.IComponentFactory
type IComponentFactory<'TArg1, 'Component> = interface
    interface IComponentFactory
Public Interface IComponentFactory(Of In TArg1, Out TComponent)
Implements IComponentFactory

Type Parameters

TArg1
This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
TComponent
This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Implements

Methods

CreateComponent(IHostEnvironment, TArg1)

Applies to