Class EstimatorFactory
Estimator factor. Given a distribution instance, create a compatible estimator instance
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Distributions
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public sealed class EstimatorFactory
Properties
Instance
Estimator factory singleton instance
Declaration
public static EstimatorFactory Instance { get; }
Property Value
| Type | Description |
|---|---|
| EstimatorFactory |
Methods
CreateEstimator<T, TDomain>(T)
Creates an estimator instance from a distribution prototype
Declaration
public Estimator<T> CreateEstimator<T, TDomain>(T distProto)
where T : IDistribution<TDomain>
Parameters
| Type | Name | Description |
|---|---|---|
| T | distProto | Distribution prototype |
Returns
| Type | Description |
|---|---|
| Estimator<T> | Estimator instance |
Type Parameters
| Name | Description |
|---|---|
| T | |
| TDomain |
EstimatorType(Type)
Creates an estimator instance from a distribution prototype
Declaration
public Type EstimatorType(Type distType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | distType | Distribution type |
Returns
| Type | Description |
|---|---|
| Type | Estimator instance |
RegisterEstimator(Type, Type, CreateEstimatorMethod)
Registers an estimator. The factory is primed with stock stock estimators. This function allows clients to add in custom estimators
Declaration
public void RegisterEstimator(Type distType, Type estType, CreateEstimatorMethod c)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | distType | Distribution type |
| Type | estType | Estimator type |
| CreateEstimatorMethod | c | Method for creating the estimator |