Share via


IComponentFactory<TArg1,TArg2,TComponent> Interface

Definition

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

public interface IComponentFactory<in TArg1,in TArg2,out TComponent> : Microsoft.ML.Runtime.IComponentFactory
type IComponentFactory<'TArg1, 'TArg2, 'Component> = interface
    interface IComponentFactory
Public Interface IComponentFactory(Of In TArg1, In TArg2, 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.
TArg2
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, TArg2)

Applies to