Commands\CrossValidationCommand.cs (11)
106public CrossValidationCommand(IHostEnvironment env, Arguments args)
255private RoleMappedData ApplyAllTransformsToData(IHostEnvironment env, IChannel ch, IDataView dstData,
265private RoleMappedData CreateRoleMappedData(IHostEnvironment env, IChannel ch, IDataView data, ITrainer trainer)
346private readonly IHostEnvironment _env;
363private readonly Func<IHostEnvironment, IChannel, IDataView, ITrainer, RoleMappedData> _createExamples;
364private readonly Func<IHostEnvironment, IChannel, IDataView, RoleMappedData, IDataView, RoleMappedData> _applyTransformsToTestData;
366private readonly Func<IHostEnvironment, IChannel, IDataView, RoleMappedData, IDataView, RoleMappedData> _applyTransformsToValidationData;
385IHostEnvironment env,
390Func<IHostEnvironment, IChannel, IDataView, ITrainer, RoleMappedData> createExamples,
391Func<IHostEnvironment, IChannel, IDataView, RoleMappedData, IDataView, RoleMappedData> applyTransformsToTestData,
395Func<IHostEnvironment, IChannel, IDataView, RoleMappedData, IDataView, RoleMappedData> applyTransformsToValidationData = null,
Commands\DataCommand.cs (6)
77protected ImplBase(IHostEnvironment env, TOptions options, string name)
215protected ILegacyDataLoader CreateAndSaveLoader(Func<IHostEnvironment, IMultiStreamSource, ILegacyDataLoader> defaultLoaderFactory = null)
319protected ILegacyDataLoader CreateLoader(Func<IHostEnvironment, IMultiStreamSource, ILegacyDataLoader> defaultLoaderFactory = null)
332Func<IHostEnvironment, IMultiStreamSource, ILegacyDataLoader> defaultLoaderFactory = null,
401public static void SaveLoader(ILegacyDataLoader loader, IFileHandle file, IHostEnvironment host)
416public static void SaveLoader(ILegacyDataLoader loader, Stream stream, IHostEnvironment host)
Commands\ScoreCommand.cs (8)
82public ScoreCommand(IHostEnvironment env, Arguments args)
241public static IDataScorerTransform GetScorer(IPredictor predictor, RoleMappedData data, IHostEnvironment env, RoleMappedSchema trainSchema)
254IHostEnvironment env,
279IHostEnvironment env,
302IHostEnvironment environment,
321Func<IHostEnvironment, IDataView, ISchemaBoundMapper, RoleMappedSchema, IDataScorerTransform> factoryFunc;
363IHostEnvironment env,
393private static bool TryCreateBindableFromScorer(IHostEnvironment env, IPredictor predictor,
Commands\TrainCommand.cs (11)
97public TrainCommand(IHostEnvironment env, Arguments args)
246public static IPredictor Train(IHostEnvironment env, IChannel ch, RoleMappedData data, ITrainer trainer,
252public static IPredictor Train(IHostEnvironment env, IChannel ch, RoleMappedData data, ITrainer trainer, RoleMappedData validData,
258private static IPredictor TrainCore(IHostEnvironment env, IChannel ch, RoleMappedData data, ITrainer trainer, RoleMappedData validData,
285public static bool TryLoadPredictor(IChannel ch, IHostEnvironment env, string inputModelFile, out IPredictor inputPredictor)
317public static void SaveModel(IHostEnvironment env, IChannel ch, IFileHandle output,
342public static void SaveModel(IHostEnvironment env, IChannel ch, Stream outputStream, IPredictor predictor, RoleMappedData data, string command = null)
388public static void SaveDataPipe(IHostEnvironment env, RepositoryWriter repositoryWriter, IDataView dataPipe, bool blankLoader = false)
442public static bool AddNormalizerIfNeeded(IHostEnvironment env, IChannel ch, ITrainer trainer, ref IDataView view, string featureColumn, NormalizeOption autoNorm)
479IDataView ApplyNormalizer(IHostEnvironment innerEnv, IDataView input)
491private static bool AddCacheIfWanted(IHostEnvironment env, IChannel ch, ITrainer trainer, ref RoleMappedData data, bool? cacheData)
DataLoadSave\Binary\BinaryLoader.cs (9)
803internal BinaryLoader(IHostEnvironment env, Arguments args, Stream stream, bool leaveOpen = true)
808public BinaryLoader(IHostEnvironment env, Arguments args, string filename)
813public BinaryLoader(IHostEnvironment env, Arguments args, IMultiStreamSource file)
883private static BinaryLoader Create(IHostEnvironment env, ModelLoadContext ctx, IMultiStreamSource files)
919private static BinaryLoader Create(IHostEnvironment env, ModelLoadContext ctx, Stream stream)
975private static void SaveSchema(IHostEnvironment env, ModelSaveContext ctx, DataViewSchema schema, out int[] unsavableColIndices)
1007public static void SaveInstance(IHostEnvironment env, ModelSaveContext ctx, DataViewSchema schema)
2112private readonly IHostEnvironment _env;
2115public InfoCommand(IHostEnvironment env, Arguments args)
DataLoadSave\LegacyCompositeDataLoader.cs (11)
94public static ILegacyDataLoader Create(IHostEnvironment env, Arguments args, IMultiStreamSource files)
112public static ILegacyDataLoader Create(IHostEnvironment env, ILegacyDataLoader srcLoader,
176public static ILegacyDataLoader ApplyTransforms(IHostEnvironment env, ILegacyDataLoader srcLoader,
177KeyValuePair<string, string>[] tagData, Func<IHostEnvironment, int, IDataView, IDataView> createTransform)
191KeyValuePair<string, string>[] tagData, Func<IHostEnvironment, int, IDataView, IDataView> createTransform)
275public static ILegacyDataLoader ApplyTransform(IHostEnvironment env, ILegacyDataLoader srcLoader,
276string tag, string creationArgs, Func<IHostEnvironment, IDataView, IDataView> createTransform)
293public static ILegacyDataLoader Create(IHostEnvironment env, ModelLoadContext ctx, IMultiStreamSource files)
321public static ILegacyDataLoader Create(IHostEnvironment env, ModelLoadContext ctx,
347public static IDataView LoadSelectedTransforms(ModelLoadContext ctx, IDataView srcView, IHostEnvironment env, Func<string, bool> isTransformTagAccepted)
520public static void SavePipe(IHostEnvironment env, ModelSaveContext ctx, Action<ModelSaveContext> loaderSaveAction, IList<IDataTransform> transforms)
DataLoadSave\Text\TextLoader.cs (8)
1148internal TextLoader(IHostEnvironment env, Options options = null, IMultiStreamSource dataSample = null)
1386internal static bool FileContainsValidSchema(IHostEnvironment env, IMultiStreamSource files, out Options options)
1477internal static TextLoader Create(IHostEnvironment env, ModelLoadContext ctx)
1489internal static ILegacyDataLoader Create(IHostEnvironment env, ModelLoadContext ctx, IMultiStreamSource files)
1491internal static ILegacyDataLoader Create(IHostEnvironment env, Options options, IMultiStreamSource files)
1497internal static IDataView LoadFile(IHostEnvironment env, Options options, IMultiStreamSource fileSource)
1547internal static TextLoader CreateTextLoader<TInput>(IHostEnvironment host,
1567internal static TextLoader CreateTextLoader<TInput>(IHostEnvironment host,
DataView\DataViewConstructionUtils.cs (17)
25public static IDataView CreateFromList<TRow>(IHostEnvironment env, IList<TRow> data,
38public static StreamingDataView<TRow> CreateFromEnumerable<TRow>(IHostEnvironment env, IEnumerable<TRow> data,
51public static StreamingDataView<TRow> CreateFromEnumerable<TRow>(IHostEnvironment env, IEnumerable<TRow> data,
62internal static SchemaDefinition GetSchemaDefinition<TRow>(IHostEnvironment env, DataViewSchema schema)
94private static InternalSchemaDefinition GetInternalSchemaDefinition<TRow>(IHostEnvironment env, DataViewSchema schema)
109public static InputRow<TRow> CreateInputRow<TRow>(IHostEnvironment env, SchemaDefinition schemaDefinition = null)
121public static IDataView LoadPipeWithPredictor(IHostEnvironment env, Stream modelStream, IDataView view)
147public InputRow(IHostEnvironment env, InternalSchemaDefinition schemaDef)
215public InputRowBase(IHostEnvironment env, DataViewSchema schema, InternalSchemaDefinition schemaDef, Delegate[] peeks, Func<int, bool> predicate)
462protected DataViewBase(IHostEnvironment env, string name, InternalSchemaDefinition schemaDefn)
542protected DataViewCursorBase(IHostEnvironment env, DataViewBase<TRow> dataView,
606public ListDataView(IHostEnvironment env, IList<TRow> data, InternalSchemaDefinition schemaDefn)
636public Cursor(IHostEnvironment env, string name, ListDataView<TRow> dataView,
691public StreamingDataView(IHostEnvironment env, IEnumerable<TRow> data, InternalSchemaDefinition schemaDefn)
714public Cursor(IHostEnvironment env, StreamingDataView<TRow> dataView, Func<int, bool> predicate)
757public SingleRowLoopDataView(IHostEnvironment env, InternalSchemaDefinition schemaDefn)
783public Cursor(IHostEnvironment env, SingleRowLoopDataView<TRow> dataView, Func<int, bool> predicate)
DataView\LambdaColumnMapper.cs (4)
20public static IDataView Create<TSrc, TDst>(IHostEnvironment env, string name, IDataView input,
72Func<IHostEnvironment, string, IDataView, Column, DataViewType, ValueMapper<int, int>,
84IHostEnvironment env, string name, IDataView input, Column col,
106public Impl(IHostEnvironment env, string name, IDataView input, OneToOneColumn col,
DataView\LambdaFilter.cs (4)
20public static IDataView Create<TSrc>(IHostEnvironment env, string name, IDataView input,
62Func<IHostEnvironment, string, IDataView, int,
73IHostEnvironment env, string name, IDataView input, int colSrc,
85public Impl(IHostEnvironment env, string name, IDataView input,
EntryPoints\PredictorModelImpl.cs (7)
30internal PredictorModelImpl(IHostEnvironment env, RoleMappedData trainingData, IDataView startingData, IPredictor predictor)
42internal PredictorModelImpl(IHostEnvironment env, Stream stream)
70internal override void Save(IHostEnvironment env, Stream stream)
90internal override PredictorModel Apply(IHostEnvironment env, TransformModel transformModel)
99internal override void PrepareData(IHostEnvironment env, IDataView input, out RoleMappedData roleMappedData, out IPredictor predictor)
109internal override string[] GetLabelInfo(IHostEnvironment env, out DataViewType labelType)
138internal override RoleMappedSchema GetTrainingSchema(IHostEnvironment env)
EntryPoints\TransformModelImpl.cs (7)
60public TransformModelImpl(IHostEnvironment env, IDataView result, IDataView input)
71private TransformModelImpl(IHostEnvironment env, DataViewSchema schemaRoot, IDataView chain)
84public TransformModelImpl(IHostEnvironment env, DataViewSchema schemaRoot, IDataTransform[] xfs)
108public TransformModelImpl(IHostEnvironment env, Stream stream)
136internal override IDataView Apply(IHostEnvironment env, IDataView input)
146internal override TransformModel Apply(IHostEnvironment env, TransformModel input)
169internal override void Save(IHostEnvironment env, Stream stream)
Evaluators\AnomalyDetectionEvaluator.cs (4)
80public AnomalyDetectionEvaluator(IHostEnvironment env, Arguments args)
449public Aggregator(IHostEnvironment env, int reservoirSize, int topK, int k, Double p, bool streaming, int nameIndex, string stratName)
651public AnomalyDetectionMamlEvaluator(IHostEnvironment env, Arguments args)
814public static CommonOutputs.CommonEvaluateOutput AnomalyDetection(IHostEnvironment env, AnomalyDetectionMamlEvaluator.Arguments input)
Evaluators\BinaryClassifierEvaluator.cs (7)
110public BinaryClassifierEvaluator(IHostEnvironment env, Arguments args)
570public Aggregator(IHostEnvironment env, ReadOnlyMemory<char>[] classNames, bool weighted, int aucReservoirSize,
1060public BinaryPerInstanceEvaluator(IHostEnvironment env, DataViewSchema schema, string scoreCol, string probCol, string labelCol, Single threshold, bool useRaw)
1080private BinaryPerInstanceEvaluator(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema schema)
1106public static BinaryPerInstanceEvaluator Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema schema)
1322public BinaryClassifierMamlEvaluator(IHostEnvironment env, Arguments args)
1503public static CommonOutputs.ClassificationEvaluateOutput Binary(IHostEnvironment env, BinaryClassifierMamlEvaluator.Arguments input)
Evaluators\ClusteringEvaluator.cs (7)
49public ClusteringEvaluator(IHostEnvironment env, Arguments args)
399internal Aggregator(IHostEnvironment env, DataViewSchema.Column? features, int scoreVectorSize, bool calculateDbi, bool weighted, string stratName)
589public ClusteringPerInstanceEvaluator(IHostEnvironment env, DataViewSchema schema, string scoreCol, int numClusters)
602private ClusteringPerInstanceEvaluator(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema schema)
621public static ClusteringPerInstanceEvaluator Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema schema)
784public ClusteringMamlEvaluator(IHostEnvironment env, Arguments args)
858public static CommonOutputs.CommonEvaluateOutput Clustering(IHostEnvironment env, ClusteringMamlEvaluator.Arguments input)
Evaluators\EvaluatorBase.cs (6)
25private protected EvaluatorBase(IHostEnvironment env, string registrationName)
248private protected AggregatorBase(IHostEnvironment env, string stratName)
304public void GetWarnings(Dictionary<string, IDataView> dict, IHostEnvironment env)
452private protected RowToRowEvaluatorBase(IHostEnvironment env, string registrationName)
479protected PerInstanceEvaluatorBase(IHostEnvironment env, DataViewSchema schema, string scoreCol, string labelCol)
494protected PerInstanceEvaluatorBase(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema schema)
Evaluators\EvaluatorUtils.cs (27)
30private static volatile Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>> _knownEvaluatorFactories;
32public static Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>> Instance
36Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>> result = _knownEvaluatorFactories;
39var tmp = new Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>>
59public static IMamlEvaluator GetEvaluator(IHostEnvironment env, DataViewSchema schema)
375private static IDataView AddTextColumn<TSrc>(IHostEnvironment env, IDataView input, string inputColName, string outputColName,
390public static IDataView AddFoldIndex(IHostEnvironment env, IDataView input, int curFold)
409private static IDataView AddKeyColumn<TSrc>(IHostEnvironment env, IDataView input, string inputColName, string outputColName,
431public static IDataView AddFoldIndex(IHostEnvironment env, IDataView input, int curFold, int numFolds)
459public static void ReconcileSlotNames<T>(IHostEnvironment env, IDataView[] views, string columnName, PrimitiveDataViewType itemType, T def = default(T))
602public static void ReconcileKeyValues(IHostEnvironment env, IDataView[] views, string columnName, DataViewType keyValueType)
643public static void ReconcileKeyValuesWithNoNames(IHostEnvironment env, IDataView[] views, string columnName, ulong keyCount)
672public static void ReconcileVectorKeyValues(IHostEnvironment env, IDataView[] views, string columnName, DataViewType keyValueType)
752public static IDataView[] ConcatenatePerInstanceDataViews(IHostEnvironment env, IMamlEvaluator eval, bool collate, bool outputFoldIndex, RoleMappedData[] perInstance, out string[] variableSizeVectorColumnNames)
787public static IDataView ConcatenateOverallMetrics(IHostEnvironment env, IDataView[] metrics)
805private static IDataView AppendPerInstanceDataViews(IHostEnvironment env, string labelColName,
984private static IDataView AddVarLengthColumn<TSrc>(IHostEnvironment env, IDataView idv, string variableSizeVectorColumnName, VectorDataViewType typeSrc)
1051internal static IDataView GetOverallMetricsData(IHostEnvironment env, IDataView data, int numFolds, out AggregatedMetric[] agg,
1081internal static AggregatedMetric[] ComputeMetricsSum(IHostEnvironment env, IDataView data, int numFolds, out int isWeightedCol,
1214internal static IDataView GetAverageToDataView(IHostEnvironment env, DataViewSchema schema, AggregatedMetric[] agg, AggregatedMetric[] weightedAgg,
1295private static void AddVectorColumn(this ArrayDataViewBuilder dvBldr, IHostEnvironment env, DataViewSchema schema,
1338public static IDataView CombineFoldMetricsDataViews(IHostEnvironment env, IDataView data, int numFolds)
1536public static string GetPerFoldResults(IHostEnvironment env, IDataView fold, out string weightedMetrics)
1569private static string GetFoldMetricsAsString(IHostEnvironment env, IDataView data, out string weightedMetricsString)
1694public static void PrintOverallMetrics(IHostEnvironment env, IChannel ch, string filename, IDataView overall, int numFolds)
1756public static void SavePerInstance(IHostEnvironment env, IChannel ch, string filename, IDataView data,
1770public static IDataView GetNonStratifiedMetrics(IHostEnvironment env, IDataView data)
Evaluators\MulticlassClassificationEvaluator.cs (7)
66public MulticlassClassificationEvaluator(IHostEnvironment env, Arguments args)
397public Aggregator(IHostEnvironment env, ReadOnlyMemory<char>[] classNames, int scoreVectorSize, bool weighted, int? outputTopKAcc, string stratName)
614public MulticlassPerInstanceEvaluator(IHostEnvironment env, DataViewSchema schema, DataViewSchema.Column scoreColumn, string labelCol)
639private MulticlassPerInstanceEvaluator(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema schema)
668public static MulticlassPerInstanceEvaluator Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema schema)
897public MulticlassClassificationMamlEvaluator(IHostEnvironment env, Arguments args)
1091public static CommonOutputs.ClassificationEvaluateOutput Multiclass(IHostEnvironment env, MulticlassClassificationMamlEvaluator.Arguments input)
Evaluators\MultiOutputRegressionEvaluator.cs (7)
45public MultiOutputRegressionEvaluator(IHostEnvironment env, Arguments args)
288public Aggregator(IHostEnvironment env, IRegressionLoss lossFunction, int size, bool weighted, string stratName)
403public MultiOutputRegressionPerInstanceEvaluator(IHostEnvironment env, DataViewSchema schema, string scoreCol,
410private MultiOutputRegressionPerInstanceEvaluator(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema schema)
419public static MultiOutputRegressionPerInstanceEvaluator Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema schema)
629public MultiOutputRegressionMamlEvaluator(IHostEnvironment env, Arguments args)
774public static CommonOutputs.CommonEvaluateOutput MultiOutputRegression(IHostEnvironment env, MultiOutputRegressionMamlEvaluator.Arguments input)
Evaluators\QuantileRegressionEvaluator.cs (7)
37public QuantileRegressionEvaluator(IHostEnvironment env, Arguments args)
219public Aggregator(IHostEnvironment env, IRegressionLoss lossFunction, bool weighted, int size,
284public QuantileRegressionPerInstanceEvaluator(IHostEnvironment env, DataViewSchema schema, string scoreCol, string labelCol, int scoreSize, VBuffer<ReadOnlyMemory<char>> quantiles)
298private QuantileRegressionPerInstanceEvaluator(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema schema)
317public static QuantileRegressionPerInstanceEvaluator Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema schema)
477public QuantileRegressionMamlEvaluator(IHostEnvironment env, Arguments args)
559public static CommonOutputs.CommonEvaluateOutput QuantileRegression(IHostEnvironment env, QuantileRegressionMamlEvaluator.Arguments input)
Evaluators\RankingEvaluator.cs (9)
72public RankingEvaluator(IHostEnvironment env, RankingEvaluatorOptions options)
436public Aggregator(IHostEnvironment env, Double[] labelGains, int truncationLevel, bool groupSummary, bool weighted, string stratName)
589public RankingPerInstanceTransform(IHostEnvironment env, IDataView input, string labelCol, string scoreCol, string groupCol,
595private RankingPerInstanceTransform(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
600public static RankingPerInstanceTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
701public Transform(IHostEnvironment env, IDataView input, string labelCol, string scoreCol, string groupCol,
715public Transform(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
877public RankingMamlEvaluator(IHostEnvironment env, Arguments args)
1081public static CommonOutputs.CommonEvaluateOutput Ranking(IHostEnvironment env, RankingMamlEvaluator.Arguments input)
Evaluators\RegressionEvaluator.cs (7)
50public RegressionEvaluator(IHostEnvironment env, Arguments args)
143public Aggregator(IHostEnvironment env, IRegressionLoss lossFunction, bool weighted, string stratName)
220public RegressionPerInstanceEvaluator(IHostEnvironment env, DataViewSchema schema, string scoreCol, string labelCol)
226private RegressionPerInstanceEvaluator(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema schema)
235public static RegressionPerInstanceEvaluator Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema schema)
351public RegressionMamlEvaluator(IHostEnvironment env, Arguments args)
386public static CommonOutputs.CommonEvaluateOutput Regression(IHostEnvironment env, RegressionMamlEvaluator.Arguments input)
Prediction\Calibrator.cs (50)
211private protected CalibratedModelParametersBase(IHostEnvironment env, string name, TSubModel predictor, TCalibrator calibrator)
273private protected static TSubModel GetPredictor(IHostEnvironment env, ModelLoadContext ctx)
280private protected static TCalibrator GetCalibrator(IHostEnvironment env, ModelLoadContext ctx)
307private protected ValueMapperCalibratedModelParametersBase(IHostEnvironment env, string name, TSubModel predictor, TCalibrator calibrator)
406internal ValueMapperCalibratedModelParameters(IHostEnvironment env, TSubModel predictor, TCalibrator calibrator)
435private ValueMapperCalibratedModelParameters(IHostEnvironment env, ModelLoadContext ctx, TSubModel predictor, TCalibrator calibrator)
440private static CalibratedModelParametersBase Create(IHostEnvironment env, ModelLoadContext ctx)
480internal FeatureWeightsCalibratedModelParameters(IHostEnvironment env, TSubModel predictor,
502private FeatureWeightsCalibratedModelParameters(IHostEnvironment env, ModelLoadContext ctx,
510private static CalibratedModelParametersBase Create(IHostEnvironment env, ModelLoadContext ctx)
556internal ParameterMixingCalibratedModelParameters(IHostEnvironment env, TSubModel predictor, TCalibrator calibrator)
579private ParameterMixingCalibratedModelParameters(IHostEnvironment env, ModelLoadContext ctx, TSubModel predictor, TCalibrator calibrator)
587private static CalibratedModelParametersBase Create(IHostEnvironment env, ModelLoadContext ctx)
659public Bound(IHostEnvironment env, SchemaBindableCalibratedModelParameters<TSubModel, TCalibrator> parent, RoleMappedSchema schema)
752internal SchemaBindableCalibratedModelParameters(IHostEnvironment env, TSubModel predictor, TCalibrator calibrator)
759private SchemaBindableCalibratedModelParameters(IHostEnvironment env, ModelLoadContext ctx)
766internal static CalibratedModelParametersBase Create(IHostEnvironment env, ModelLoadContext ctx)
800public ISchemaBoundMapper Bind(IHostEnvironment env, RoleMappedSchema schema)
817internal static object Create(IHostEnvironment env, ModelLoadContext ctx, object predictor, ICalibrator calibrator, Type calibratedModelParametersType)
823typeof(IHostEnvironment),
844private static bool NeedCalibration(IHostEnvironment env, IChannel ch, ICalibratorTrainer calibrator,
907public static IPredictor TrainCalibratorIfNeeded(IHostEnvironment env, IChannel ch, ICalibratorTrainer calibrator,
933public static IPredictor GetCalibratedPredictor(IHostEnvironment env, IChannel ch, ICalibratorTrainer caliTrainer,
940public static ICalibrator TrainCalibrator(IHostEnvironment env, IChannel ch, ICalibratorTrainer caliTrainer, IDataView scored, string labelColumn, string scoreColumn, string weightColumn = null, int maxRows = _maxCalibrationExamples)
1013public static ICalibrator TrainCalibrator(IHostEnvironment env, IChannel ch, ICalibratorTrainer caliTrainer, IPredictor predictor, RoleMappedData data, int maxRows = _maxCalibrationExamples)
1027public static IPredictorProducing<float> CreateCalibratedPredictor<TSubPredictor, TCalibrator>(IHostEnvironment env, TSubPredictor predictor, TCalibrator cali)
1056public ICalibratorTrainer CreateComponent(IHostEnvironment env)
1092public NaiveCalibratorTrainer(IHostEnvironment env)
1202/// <param name="env">The <see cref="IHostEnvironment"/> to use.</param>
1206internal NaiveCalibrator(IHostEnvironment env, float min, float binSize, float[] binProbs)
1215private NaiveCalibrator(IHostEnvironment env, ModelLoadContext ctx)
1241internal static NaiveCalibrator Create(IHostEnvironment env, ModelLoadContext ctx)
1429protected CalibratorTrainerBase(IHostEnvironment env, string name)
1465public ICalibratorTrainer CreateComponent(IHostEnvironment env)
1479public PlattCalibratorTrainer(IHostEnvironment env)
1643public ICalibratorTrainer CreateComponent(IHostEnvironment env)
1657internal FixedPlattCalibratorTrainer(IHostEnvironment env, Arguments args)
1707internal PlattCalibrator(IHostEnvironment env, Double slope, Double offset)
1715private PlattCalibrator(IHostEnvironment env, ModelLoadContext ctx)
1731internal static PlattCalibrator Create(IHostEnvironment env, ModelLoadContext ctx)
1840public ICalibratorTrainer CreateComponent(IHostEnvironment env)
1875public PavCalibratorTrainer(IHostEnvironment env)
1970/// <param name="env">The <see cref="IHostEnvironment"/> to use.</param>
1974internal IsotonicCalibrator(IHostEnvironment env, ImmutableArray<float> mins, ImmutableArray<float> maxes, ImmutableArray<float> values)
1992private IsotonicCalibrator(IHostEnvironment env, ModelLoadContext ctx)
2036internal static IsotonicCalibrator Create(IHostEnvironment env, ModelLoadContext ctx)
2152public static CommonOutputs.CalibratorOutput Platt(IHostEnvironment env, NoArgumentsInput input)
2163public static CommonOutputs.CalibratorOutput Naive(IHostEnvironment env, NoArgumentsInput input)
2174public static CommonOutputs.CalibratorOutput Pav(IHostEnvironment env, NoArgumentsInput input)
2185public static CommonOutputs.CalibratorOutput FixedPlatt(IHostEnvironment env, FixedPlattInput input)
Prediction\CalibratorCatalog.cs (19)
48private protected readonly IHostEnvironment Host;
62private protected CalibratorEstimatorBase(IHostEnvironment env,
154private protected abstract CalibratorTransformer<TICalibrator> Create(IHostEnvironment env, TICalibrator calibrator, string scoreColumnName);
172private protected CalibratorTransformer(IHostEnvironment env, TICalibrator calibrator, string loaderSignature, string scoreColumnName)
181private protected CalibratorTransformer(IHostEnvironment env, ModelLoadContext ctx, string loaderSignature)
349internal PlattCalibratorEstimator(IHostEnvironment env,
357private protected override CalibratorTransformer<PlattCalibrator> Create(IHostEnvironment env, PlattCalibrator calibrator, string scoreColumnName)
380internal FixedPlattCalibratorEstimator(IHostEnvironment env,
394private protected override CalibratorTransformer<PlattCalibrator> Create(IHostEnvironment env, PlattCalibrator calibrator, string scoreColumnName)
405internal PlattCalibratorTransformer(IHostEnvironment env, PlattCalibrator calibrator, string scoreColumnName)
411internal PlattCalibratorTransformer(IHostEnvironment env, ModelLoadContext ctx)
437internal NaiveCalibratorEstimator(IHostEnvironment env,
445private protected override CalibratorTransformer<NaiveCalibrator> Create(IHostEnvironment env, NaiveCalibrator calibrator, string scoreColumnName)
456internal NaiveCalibratorTransformer(IHostEnvironment env, NaiveCalibrator calibrator, string scoreColumnName)
462internal NaiveCalibratorTransformer(IHostEnvironment env, ModelLoadContext ctx)
486internal IsotonicCalibratorEstimator(IHostEnvironment env,
494private protected override CalibratorTransformer<IsotonicCalibrator> Create(IHostEnvironment env, IsotonicCalibrator calibrator, string scoreColumnName)
506internal IsotonicCalibratorTransformer(IHostEnvironment env, IsotonicCalibrator calibrator, string scoreColumnName)
512private IsotonicCalibratorTransformer(IHostEnvironment env, ModelLoadContext ctx)
Prediction\PredictionEngine.cs (4)
22internal PipeEngine(IHostEnvironment env, IDataView pipe, bool ignoreMissingColumns, SchemaDefinition schemaDefinition = null)
61internal PredictionEngine(IHostEnvironment env, ITransformer transformer, bool ignoreMissingColumns,
108private protected PredictionEngineBase(IHostEnvironment env, ITransformer transformer, bool ignoreMissingColumns,
123private protected virtual void PredictionEngineCore(IHostEnvironment env, DataViewConstructionUtils.InputRow<TSrc> inputRow,
Scorers\BinaryClassifierScorer.cs (6)
55private static ISchemaBoundMapper WrapIfNeeded(IHostEnvironment env, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema)
105private static ISchemaBoundMapper WrapCore<T>(IHostEnvironment env, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema)
126internal BinaryClassifierScorer(IHostEnvironment env, Arguments args, IDataView data, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema)
137private BinaryClassifierScorer(IHostEnvironment env, BinaryClassifierScorer transform, IDataView newSource)
158public static BinaryClassifierScorer Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
224private protected override IDataTransform ApplyToDataCore(IHostEnvironment env, IDataView newSource)
Scorers\FeatureContributionCalculation.cs (9)
56private static IDataScorerTransform Create(IHostEnvironment env, Arguments args, IDataView data, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema)
75private static ISchemaBindableMapper Create(IHostEnvironment env, Arguments args, IPredictor predictor)
85private static ISchemaBindableMapper Create(IHostEnvironment env, ModelLoadContext ctx)
100private readonly IHostEnvironment _env;
119public BindableMapper(IHostEnvironment env, IFeatureContributionMapper predictor, int topContributionsCount, int bottomContributionsCount, bool normalize, bool stringify)
138public BindableMapper(IHostEnvironment env, ModelLoadContext ctx)
162public ISchemaBoundMapper Bind(IHostEnvironment env, RoleMappedSchema schema)
297private readonly IHostEnvironment _env;
313public RowMapper(IHostEnvironment env, BindableMapper parent, RoleMappedSchema schema)
Scorers\GenericScorer.cs (7)
65private static Bindings Create(IHostEnvironment env, ISchemaBindableMapper bindable, DataViewSchema input,
89public Bindings ApplyToSchema(IHostEnvironment env, DataViewSchema input)
104IHostEnvironment env, ISchemaBindableMapper bindable, DataViewSchema input)
153internal GenericScorer(IHostEnvironment env, ScorerArgumentsBase args, IDataView data,
170private GenericScorer(IHostEnvironment env, GenericScorer transform, IDataView data)
191public static GenericScorer Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
257private protected override IDataTransform ApplyToDataCore(IHostEnvironment env, IDataView newSource)
Scorers\MulticlassClassificationScorer.cs (12)
107private LabelNameBindableMapper(IHostEnvironment env, ISchemaBoundMapper mapper, VectorDataViewType type, Delegate getter,
113private LabelNameBindableMapper(IHostEnvironment env, ISchemaBindableMapper bindable, VectorDataViewType type, Delegate getter,
161private static ISchemaBindableMapper Create(IHostEnvironment env, ModelLoadContext ctx)
229ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema)
238internal static ISchemaBoundMapper CreateBound<T>(IHostEnvironment env, ISchemaBoundRowMapper mapper, VectorDataViewType type, Delegate getter,
282public Bound(IHostEnvironment env, ISchemaBoundRowMapper mapper, VectorDataViewType type, ValueGetter<VBuffer<T>> getter,
405private static ISchemaBoundMapper WrapIfNeeded(IHostEnvironment env, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema)
485internal static ISchemaBoundMapper WrapCore<T>(IHostEnvironment env, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema)
512internal MulticlassClassificationScorer(IHostEnvironment env, Arguments args, IDataView data, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema)
518private MulticlassClassificationScorer(IHostEnvironment env, MulticlassClassificationScorer transform, IDataView newSource)
533private static MulticlassClassificationScorer Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
554private protected override IDataTransform ApplyToDataCore(IHostEnvironment env, IDataView newSource)
Scorers\PredictionTransformer.cs (26)
322internal AnomalyPredictionTransformer(IHostEnvironment env, TModel model, DataViewSchema inputSchema, string featureColumn,
333internal AnomalyPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx)
392internal BinaryPredictionTransformer(IHostEnvironment env, TModel model, DataViewSchema inputSchema, string featureColumn,
403internal BinaryPredictionTransformer(IHostEnvironment env, TModel model, DataViewSchema inputSchema, string featureColumn, string labelColumn,
414internal BinaryPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx)
420internal BinaryPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx, IHost host, TModel model)
484internal MulticlassPredictionTransformer(IHostEnvironment env, TModel model, DataViewSchema inputSchema, string featureColumn, string labelColumn,
496internal MulticlassPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx)
502internal MulticlassPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx, IHost host, TModel model)
573internal RegressionPredictionTransformer(IHostEnvironment env, TModel model, DataViewSchema inputSchema, string featureColumn)
579internal RegressionPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx)
585internal RegressionPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx, IHost host, TModel model)
621internal RankingPredictionTransformer(IHostEnvironment env, TModel model, DataViewSchema inputSchema, string featureColumn)
627internal RankingPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx)
633internal RankingPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx, IHost host, TModel model)
669internal ClusteringPredictionTransformer(IHostEnvironment env, TModel model, DataViewSchema inputSchema, string featureColumn,
680internal ClusteringPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx)
719public static ISingleFeaturePredictionTransformer<object> Create(IHostEnvironment env, ModelLoadContext ctx)
736public static ISingleFeaturePredictionTransformer<object> Create(IHostEnvironment env, ModelLoadContext ctx)
753public static ISingleFeaturePredictionTransformer<object> Create(IHostEnvironment env, ModelLoadContext ctx)
771public static ISingleFeaturePredictionTransformer<object> Create(IHostEnvironment env, ModelLoadContext ctx)
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)
814typeof(IHostEnvironment),
861public static AnomalyPredictionTransformer<IPredictorProducing<float>> Create(IHostEnvironment env, ModelLoadContext ctx)
869public static ClusteringPredictionTransformer<IPredictorProducing<VBuffer<float>>> Create(IHostEnvironment env, ModelLoadContext ctx)
Transforms\ColumnConcatenatingTransformer.cs (7)
231internal ColumnConcatenatingTransformer(IHostEnvironment env, string outputColumnName, params string[] inputColumnNames)
239internal ColumnConcatenatingTransformer(IHostEnvironment env, params ColumnOptions[] columns) :
283private ColumnConcatenatingTransformer(IHostEnvironment env, ModelLoadContext ctx) :
369internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input)
389internal static IDataTransform Create(IHostEnvironment env, TaggedOptions options, IDataView input)
411private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
417private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema)
Transforms\ColumnCopying.cs (7)
57internal ColumnCopyingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName) :
63internal ColumnCopyingEstimator(IHostEnvironment env, params (string outputColumnName, string inputColumnName)[] columns)
115internal ColumnCopyingTransformer(IHostEnvironment env, params (string outputColumnName, string inputColumnName)[] columns)
147internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input)
157private static ColumnCopyingTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
180private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
184private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema)
Transforms\ColumnSelecting.cs (15)
80private ColumnSelectingEstimator(IHostEnvironment env, params string[] keepColumns)
95internal ColumnSelectingEstimator(IHostEnvironment env, string[] keepColumns,
111internal static ColumnSelectingEstimator KeepColumns(IHostEnvironment env, params string[] columnsToKeep)
122internal static ColumnSelectingEstimator DropColumns(IHostEnvironment env, params string[] columnsToDrop)
224internal ColumnSelectingTransformer(IHostEnvironment env, string[] keepColumns, string[] dropColumns,
265private static ColumnSelectingTransformer LoadDropColumnsTransform(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
313private static bool GetHiddenOption(IHostEnvironment env, HiddenColumnOption option)
329private static ColumnSelectingTransformer LoadChooseColumnsTransform(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
371private static ColumnSelectingTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
402private static IDataView Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
426internal static IDataView CreateKeep(IHostEnvironment env, IDataView input, string[] keepColumns, bool keepHidden = false)
430internal static IDataView CreateDrop(IHostEnvironment env, IDataView input, params string[] dropColumns)
434private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input)
659public SelectColumnsDataTransform(IHostEnvironment env, ColumnSelectingTransformer transform, Mapper mapper, IDataView input)
728IDataTransform ITransformTemplate.ApplyToData(IHostEnvironment env, IDataView newSource)
Transforms\Hashing.cs (8)
178internal HashingTransformer(IHostEnvironment env, params HashingEstimator.ColumnOptions[] columns) :
192internal HashingTransformer(IHostEnvironment env, IDataView input, params HashingEstimator.ColumnOptions[] columns) :
278private static HashingTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
319private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
323private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema)
327private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input)
1914internal HashingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null,
1928internal HashingEstimator(IHostEnvironment env, params ColumnOptions[] columns)
Transforms\KeyToValue.cs (8)
85internal KeyToValueMappingTransformer(IHostEnvironment env, string outputColumnName, string inputColumnName = null)
93internal KeyToValueMappingTransformer(IHostEnvironment env, params (string outputColumnName, string inputColumnName)[] columns)
102internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input)
116private static KeyToValueMappingTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
133private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
139private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema)
620internal KeyToValueMappingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null)
625internal KeyToValueMappingEstimator(IHostEnvironment env, params (string outputColumnName, string inputColumnName)[] columns)
Transforms\KeyToVector.cs (8)
122internal KeyToVectorMappingTransformer(IHostEnvironment env, params KeyToVectorMappingEstimator.ColumnOptions[] columns) :
161private static KeyToVectorMappingTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
193private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input)
214private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
218private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema)
799internal KeyToVectorMappingEstimator(IHostEnvironment env, params ColumnOptions[] columns)
804internal KeyToVectorMappingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, bool outputCountVector = Defaults.OutputCountVector)
809private KeyToVectorMappingEstimator(IHostEnvironment env, KeyToVectorMappingTransformer transformer)
Transforms\NormalizeColumn.cs (6)
296public static IDataView CreateMinMaxNormalizer(IHostEnvironment env, IDataView input, string outputColumnName, string inputColumnName = null)
307internal static IDataTransform Create(IHostEnvironment env, MinMaxArguments args, IDataView input)
325internal static IDataTransform Create(IHostEnvironment env, MeanVarArguments args, IDataView input)
345internal static IDataTransform Create(IHostEnvironment env, LogMeanVarArguments args, IDataView input)
365internal static IDataTransform Create(IHostEnvironment env, BinArguments args, IDataView input)
386internal static IDataTransform Create(IHostEnvironment env, RobustScalingArguments args, IDataView input)
Transforms\Normalizer.cs (10)
298internal NormalizingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, NormalizationMode mode = NormalizationMode.MinMax)
306/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param>
309internal NormalizingEstimator(IHostEnvironment env, NormalizationMode mode, params (string outputColumnName, string inputColumnName)[] columns)
320/// <param name="env">The private instance of the <see cref="IHostEnvironment"/>.</param>
322internal NormalizingEstimator(IHostEnvironment env, params ColumnOptionsBase[] columns)
524private NormalizingTransformer(IHostEnvironment env, ColumnOptions[] columns)
531internal static NormalizingTransformer Train(IHostEnvironment env, IDataView data, NormalizingEstimator.ColumnOptionsBase[] columns)
655private static NormalizingTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
664private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
676private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema)
Transforms\SkipTakeFilter.cs (8)
88private SkipTakeFilter(long skip, long take, IHostEnvironment env, IDataView input)
104internal SkipTakeFilter(IHostEnvironment env, SkipOptions options, IDataView input)
115internal SkipTakeFilter(IHostEnvironment env, TakeOptions options, IDataView input)
120IDataTransform ITransformTemplate.ApplyToData(IHostEnvironment env, IDataView newSource)
123public static SkipTakeFilter Create(IHostEnvironment env, Options options, IDataView input)
134public static SkipTakeFilter Create(IHostEnvironment env, SkipOptions options, IDataView input)
142public static SkipTakeFilter Create(IHostEnvironment env, TakeOptions options, IDataView input)
151public static SkipTakeFilter Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
Transforms\SlotsDroppingTransformer.cs (7)
264internal SlotsDroppingTransformer(IHostEnvironment env, string outputColumnName, string inputColumnName = null, int min = default, int? max = null)
274internal SlotsDroppingTransformer(IHostEnvironment env, params ColumnOptions[] columns)
282private SlotsDroppingTransformer(IHostEnvironment env, ModelLoadContext ctx)
306internal static SlotsDroppingTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
314private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input)
321private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
325private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema)
Transforms\TrainAndScoreTransformer.cs (6)
61internal static IDataTransform Create(IHostEnvironment env,
78private static IDataTransform Create(IHostEnvironment env, Arguments args, IDataView input)
177internal static IDataTransform Create(IHostEnvironment env,
202private static IDataTransform Create(IHostEnvironment env, Arguments args, IDataView input)
214internal static IDataTransform Create(IHostEnvironment env, Arguments args, IDataView input, IComponentFactory<IPredictor, ISchemaBindableMapper> mapperFactory)
226private static IDataTransform Create(IHostEnvironment env, Arguments args, ITrainer trainer, IDataView input, IComponentFactory<IPredictor, ISchemaBindableMapper> mapperFactory)
Transforms\TransformBase.cs (6)
27protected TransformBase(IHostEnvironment env, string name, IDataView input)
110protected RowToRowTransformBase(IHostEnvironment env, string name, IDataView input)
130private protected FilterBase(IHostEnvironment env, string name, IDataView input)
157protected RowToRowMapperTransformBase(IHostEnvironment env, string name, IDataView input)
498private protected OneToOneTransformBase(IHostEnvironment env, string name, OneToOneColumn[] column,
543private protected OneToOneTransformBase(IHostEnvironment env, string name, OneToOneTransformBase transform,
Transforms\TypeConverting.cs (9)
37public static CommonOutputs.TransformOutput Convert(IHostEnvironment env, TypeConvertingTransformer.Options input)
192internal TypeConvertingTransformer(IHostEnvironment env, string outputColumnName, DataKind outputKind, string inputColumnName = null, KeyCount outputKeyCount = null)
200internal TypeConvertingTransformer(IHostEnvironment env, params TypeConvertingEstimator.ColumnOptions[] columns)
236private static TypeConvertingTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
295internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input)
344private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
348private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema)
603internal TypeConvertingEstimator(IHostEnvironment env,
613internal TypeConvertingEstimator(IHostEnvironment env, params ColumnOptions[] columns) :
Transforms\ValueMapping.cs (16)
78internal ValueMappingEstimator(IHostEnvironment env, IDataView lookupMap, DataViewSchema.Column keyColumn, DataViewSchema.Column valueColumn, params (string outputColumnName, string inputColumnName)[] columns)
177internal ValueMappingEstimator(IHostEnvironment env, IDataView lookupMap, DataViewSchema.Column keyColumn, DataViewSchema.Column valueColumn, params (string outputColumnName, string inputColumnName)[] columns)
257internal static IDataView CreateDataView<TKey, TValue>(IHostEnvironment env,
274internal static IDataView CreateDataView<TKey, TValue>(IHostEnvironment env,
431internal ValueMappingTransformer(IHostEnvironment env, IDataView lookupMap,
468private static TextLoader.Column GenerateValueColumn(IHostEnvironment env,
548private static ValueMappingTransformer CreateTransformInvoke<TKey, TValue>(IHostEnvironment env,
602private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input)
710private protected static ValueMappingTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
761private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
764private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema)
817public abstract void Train(IHostEnvironment env, DataViewRowCursor cursor);
821public abstract IDataView GetDataView(IHostEnvironment env);
855public override void Train(IHostEnvironment env, DataViewRowCursor cursor)
946public override IDataView GetDataView(IHostEnvironment env)
1014private static BinaryLoader GetLoader(IHostEnvironment env, byte[] bytes)
Transforms\ValueToKeyMappingTransformer.cs (9)
245internal ValueToKeyMappingTransformer(IHostEnvironment env, IDataView input,
250internal ValueToKeyMappingTransformer(IHostEnvironment env, IDataView input,
267internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input)
308private static ValueToKeyMappingTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
363private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
367private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema)
386internal static IDataView GetKeyDataViewOrNull(IHostEnvironment env, IChannel ch,
467private static TermMap CreateTermMapFromData(IHostEnvironment env, IChannel ch, IDataView keyData, bool autoConvert, Builder bldr)
514private static TermMap[] Train(IHostEnvironment env, IChannel ch, ColInfo[] infos,
Transforms\ValueToKeyMappingTransformerImpl.cs (12)
452private static BoundTermMap Bind(IHostEnvironment env, DataViewSchema schema, TermMap unbound, ColInfo[] infos, bool[] textMetadata, int iinfo)
510internal abstract void Save(ModelSaveContext ctx, IHostEnvironment host, CodecFactory codecFactory);
512internal static TermMap Load(ModelLoadContext ctx, IHostEnvironment ectx, CodecFactory codecFactory)
619internal override void Save(ModelSaveContext ctx, IHostEnvironment host, CodecFactory codecFactory)
692internal override void Save(ModelSaveContext ctx, IHostEnvironment host, CodecFactory codecFactory)
812private readonly IHostEnvironment _host;
819private BoundTermMap(IHostEnvironment env, DataViewSchema schema, TermMap map, ColInfo[] infos, bool[] textMetadata, int iinfo)
836public static BoundTermMap Create(IHostEnvironment host, DataViewSchema schema, TermMap map, ColInfo[] infos, bool[] textMetadata, int iinfo)
846public static BoundTermMap CreateCore<T>(IHostEnvironment env, DataViewSchema schema, TermMap map, ColInfo[] infos, bool[] textMetadata, int iinfo)
878public Base(IHostEnvironment env, DataViewSchema schema, TermMap<T> map, ColInfo[] infos, bool[] textMetadata, int iinfo)
1086public KeyImpl(IHostEnvironment env, DataViewSchema schema, TermMap<T> map, ColInfo[] infos, bool[] textMetadata, int iinfo)
1236public Impl(IHostEnvironment env, DataViewSchema schema, TermMap<T> map, ColInfo[] infos, bool[] textMetadata, int iinfo)
Utilities\ComponentCreation.cs (22)
15/// This class defines extension methods for an <see cref="IHostEnvironment"/> to facilitate creating
29public static IDataView Zip(this IHostEnvironment env, IEnumerable<IDataView> sources)
47public static RoleMappedData CreateExamples(this IHostEnvironment env, IDataView data, string features, string label = null,
69public static IDataView LoadTransforms(this IHostEnvironment env, Stream modelStream, IDataView data)
83internal static ILegacyDataLoader CreateLoader<TArgs>(this IHostEnvironment env, TArgs arguments, IMultiStreamSource files)
95internal static ILegacyDataLoader CreateLoader(this IHostEnvironment env, string settings, IMultiStreamSource files)
106public static IDataSaver CreateSaver<TArgs>(this IHostEnvironment env, TArgs arguments)
116public static IDataSaver CreateSaver(this IHostEnvironment env, string settings)
125public static IDataTransform CreateTransform<TArgs>(this IHostEnvironment env, TArgs arguments, IDataView source)
136public static IDataTransform CreateTransform(this IHostEnvironment env, string settings, IDataView source)
155public static IDataScorerTransform CreateScorer(this IHostEnvironment env, string settings,
186public static IDataScorerTransform CreateDefaultScorer(this IHostEnvironment env, RoleMappedData data,
197public static IEvaluator CreateEvaluator(this IHostEnvironment env, string settings)
209public static IPredictor LoadPredictorOrNull(this IHostEnvironment env, Stream modelStream)
215public static ITrainer CreateTrainer<TArgs>(this IHostEnvironment env, TArgs arguments, out string loadName)
222public static ITrainer CreateTrainer(this IHostEnvironment env, string settings, out string loadName)
229IHostEnvironment env,
239IHostEnvironment env,
250IHostEnvironment env,
261private static TRes CreateCore<TRes, TArgs, TSig>(IHostEnvironment env, TArgs args, params object[] extraArgs)
270IHostEnvironment env,
288private static TRes CreateCore<TRes, TArgs, TSig>(IHostEnvironment env, TArgs args, out string loadName, params object[] extraArgs)
Utilities\ModelFileUtils.cs (12)
43public static IDataView LoadPipeline(IHostEnvironment env, Stream modelStream, IMultiStreamSource files, bool extractInnerPipe = false)
63public static IDataView LoadPipeline(IHostEnvironment env, RepositoryReader rep, IMultiStreamSource files, bool extractInnerPipe = false)
104public static IDataView LoadTransforms(IHostEnvironment env, IDataView data, Stream modelStream)
126public static IDataView LoadTransforms(IHostEnvironment env, IDataView data, RepositoryReader rep)
143public static IPredictor LoadPredictorOrNull(IHostEnvironment env, Stream modelStream)
154public static IPredictor LoadPredictorOrNull(IHostEnvironment env, RepositoryReader rep)
176public static ILegacyDataLoader LoadLoader(IHostEnvironment env, RepositoryReader rep, IMultiStreamSource files, bool loadTransforms)
231internal static void SaveRoleMappings(IHostEnvironment env, IChannel ch, RoleMappedSchema schema, RepositoryWriter rep)
269public static IEnumerable<KeyValuePair<ColumnRole, string>> LoadRoleMappingsOrNull(IHostEnvironment env, Stream modelStream)
282public static IEnumerable<KeyValuePair<ColumnRole, string>> LoadRoleMappingsOrNull(IHostEnvironment env, RepositoryReader rep)
328public static RoleMappedSchema LoadRoleMappedSchemaOrNull(IHostEnvironment env, Stream modelStream)
342public static RoleMappedSchema LoadRoleMappedSchemaOrNull(IHostEnvironment env, RepositoryReader rep)