Evaluators\BinaryClassifierEvaluator.cs (5)
1506var host = env.Register("EvaluateBinary");
1532private static void MatchColumns(IHost host, MamlEvaluatorBase.ArgumentsBase input, out string label, out string weight, out string name)
1546private static IDataView ExtractWarnings(IHost host, Dictionary<string, IDataView> metrics)
1559private static IDataView ExtractOverallMetrics(IHost host, Dictionary<string, IDataView> metrics, IMamlEvaluator evaluator)
1574private static IDataView ExtractConfusionMatrix(IHost host, Dictionary<string, IDataView> metrics)
Scorers\PredictionTransformer.cs (16)
58private protected readonly IHost Host;
81private protected PredictionTransformerBase(IHost host, TModel model, DataViewSchema trainSchema)
95private protected PredictionTransformerBase(IHost host, ModelLoadContext ctx)
109private protected PredictionTransformerBase(IHost host, ModelLoadContext ctx, TModel model)
116private void InitializeLogic(IHost host, ModelLoadContext ctx)
223/// <param name="host">The local instance of <see cref="IHost"/>.</param>
227private protected SingleFeaturePredictionTransformerBase(IHost host, TModel model, DataViewSchema trainSchema, string featureColumn)
241private protected SingleFeaturePredictionTransformerBase(IHost host, ModelLoadContext ctx)
256private protected SingleFeaturePredictionTransformerBase(IHost host, ModelLoadContext ctx, TModel model)
420internal BinaryPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx, IHost host, TModel model)
502internal MulticlassPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx, IHost host, TModel model)
585internal RegressionPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx, IHost host, TModel model)
633internal RankingPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx, IHost host, TModel model)
785internal static object Create(IHostEnvironment env, ModelLoadContext ctx, IHost host, IPredictorProducing<float> model, Type predictionTransformerType)
796internal static object Create(IHostEnvironment env, ModelLoadContext ctx, IHost host, IPredictorProducing<VBuffer<float>> model, Type predictionTransformerType)
816typeof(IHost),
Transforms\NormalizeColumn.cs (34)
407protected readonly IHost Host;
410private AffineColumnFunction(IHost host)
430public static AffineColumnFunction Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc)
454protected ImplOne(IHost host, TFloat scale, TFloat offset)
481protected ImplVec(IHost host, TFloat[] scale, TFloat[] offset, int[] indicesNonZeroOffset)
525protected readonly IHost Host;
528private CdfColumnFunction(IHost host)
549public static CdfColumnFunction Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc)
575protected ImplOne(IHost host, TFloat mean, TFloat stddev, bool useLog)
603protected ImplVec(IHost host, TFloat[] mean, TFloat[] stddev, bool useLog)
657protected readonly IHost Host;
659protected BinColumnFunction(IHost host)
685public static BinColumnFunction Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc)
721protected IHost Host;
726protected OneColumnFunctionBuilderBase(IHost host, long lim, ValueGetter<TFloat> getSrc)
756protected IHost Host;
762protected VecColumnFunctionBuilderBase(IHost host, long lim, ValueGetter<VBuffer<TFloat>> getSrc)
791protected readonly IHost Host;
799protected SupervisedBinFunctionBuilderBase(IHost host, long lim, int labelColId, DataViewRow dataRow)
882protected OneColumnSupervisedBinFunctionBuilderBase(IHost host, long lim, int valueColId, int labelColId,
911protected VecColumnSupervisedBinFunctionBuilderBase(IHost host, long lim, int valueColId, int labelColId, DataViewRow dataRow)
966public static IColumnFunctionBuilder CreateBuilder(MinMaxArguments args, IHost host,
979public static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.MinMaxColumnOptions column, IHost host,
1003public static IColumnFunctionBuilder CreateBuilder(MeanVarArguments args, IHost host,
1017public static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.MeanVarianceColumnOptions column, IHost host,
1043public static IColumnFunctionBuilder CreateBuilder(LogMeanVarArguments args, IHost host,
1056public static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.LogMeanVarianceColumnOptions column, IHost host,
1083public static IColumnFunctionBuilder CreateBuilder(BinArguments args, IHost host,
1097public static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.BinningColumnOptions column, IHost host,
1123public static IColumnFunctionBuilder CreateBuilder(SupervisedBinArguments args, IHost host,
1150public static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host,
1157private static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host,
1195public static IColumnFunctionBuilder CreateBuilder(RobustScalingArguments args, IHost host,
1210public static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.RobustScalingColumnOptions column, IHost host,
Transforms\NormalizeColumnDbl.cs (42)
645public static IColumnFunction Create(IHost host, TFloat scale, TFloat offset)
650public static IColumnFunction Create(IHost host, TFloat[] scale, TFloat[] offset, int[] indicesNonZeroOffset)
660public ImplOne(IHost host, TFloat scale, TFloat offset)
665public static new ImplOne Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc)
724public ImplVec(IHost host, TFloat[] scale, TFloat[] offset, int[] indicesNonZeroOffset)
729public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc)
971public static IColumnFunction Create(IHost host, TFloat mean, TFloat stddev, bool useLog)
976public static IColumnFunction Create(IHost host, TFloat[] mean, TFloat[] stddev, bool useLog)
985public ImplOne(IHost host, TFloat mean, TFloat stddev, bool useLog)
990public static new ImplOne Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc)
1050public ImplVec(IHost host, TFloat[] mean, TFloat[] stddev, bool useLog)
1055public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc)
1145public static IColumnFunction Create(IHost host, TFloat[] binUpperBounds, bool fixZero)
1150public static IColumnFunction Create(IHost host, TFloat[][] binUpperBounds, bool fixZero)
1163public ImplOne(IHost host, TFloat[] binUpperBounds, bool fixZero)
1173public static new ImplOne Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc)
1236public ImplVec(IHost host, TFloat[][] binUpperBounds, bool fixZero)
1258public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc)
1526protected MinMaxOneColumnFunctionBuilderBase(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc)
1546private MinMaxOneColumnFunctionBuilder(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc)
1551public static IColumnFunctionBuilder Create(NormalizingEstimator.MinMaxColumnOptions column, IHost host, DataViewType srcType,
1574protected MinMaxVecColumnFunctionBuilderBase(IHost host, int cv, long lim, bool fix, ValueGetter<VBuffer<TFloat>> getSrc)
1595private MinMaxVecColumnFunctionBuilder(IHost host, int cv, long lim, bool fix,
1601public static IColumnFunctionBuilder Create(NormalizingEstimator.MinMaxColumnOptions column, IHost host, VectorDataViewType srcType,
1654private MeanVarOneColumnFunctionBuilder(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc, bool useLog, bool useCdf, bool useSampleVariance)
1665public static IColumnFunctionBuilder Create(NormalizingEstimator.MeanVarianceColumnOptions column, IHost host, DataViewType srcType,
1672public static IColumnFunctionBuilder Create(NormalizingEstimator.LogMeanVarianceColumnOptions column, IHost host, DataViewType srcType,
1735private MeanVarVecColumnFunctionBuilder(IHost host, int cv, long lim, bool fix,
1746public static IColumnFunctionBuilder Create(NormalizingEstimator.MeanVarianceColumnOptions column, IHost host, VectorDataViewType srcType,
1754public static IColumnFunctionBuilder Create(NormalizingEstimator.LogMeanVarianceColumnOptions column, IHost host, VectorDataViewType srcType,
1859private BinOneColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, ValueGetter<TFloat> getSrc)
1867public static IColumnFunctionBuilder Create(NormalizingEstimator.BinningColumnOptions column, IHost host, DataViewType srcType,
1903private BinVecColumnFunctionBuilder(IHost host, int cv, long lim, bool fix, int numBins,
1916public static IColumnFunctionBuilder Create(NormalizingEstimator.BinningColumnOptions column, IHost host, VectorDataViewType srcType,
1980private SupervisedBinOneColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, int minBinSize, int valueColumnId, int labelColumnId, DataViewRow dataRow)
2000public static IColumnFunctionBuilder Create(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, int valueColumnId, int labelColumnId, DataViewRow dataRow)
2018private SupervisedBinVecColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, int minBinSize, int valueColumnId, int labelColumnId, DataViewRow dataRow)
2040public static IColumnFunctionBuilder Create(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, int valueColumnId, int labelColumnId, DataViewRow dataRow)
2061private RobustScalerOneColumnFunctionBuilder(IHost host, long lim, bool centerData, uint quantileMin, uint quantileMax, ValueGetter<double> getSrc)
2084public static IColumnFunctionBuilder Create(NormalizingEstimator.RobustScalingColumnOptions column, IHost host, DataViewType srcType,
2117private RobustScalerVecFunctionBuilder(IHost host, long lim, int vectorSize, bool centerData, uint quantileMin, uint quantileMax, ValueGetter<VBuffer<double>> getSrc)
2153public static IColumnFunctionBuilder Create(NormalizingEstimator.RobustScalingColumnOptions column, IHost host, VectorDataViewType srcType,
Transforms\NormalizeColumnSng.cs (42)
803public static IColumnFunction Create(IHost host, TFloat scale, TFloat offset)
808public static IColumnFunction Create(IHost host, TFloat[] scale, TFloat[] offset, int[] indicesNonZeroOffset)
818public ImplOne(IHost host, TFloat scale, TFloat offset)
823public static new ImplOne Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc)
881public ImplVec(IHost host, TFloat[] scale, TFloat[] offset, int[] indicesNonZeroOffset)
886public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc)
1131public static IColumnFunction Create(IHost host, TFloat mean, TFloat stddev, bool useLog)
1136public static IColumnFunction Create(IHost host, TFloat[] mean, TFloat[] stddev, bool useLog)
1145public ImplOne(IHost host, TFloat mean, TFloat stddev, bool useLog)
1150public static new ImplOne Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc)
1210public ImplVec(IHost host, TFloat[] mean, TFloat[] stddev, bool useLog)
1215public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc)
1306public static IColumnFunction Create(IHost host, TFloat[] binUpperBounds, bool fixZero)
1311public static IColumnFunction Create(IHost host, TFloat[][] binUpperBounds, bool fixZero)
1324public ImplOne(IHost host, TFloat[] binUpperBounds, bool fixZero)
1334public static new ImplOne Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc)
1397public ImplVec(IHost host, TFloat[][] binUpperBounds, bool fixZero)
1419public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc)
1689protected MinMaxOneColumnFunctionBuilderBase(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc)
1709private MinMaxOneColumnFunctionBuilder(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc)
1714public static IColumnFunctionBuilder Create(NormalizingEstimator.MinMaxColumnOptions column, IHost host, DataViewType srcType,
1737protected MinMaxVecColumnFunctionBuilderBase(IHost host, int cv, long lim, bool fix, ValueGetter<VBuffer<TFloat>> getSrc)
1758private MinMaxVecColumnFunctionBuilder(IHost host, int cv, long lim, bool fix,
1764public static IColumnFunctionBuilder Create(NormalizingEstimator.MinMaxColumnOptions column, IHost host, VectorDataViewType srcType,
1817private MeanVarOneColumnFunctionBuilder(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc, bool useLog, bool useCdf, bool useSampleVariance)
1828public static IColumnFunctionBuilder Create(NormalizingEstimator.MeanVarianceColumnOptions column, IHost host, DataViewType srcType,
1835public static IColumnFunctionBuilder Create(NormalizingEstimator.LogMeanVarianceColumnOptions column, IHost host, DataViewType srcType,
1898private MeanVarVecColumnFunctionBuilder(IHost host, int cv, long lim, bool fix,
1909public static IColumnFunctionBuilder Create(NormalizingEstimator.MeanVarianceColumnOptions column, IHost host, VectorDataViewType srcType,
1917public static IColumnFunctionBuilder Create(NormalizingEstimator.LogMeanVarianceColumnOptions column, IHost host, VectorDataViewType srcType,
2022private BinOneColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, ValueGetter<TFloat> getSrc)
2030public static IColumnFunctionBuilder Create(NormalizingEstimator.BinningColumnOptions column, IHost host, DataViewType srcType,
2066private BinVecColumnFunctionBuilder(IHost host, int cv, long lim, bool fix, int numBins,
2079public static IColumnFunctionBuilder Create(NormalizingEstimator.BinningColumnOptions column, IHost host, VectorDataViewType srcType,
2144private SupervisedBinOneColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, int minBinSize, int valueColumnId, int labelColumnId, DataViewRow dataRow)
2164public static IColumnFunctionBuilder Create(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, int valueColumnId, int labelColumnId, DataViewRow dataRow)
2182private SupervisedBinVecColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, int minBinSize, int valueColumnId, int labelColumnId, DataViewRow dataRow)
2204public static IColumnFunctionBuilder Create(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, int valueColumnId, int labelColumnId, DataViewRow dataRow)
2225private RobustScalerOneColumnFunctionBuilder(IHost host, long lim, bool centerData, uint quantileMin, uint quantileMax, ValueGetter<TFloat> getSrc)
2248public static IColumnFunctionBuilder Create(NormalizingEstimator.RobustScalingColumnOptions column, IHost host, DataViewType srcType,
2281private RobustScalerVecFunctionBuilder(IHost host, long lim, int vectorSize, bool centerData, uint quantileMin, uint quantileMax, ValueGetter<VBuffer<TFloat>> getSrc)
2315public static IColumnFunctionBuilder Create(NormalizingEstimator.RobustScalingColumnOptions column, IHost host, VectorDataViewType srcType,
Transforms\Normalizer.cs (11)
144internal abstract IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor);
187internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor)
205internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor)
223internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor)
239internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor)
263internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor)
283internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor)
287private readonly IHost _host;
570var host = env.Register($"Column_{i:000}");
612private NormalizingTransformer(IHost host, ModelLoadContext ctx)
635private NormalizingTransformer(IHost host, ModelLoadContext ctx, IDataView input)