2 interfaces inheriting from IHostEnvironment
Microsoft.ML.Core (2)
Data\IHostEnvironment.cs (2)
87internal interface IHostEnvironmentInternal : IHostEnvironment 125public interface IHost : IHostEnvironment
2172 references to IHostEnvironment
Microsoft.ML.CodeAnalyzer.Tests (1)
Helpers\AdditionalMetadataReferences.cs (1)
26internal static readonly MetadataReference MLNetCoreReference = RefFromType<IHostEnvironment>();
Microsoft.ML.Core (110)
CommandLine\CmdParser.cs (27)
221public static bool ParseArguments(IHostEnvironment env, string settings, object destination) 236public static bool ParseArguments(IHostEnvironment env, string settings, object destination, Type destinationType, ErrorReporter reporter) 279public static bool ParseArguments(IHostEnvironment env, string settings, object destination, ErrorReporter reporter) 285public static bool ParseArguments(IHostEnvironment env, string settings, object destination, out string helpText) 290public static bool ParseArguments(IHostEnvironment env, string settings, object destination, ErrorReporter reporter, out string helpText) 333public static string GetSettings(IHostEnvironment env, object values, object defaults, SettingsFlags flags = SettingsFlags.Default) 352public static IEnumerable<KeyValuePair<string, string>> GetSettingPairs(IHostEnvironment env, object values, object defaults, SettingsFlags flags = SettingsFlags.None) 372public static IEnumerable<KeyValuePair<string, string>> GetSettingPairs(IHostEnvironment env, object values, SettingsFlags flags = SettingsFlags.None) 415public static string ArgumentsUsage(IHostEnvironment env, Type type, object defaults, bool showRsp = false, int? columns = null) 422private CmdParser(IHostEnvironment env) 428private CmdParser(IHostEnvironment env, ErrorReporter reporter) 774private static string GetSettingsCore(IHostEnvironment env, ArgumentInfo info, object values, SettingsFlags flags) 798private static void AppendCustomItem(IHostEnvironment env, ArgumentInfo info, object values, SettingsFlags flags, StringBuilder sb) 828private IEnumerable<KeyValuePair<string, string>> GetSettingPairsCore(IHostEnvironment env, ArgumentInfo info, object values, SettingsFlags flags) 855private string GetUsageString(IHostEnvironment env, ArgumentInfo info, bool showRsp = true, int? columns = null) 951private ArgumentHelpStrings[] GetAllHelpStrings(IHostEnvironment env, ArgumentInfo info, bool showRsp) 970private ArgumentHelpStrings GetHelpStrings(IHostEnvironment env, Argument arg) 1907private void AppendHelpValue(IHostEnvironment env, StringBuilder builder, object value) 1948public void AppendSetting(IHostEnvironment env, StringBuilder sb, object value, SettingsFlags flags) 1992private void AppendSettingCore(IHostEnvironment env, StringBuilder sb, object value, SettingsFlags flags) 2046public IEnumerable<string> GetSettingStrings(IHostEnvironment env, object value, StringBuilder buffer) 2091private string GetString(IHostEnvironment env, object value, StringBuilder buffer) 2130public string GetFullHelpText(IHostEnvironment env) 2380public TComponent CreateComponent(IHostEnvironment env) 2398public TComponent CreateComponent(IHostEnvironment env, TArg1 argument1) 2417public TComponent CreateComponent(IHostEnvironment env, TArg1 argument1, TArg2 argument2) 2437public TComponent CreateComponent(IHostEnvironment env, TArg1 argument1, TArg2 argument2, TArg3 argument3)
ComponentModel\AssemblyLoadingUtils.cs (7)
21public static void LoadAndRegister(IHostEnvironment env, string[] assemblies) 85public static IDisposable CreateAssemblyRegistrar(IHostEnvironment env, string loadAssembliesPath = null) 93public static void RegisterCurrentLoadedAssemblies(IHostEnvironment env) 188private static void LoadAssembliesInDir(IHostEnvironment env, string dir, bool filter) 209private static Assembly LoadAssembly(IHostEnvironment env, string path) 264private readonly IHostEnvironment _env; 266public AssemblyRegistrar(IHostEnvironment env, string path)
ComponentModel\ComponentCatalog.cs (10)
265public object CreateInstance(IHostEnvironment env, object args, object[] extra) 286public TRes CreateInstance<TRes>(IHostEnvironment env, object args, object[] extra) 296public TRes CreateInstance<TRes>(IHostEnvironment env) 358if (parameters[0].ParameterType != typeof(IHostEnvironment)) 467var parmTypesWithEnv = Utils.Concat(new Type[1] { typeof(IHostEnvironment) }, parmTypes); 976internal static TRes CreateInstance<TRes>(IHostEnvironment env, Type signatureType, string name, string options, params object[] extra) 990internal static bool TryCreateInstance<TRes, TSig>(IHostEnvironment env, out TRes result, string name, string options, params object[] extra) 997internal static bool TryCreateInstance<TRes>(IHostEnvironment env, Type signatureType, out TRes result, string name, string options, params object[] extra) 1049private static void ParseArguments(IHostEnvironment env, object args, string settings, string name) 1129internal object GetExtensionValue(IHostEnvironment env, Type attributeType, string contractName)
ComponentModel\ComponentFactory.cs (32)
17/// An interface for creating a component with no extra parameters (other than an <see cref="IHostEnvironment"/>). 21TComponent CreateComponent(IHostEnvironment env); 25/// An interface for creating a component when we take one extra parameter (and an <see cref="IHostEnvironment"/>). 29TComponent CreateComponent(IHostEnvironment env, TArg1 argument1); 33/// An interface for creating a component when we take two extra parameters (and an <see cref="IHostEnvironment"/>). 37TComponent CreateComponent(IHostEnvironment env, TArg1 argument1, TArg2 argument2); 41/// An interface for creating a component when we take three extra parameters (and an <see cref="IHostEnvironment"/>). 45TComponent CreateComponent(IHostEnvironment env, TArg1 argument1, TArg2 argument2, TArg3 argument3); 55/// Creates a component factory with no extra parameters (other than an <see cref="IHostEnvironment"/>) 58public static IComponentFactory<TComponent> CreateFromFunction<TComponent>(Func<IHostEnvironment, TComponent> factory) 65/// <see cref="IHostEnvironment"/>) that simply wraps a delegate which creates the component. 67public static IComponentFactory<TArg1, TComponent> CreateFromFunction<TArg1, TComponent>(Func<IHostEnvironment, TArg1, TComponent> factory) 74/// <see cref="IHostEnvironment"/>) that simply wraps a delegate which creates the component. 76public static IComponentFactory<TArg1, TArg2, TComponent> CreateFromFunction<TArg1, TArg2, TComponent>(Func<IHostEnvironment, TArg1, TArg2, TComponent> factory) 83/// <see cref="IHostEnvironment"/>) that simply wraps a delegate which creates the component. 85public static IComponentFactory<TArg1, TArg2, TArg3, TComponent> CreateFromFunction<TArg1, TArg2, TArg3, TComponent>(Func<IHostEnvironment, TArg1, TArg2, TArg3, TComponent> factory) 91/// A class for creating a component with no extra parameters (other than an <see cref="IHostEnvironment"/>) 96private readonly Func<IHostEnvironment, TComponent> _factory; 98public SimpleComponentFactory(Func<IHostEnvironment, TComponent> factory) 103public TComponent CreateComponent(IHostEnvironment env) 111/// (and an <see cref="IHostEnvironment"/>) that simply wraps a delegate which 116private readonly Func<IHostEnvironment, TArg1, TComponent> _factory; 118public SimpleComponentFactory(Func<IHostEnvironment, TArg1, TComponent> factory) 123public TComponent CreateComponent(IHostEnvironment env, TArg1 argument1) 131/// (and an <see cref="IHostEnvironment"/>) that simply wraps a delegate which 136private readonly Func<IHostEnvironment, TArg1, TArg2, TComponent> _factory; 138public SimpleComponentFactory(Func<IHostEnvironment, TArg1, TArg2, TComponent> factory) 143public TComponent CreateComponent(IHostEnvironment env, TArg1 argument1, TArg2 argument2) 151/// (and an <see cref="IHostEnvironment"/>) that simply wraps a delegate which 156private readonly Func<IHostEnvironment, TArg1, TArg2, TArg3, TComponent> _factory; 158public SimpleComponentFactory(Func<IHostEnvironment, TArg1, TArg2, TArg3, TComponent> factory) 163public TComponent CreateComponent(IHostEnvironment env, TArg1 argument1, TArg2 argument2, TArg3 argument3)
Data\IHostEnvironment.cs (3)
36public static IFileHandle OpenInputFile(this IHostEnvironment env, string path) 46public static IFileHandle CreateOutputFile(this IHostEnvironment env, string path) 261/// <see cref="IHostEnvironment"/>, <see cref="IHost"/>, and <see cref="IChannel"/>
Data\IProgressChannel.cs (1)
12/// Both <see cref="IHostEnvironment"/> and <see cref="IProgressChannel"/> implement this interface,
Data\ISchemaBindableMapper.cs (1)
27ISchemaBoundMapper Bind(IHostEnvironment env, RoleMappedSchema schema);
Data\ModelLoading.cs (11)
82public static bool LoadModelOrNull<TRes, TSig>(IHostEnvironment env, out TRes result, RepositoryReader rep, string dir, params object[] extra) 116public static void LoadModel<TRes, TSig>(IHostEnvironment env, out TRes result, RepositoryReader rep, string dir, params object[] extra) 131public bool LoadModelOrNull<TRes, TSig>(IHostEnvironment env, out TRes result, string name, params object[] extra) 142public void LoadModel<TRes, TSig>(IHostEnvironment env, out TRes result, string name, params object[] extra) 155private static bool TryLoadModel<TRes, TSig>(IHostEnvironment env, out TRes result, RepositoryReader rep, Repository.Entry ent, string dir, params object[] extra) 177public static void LoadModel<TRes, TSig>(IHostEnvironment env, out TRes result, RepositoryReader rep, Repository.Entry ent, string dir, params object[] extra) 190public static bool TryLoadModel<TRes, TSig>(IHostEnvironment env, out TRes result, Stream stream, params object[] extra) 201public static void LoadModel<TRes, TSig>(IHostEnvironment env, out TRes result, Stream stream, params object[] extra) 213public static bool TryLoadModel<TRes, TSig>(IHostEnvironment env, out TRes result, BinaryReader reader, params object[] extra) 228public static void LoadModel<TRes, TSig>(IHostEnvironment env, out TRes result, BinaryReader reader, params object[] extra) 240private bool TryLoadModelCore<TRes, TSig>(IHostEnvironment env, out TRes result, params object[] extra)
Data\ServerChannel.cs (2)
145new IServer CreateComponent(IHostEnvironment env, IChannel ch); 173public static IServerFactory CreateDefaultServerFactoryOrNull(IHostEnvironment env)
EntryPoints\EntryPointUtils.cs (1)
91public static IHost CheckArgsAndCreateHost(IHostEnvironment env, string hostName, object input)
EntryPoints\PredictorModel.cs (5)
26internal abstract void Save(IHostEnvironment env, Stream stream); 44internal abstract PredictorModel Apply(IHostEnvironment env, TransformModel transformModel); 51internal abstract void PrepareData(IHostEnvironment env, IDataView input, out RoleMappedData roleMappedData, out IPredictor predictor); 61internal abstract string[] GetLabelInfo(IHostEnvironment env, out DataViewType labelType); 67internal abstract RoleMappedSchema GetTrainingSchema(IHostEnvironment env);
EntryPoints\TransformModel.cs (4)
37/// from <see cref="Apply(IHostEnvironment, TransformModel)"/> may differ from this, similarly to how 47internal abstract IDataView Apply(IHostEnvironment env, IDataView input); 53internal abstract TransformModel Apply(IHostEnvironment env, TransformModel input); 59internal abstract void Save(IHostEnvironment env, Stream stream);
Environment\ConsoleEnvironment.cs (1)
358/// Create an ML.NET <see cref="IHostEnvironment"/> for local execution, with console feedback.
Utilities\Contracts.cs (1)
750public static void CheckAlive(this IHostEnvironment env)
Utilities\ResourceManagerUtils.cs (4)
108public async Task<ResourceDownloadResults> EnsureResourceAsync(IHostEnvironment env, IChannel ch, string relativeUrl, string fileName, string dir, int timeout) 125private async Task<string> DownloadFromUrlWithRetryAsync(IHostEnvironment env, IChannel ch, string url, string fileName, 155private async Task<string> DownloadFromUrlAsync(IHostEnvironment env, IChannel ch, string url, string fileName, int timeout, string filePath) 249private async Task<Exception> DownloadResource(IHostEnvironment env, IChannel ch, HttpClient httpClient, Uri uri, string path, string fileName, CancellationToken ct)
Microsoft.ML.Core.Tests (2)
UnitTests\TestHosts.cs (2)
27IHostEnvironment env = new MLContext(seed: 42); 92IHostEnvironment env = new MLContext(seed: 42);
Microsoft.ML.Data (718)
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\EvaluateCommand.cs (2)
146private static IDataTransform Create(IHostEnvironment env, Arguments args, IDataView input) 205public EvaluateCommand(IHostEnvironment env, Arguments args)
Commands\SaveDataCommand.cs (2)
42public SaveDataCommand(IHostEnvironment env, Arguments args) 113public ShowDataCommand(IHostEnvironment env, Arguments args)
Commands\SavePredictorCommand.cs (3)
58public SavePredictorCommand(IHostEnvironment env, Arguments args) 120public static void SavePredictor(IHostEnvironment env, Stream modelStream, Stream binaryModelStream = null, Stream summaryModelStream = null, 207public static void LoadModel(IHostEnvironment env, Stream modelStream, bool loadNames, out IPredictor predictor, out RoleMappedSchema schema)
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\ShowSchemaCommand.cs (1)
54public ShowSchemaCommand(IHostEnvironment env, Arguments args)
Commands\TestCommand.cs (1)
63public TestCommand(IHostEnvironment env, Arguments args)
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)
Commands\TrainTestCommand.cs (1)
85public TrainTestCommand(IHostEnvironment env, Arguments args)
Commands\TypeInfoCommand.cs (1)
35public TypeInfoCommand(IHostEnvironment env, Arguments args)
Data\ILegacyDataLoader.cs (1)
113IDataTransform ApplyToData(IHostEnvironment env, IDataView newSource);
Data\RowCursorUtils.cs (2)
473public static IDataView RowAsDataView(IHostEnvironment env, DataViewRow row) 515public OneRowDataView(IHostEnvironment env, DataViewRow row)
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\Binary\BinaryLoaderSaverCatalog.cs (3)
28var env = catalog.GetEnvironment(); 55var env = catalog.GetEnvironment(); 82var env = catalog.GetEnvironment();
DataLoadSave\Binary\BinarySaver.cs (1)
190public BinarySaver(IHostEnvironment env, Arguments args)
DataLoadSave\Binary\CodecFactory.cs (1)
35public CodecFactory(IHostEnvironment env, MemoryStreamPool memPool = null)
DataLoadSave\CompositeDataLoader.cs (1)
51private static CompositeDataLoader<TSource, TLastTransformer> Create(IHostEnvironment env, ModelLoadContext ctx)
DataLoadSave\Database\DatabaseLoader.cs (3)
42internal DatabaseLoader(IHostEnvironment env, Options options) 69internal static DatabaseLoader Create(IHostEnvironment env, ModelLoadContext ctx) 102internal static DatabaseLoader CreateDatabaseLoader<TInput>(IHostEnvironment host)
DataLoadSave\DataOperationsCatalog.cs (5)
19IHostEnvironment IInternalCatalog.Environment => _env; 20private readonly IHostEnvironment _env; 47internal DataOperationsCatalog(IHostEnvironment env) 474internal static IEnumerable<TrainTestData> CrossValidationSplit(IHostEnvironment env, IDataView data, string splitColumn, int numberOfFolds = 5) 523internal static string CreateSplitColumn(IHostEnvironment env, ref IDataView data, string samplingKeyColumn, int? seed = null, bool fallbackInEnvSeed = false)
DataLoadSave\EstimatorChain.cs (2)
27private EstimatorChain(IHostEnvironment env, IEstimator<ITransformer>[] estimators, TransformerScope[] scopes, bool[] needCacheAfter) 108public EstimatorChain<TLastTransformer> AppendCacheCheckpoint(IHostEnvironment env)
DataLoadSave\EstimatorExtensions.cs (1)
67public static EstimatorChain<TTrans> AppendCacheCheckpoint<TTrans>(this IEstimator<TTrans> start, IHostEnvironment env)
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,
DataLoadSave\Text\TextLoaderSaverCatalog.cs (2)
204var env = catalog.GetEnvironment(); 298var env = catalog.GetEnvironment();
DataLoadSave\Text\TextSaver.cs (1)
263public TextSaver(IHostEnvironment env, Arguments args)
DataLoadSave\TransformerChain.cs (5)
205internal TransformerChain(IHostEnvironment env, ModelLoadContext ctx) 223internal void SaveTo(IHostEnvironment env, Stream outputStream) 279private static TransformerChain<ITransformer> Create(IHostEnvironment env, ModelLoadContext ctx) 285public static void SaveTo(this ITransformer transformer, IHostEnvironment env, Stream outputStream) 288public static ITransformer LoadFromLegacy(IHostEnvironment env, Stream stream)
DataLoadSave\TransformWrapper.cs (1)
23public TransformWrapper(IHostEnvironment env, IDataView xf)
DataLoadSave\Transpose\TransposeLoader.cs (3)
395public TransposeLoader(IHostEnvironment env, Arguments args, IMultiStreamSource file) 485public static TransposeLoader Create(IHostEnvironment env, ModelLoadContext ctx, IMultiStreamSource files) 538private static void SaveSchema(IHostEnvironment env, ModelSaveContext ctx, DataViewSchema schema)
DataLoadSave\Transpose\TransposeSaver.cs (1)
54public TransposeSaver(IHostEnvironment env, Arguments args)
DataView\AppendRowsDataView.cs (2)
56public static IDataView Create(IHostEnvironment env, DataViewSchema schema, params IDataView[] sources) 68private AppendRowsDataView(IHostEnvironment env, DataViewSchema schema, IDataView[] sources)
DataView\ArrayDataViewBuilder.cs (2)
36public ArrayDataViewBuilder(IHostEnvironment env) 208public DataView(IHostEnvironment env, ArrayDataViewBuilder builder, int rowCount)
DataView\BatchDataViewMapperBase.cs (1)
21protected BatchDataViewMapperBase(IHostEnvironment env, string registrationName, IDataView input)
DataView\CacheDataView.cs (2)
79public CacheDataView(IHostEnvironment env, IDataView input, int[] prefetch) 112private static IDataView SelectCachableColumns(IDataView data, IHostEnvironment env, ref int[] prefetch, out int[] inputToSubset)
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\EmptyDataView.cs (1)
23public EmptyDataView(IHostEnvironment env, DataViewSchema schema)
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,
DataView\RowToRowMapperTransform.cs (3)
95public RowToRowMapperTransform(IHostEnvironment env, IDataView input, IRowMapper mapper, Func<DataViewSchema, IRowMapper> mapperFactory) 121public static RowToRowMapperTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 269IDataTransform ITransformTemplate.ApplyToData(IHostEnvironment env, IDataView newSource)
DataView\Transposer.cs (3)
54public static Transposer Create(IHostEnvironment env, IDataView view, bool forceSave, 74public static Transposer Create(IHostEnvironment env, IDataView view, bool forceSave, 1424public SlotDataView(IHostEnvironment env, ITransposeDataView data, int col)
DataView\TypedCursor.cs (3)
90private TypedCursorable(IHostEnvironment env, IDataView data, bool ignoreMissingColumns, InternalSchemaDefinition schemaDefn) 312public static TypedCursorable<TRow> Create(IHostEnvironment env, IDataView data, bool ignoreMissingColumns, SchemaDefinition schemaDefinition) 663public static ICursorable<TRow> AsCursorable<TRow>(this IHostEnvironment env, IDataView data, bool ignoreMissingColumns = false,
DataView\ZipDataView.cs (1)
32public static IDataView Create(IHostEnvironment env, IEnumerable<IDataView> sources)
Dirty\ChooseColumnsByIndexTransform.cs (2)
197public ChooseColumnsByIndexTransform(IHostEnvironment env, Options options, IDataView input) 215public static ChooseColumnsByIndexTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
Dirty\ModelParametersBase.cs (2)
24private protected ModelParametersBase(IHostEnvironment env, string name) 32private protected ModelParametersBase(IHostEnvironment env, string name, ModelLoadContext ctx)
Dirty\PredictionUtils.cs (1)
28public static void ParseArguments(IHostEnvironment env, object args, string settings, string name = null)
EntryPoints\EntryPointNode.cs (5)
467private EntryPointNode(IHostEnvironment env, IChannel ch, RunContext context, 554public static EntryPointNode Create(IHostEnvironment env, 588IHostEnvironment env, 881public static List<EntryPointNode> ValidateNodes(IHostEnvironment env, RunContext context, JArray nodes, 989public EntryPointGraph(IHostEnvironment env, JArray nodes)
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\SchemaManipulation.cs (3)
18public static CommonOutputs.TransformOutput ConcatColumns(IHostEnvironment env, ColumnConcatenatingTransformer.Options input) 30public static CommonOutputs.TransformOutput SelectColumns(IHostEnvironment env, ColumnSelectingTransformer.Options input) 42public static CommonOutputs.TransformOutput CopyColumns(IHostEnvironment env, ColumnCopyingTransformer.Options input)
EntryPoints\SelectRows.cs (4)
19public static CommonOutputs.TransformOutput FilterByRange(IHostEnvironment env, RangeFilter.Options input) 32public static CommonOutputs.TransformOutput SkipFilter(IHostEnvironment env, SkipTakeFilter.SkipOptions input) 44public static CommonOutputs.TransformOutput TakeFilter(IHostEnvironment env, SkipTakeFilter.TakeOptions input) 56public static CommonOutputs.TransformOutput SkipAndTakeFilter(IHostEnvironment env, SkipTakeFilter.Options input)
EntryPoints\SummarizePredictor.cs (2)
32public static CommonOutputs.SummaryOutput Summarize(IHostEnvironment env, SummarizePredictor.Input input) 49internal static IDataView GetSummaryAndStats(IHostEnvironment env, IPredictor predictor, RoleMappedSchema schema, out IDataView stats)
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\MamlEvaluator.cs (1)
96private protected MamlEvaluatorBase(ArgumentsBase args, IHostEnvironment env, string scoreColumnKind, string registrationName)
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)
Evaluators\RegressionEvaluatorBase.cs (3)
32protected RegressionLossEvaluatorBase(ArgumentsBase args, IHostEnvironment env, string registrationName) 45private protected RegressionEvaluatorBase(ArgumentsBase args, IHostEnvironment env, string registrationName) 192private protected RegressionAggregatorBase(IHostEnvironment env, IRegressionLoss lossFunction, bool weighted, string stratName)
MLContext.cs (1)
174IHost IHostEnvironment.Register(string name, int? seed, bool? verbose) => _env.Register(name, seed, verbose);
Model\ModelOperationsCatalog.cs (3)
22IHostEnvironment IInternalCatalog.Environment => _env; 23private readonly IHostEnvironment _env; 25internal ModelOperationsCatalog(IHostEnvironment env)
Model\Pfa\BoundPfaContext.cs (1)
45public BoundPfaContext(IHostEnvironment env, DataViewSchema inputSchema, HashSet<string> toDrop, bool allowSet)
Model\Pfa\PfaContext.cs (1)
98public PfaContext(IHostEnvironment env)
Model\Pfa\SavePfaCommand.cs (1)
65public SavePfaCommand(IHostEnvironment env, Arguments args)
Model\PredictionEngineExtensions.cs (1)
29IHostEnvironment env, bool ignoreMissingColumns = true, SchemaDefinition inputSchemaDefinition = null, SchemaDefinition outputSchemaDefinition = null, bool ownsTransformer = true)
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\ClusteringScorer.cs (4)
45internal ClusteringScorer(IHostEnvironment env, Arguments args, IDataView data, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema) 51private ClusteringScorer(IHostEnvironment env, ClusteringScorer transform, IDataView newSource) 63public static ClusteringScorer Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 85private 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\PredictedLabelScorerBase.cs (4)
99public BindingsImpl ApplyToSchema(DataViewSchema input, ISchemaBindableMapper bindable, IHostEnvironment env) 120IHostEnvironment env, ISchemaBindableMapper bindable, 276private protected PredictedLabelScorerBase(ScorerArgumentsBase args, IHostEnvironment env, IDataView data, 302protected PredictedLabelScorerBase(IHostEnvironment env, PredictedLabelScorerBase transform,
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)
Scorers\QuantileRegressionScorer.cs (2)
32private static IDataScorerTransform Create(IHostEnvironment env, Arguments args, IDataView data, ISchemaBoundMapper mapper, RoleMappedSchema trainSchema) 40private static ISchemaBindableMapper Create(IHostEnvironment env, Arguments args, IPredictor predictor)
Scorers\RowToRowScorerBase.cs (4)
41private protected RowToRowScorerBase(IHostEnvironment env, IDataView input, string registrationName, ISchemaBindableMapper bindable) 69private protected abstract IDataTransform ApplyToDataCore(IHostEnvironment env, IDataView newSource); 71IDataTransform ITransformTemplate.ApplyToData(IHostEnvironment env, IDataView newSource) 73internal IDataView ApplyToData(IHostEnvironment env, IDataView newSource)
Scorers\SchemaBindablePredictorWrapper.cs (8)
70protected SchemaBindablePredictorWrapperBase(IHostEnvironment env, ModelLoadContext ctx) 120ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) 303private SchemaBindablePredictorWrapper(IHostEnvironment env, ModelLoadContext ctx) 309public static SchemaBindablePredictorWrapper Create(IHostEnvironment env, ModelLoadContext ctx) 411private SchemaBindableBinaryPredictorWrapper(IHostEnvironment env, ModelLoadContext ctx) 417public static SchemaBindableBinaryPredictorWrapper Create(IHostEnvironment env, ModelLoadContext ctx) 656private SchemaBindableQuantileRegressionPredictor(IHostEnvironment env, ModelLoadContext ctx) 688public static SchemaBindableQuantileRegressionPredictor Create(IHostEnvironment env, ModelLoadContext ctx)
TrainCatalog.cs (11)
21IHostEnvironment IInternalCatalog.Environment => Environment; 24private protected IHostEnvironment Environment { get; } 135private protected TrainCatalogBase(IHostEnvironment env, string registrationName) 151IHostEnvironment IInternalCatalog.Environment => Owner.GetEnvironment(); 175internal BinaryClassificationCatalog(IHostEnvironment env) 414internal ClusteringCatalog(IHostEnvironment env) 494internal MulticlassClassificationCatalog(IHostEnvironment env) 575internal RegressionCatalog(IHostEnvironment env) 645internal RankingCatalog(IHostEnvironment env) 736internal AnomalyDetectionCatalog(IHostEnvironment env) 804internal ForecastingCatalog(IHostEnvironment env) : base(env, nameof(ForecastingCatalog))
Training\TrainerInputBase.cs (1)
45/// like <see cref="EstimatorChain{TLastTransformer}.AppendCacheCheckpoint(IHostEnvironment)"/>.
Training\TrainerUtils.cs (3)
406private readonly IHostEnvironment _env; 408public TrainerEstimatorToTrainerShim(IHostEnvironment env, ITrainerEstimator<ISingleFeaturePredictionTransformer<TModel>, TModel> trainer) 470public static ITrainer<TPredictor> MapTrainerEstimatorToTrainer<T, TModel, TPredictor>(IHostEnvironment env, T trainer)
Transforms\BootstrapSamplingTransformer.cs (4)
78public BootstrapSamplingTransformer(IHostEnvironment env, Options options, IDataView input) 99public BootstrapSamplingTransformer(IHostEnvironment env, 153public static BootstrapSamplingTransformer Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 254public static CommonOutputs.TransformOutput GetSample(IHostEnvironment env, BootstrapSamplingTransformer.Options input)
Transforms\CatalogUtils.cs (4)
9/// Convenience method to more easily extract an <see cref="IHostEnvironment"/> from an <see cref="IInternalCatalog"/> 15public static IHostEnvironment GetEnvironment(this IInternalCatalog catalog) => Contracts.CheckRef(catalog, nameof(catalog)).Environment; 19/// An internal interface for the benefit of those <see cref="IHostEnvironment"/>-bearing objects accessible through 26IHostEnvironment Environment { get; }
Transforms\ColumnConcatenatingEstimator.cs (2)
48/// <param name="env">The local instance of <see cref="IHostEnvironment"/>.</param> 51internal ColumnConcatenatingEstimator(IHostEnvironment env, string outputColumnName, params string[] inputColumnNames)
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\ConversionsExtensionsCatalog.cs (8)
104var env = CatalogUtils.GetEnvironment(catalog); 161var env = CatalogUtils.GetEnvironment(catalog); 215var env = CatalogUtils.GetEnvironment(catalog); 289var env = CatalogUtils.GetEnvironment(catalog); 369var env = CatalogUtils.GetEnvironment(catalog); 403var env = CatalogUtils.GetEnvironment(catalog); 473var env = CatalogUtils.GetEnvironment(catalog); 532var env = CatalogUtils.GetEnvironment(catalog);
Transforms\ExtensionsCatalog.cs (1)
94var env = CatalogUtils.GetEnvironment(catalog);
Transforms\FeatureContributionCalculationTransformer.cs (6)
85internal FeatureContributionCalculatingTransformer(IHostEnvironment env, ICalculateFeatureContribution modelParameters, 109private FeatureContributionCalculatingTransformer(IHostEnvironment env, ModelLoadContext ctx) 151internal static FeatureContributionCalculatingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 159private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 322internal FeatureContributionCalculatingEstimator(IHostEnvironment env, ICalculateFeatureContribution model, 367public static CommonOutputs.TransformOutput FeatureContributionCalculation(IHostEnvironment env, FeatureContributionCalculatingTransformer.Options options)
Transforms\GenerateNumberTransform.cs (4)
270public GenerateNumberTransform(IHostEnvironment env, IDataView input, string name, uint? seed = null, bool useCounter = Defaults.UseCounter) 278public GenerateNumberTransform(IHostEnvironment env, Options options, IDataView input) 300public static GenerateNumberTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 486public static CommonOutputs.TransformOutput Generate(IHostEnvironment env, GenerateNumberTransform.Options input)
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\LabelConvertTransform.cs (3)
77public LabelConvertTransform(IHostEnvironment env, IDataView input, string outputColumnName, string inputColumnName = null) 82public LabelConvertTransform(IHostEnvironment env, Arguments args, IDataView input) 102public static LabelConvertTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
Transforms\LabelIndicatorTransform.cs (5)
78public static LabelIndicatorTransform Create(IHostEnvironment env, 89public static LabelIndicatorTransform Create(IHostEnvironment env, 124public LabelIndicatorTransform(IHostEnvironment env, 133internal LabelIndicatorTransform(IHostEnvironment env, Options options, IDataView input) 231public static CommonOutputs.TransformOutput LabelIndicator(IHostEnvironment env, Options input)
Transforms\NAFilter.cs (3)
88public NAFilter(IHostEnvironment env, IDataView input, bool complement = Defaults.Complement, params string[] columns) 93public NAFilter(IHostEnvironment env, Arguments args, IDataView input) 159public static NAFilter Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
Transforms\NopTransform.cs (4)
36public static IDataTransform CreateIfNeeded(IHostEnvironment env, IDataView input) 44private NopTransform(IHostEnvironment env, IDataView input) 70public static NopTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 145public static CommonOutputs.TransformOutput Nop(IHostEnvironment env, NopInput input)
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\NormalizeUtils.cs (6)
80public static CommonOutputs.TransformOutput MinMax(IHostEnvironment env, NormalizeTransform.MinMaxArguments input) 92public static CommonOutputs.TransformOutput MeanVar(IHostEnvironment env, NormalizeTransform.MeanVarArguments input) 104public static CommonOutputs.TransformOutput LogMeanVar(IHostEnvironment env, NormalizeTransform.LogMeanVarArguments input) 116public static CommonOutputs.TransformOutput Bin(IHostEnvironment env, NormalizeTransform.BinArguments input) 128public static CommonOutputs.TransformOutput RobustScaling(IHostEnvironment env, NormalizeTransform.RobustScalingArguments input) 141IHostEnvironment env,
Transforms\PerGroupTransformBase.cs (2)
102protected PerGroupTransformBase(IHostEnvironment env, IDataView input, string labelCol, string scoreCol, string groupCol, string registrationName) 117protected PerGroupTransformBase(IHostEnvironment env, ModelLoadContext ctx, IDataView input, string registrationName)
Transforms\RangeFilter.cs (3)
90public RangeFilter(IHostEnvironment env, IDataView input, string column, Double lowerBound, Double upperBound, bool includeUpperBound) 95public RangeFilter(IHostEnvironment env, Options options, IDataView input) 167public static RangeFilter Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
Transforms\RowShufflingTransformer.cs (4)
98public RowShufflingTransformer(IHostEnvironment env, 110public RowShufflingTransformer(IHostEnvironment env, Options options, IDataView input) 152public static RowShufflingTransformer Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 189private static IDataView SelectCachableColumns(IDataView data, IHostEnvironment env)
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\TransformsCatalog.cs (11)
14IHostEnvironment IInternalCatalog.Environment => _env; 15private readonly IHostEnvironment _env; 37internal TransformsCatalog(IHostEnvironment env) 53IHostEnvironment IInternalCatalog.Environment => _env; 54private readonly IHostEnvironment _env; 67IHostEnvironment IInternalCatalog.Environment => _env; 68private readonly IHostEnvironment _env; 81IHostEnvironment IInternalCatalog.Environment => _env; 82private readonly IHostEnvironment _env; 95IHostEnvironment IInternalCatalog.Environment => _env; 96private readonly IHostEnvironment _env;
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\ValueToKeyMappingEstimator.cs (2)
147internal ValueToKeyMappingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, int maximumNumberOfKeys = Defaults.MaximumNumberOfKeys, KeyOrdinality keyOrdinality = Defaults.Ordinality) : 152internal ValueToKeyMappingEstimator(IHostEnvironment env, ColumnOptionsBase[] columns, IDataView keyData = null)
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\ApplyTransformUtils.cs (2)
26public static IDataTransform ApplyTransformToData(IHostEnvironment env, IDataTransform transform, IDataView newSource) 67public static IDataView ApplyAllTransformsToData(IHostEnvironment env, IDataView chain, IDataView newSource, IDataView oldSource = null)
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\LocalEnvironment.cs (1)
46/// Create an ML.NET <see cref="IHostEnvironment"/> for local execution.
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)
Utils\LossFunctions.cs (13)
95new ISupportSdcaRegressionLoss CreateComponent(IHostEnvironment env); 103public ISupportSdcaClassificationLoss CreateComponent(IHostEnvironment env) => new LogLoss(); 105IClassificationLoss IComponentFactory<IClassificationLoss>.CreateComponent(IHostEnvironment env) => new LogLoss(); 215public ISupportSdcaClassificationLoss CreateComponent(IHostEnvironment env) => new HingeLoss(this); 217IClassificationLoss IComponentFactory<IClassificationLoss>.CreateComponent(IHostEnvironment env) => new HingeLoss(this); 314public ISupportSdcaClassificationLoss CreateComponent(IHostEnvironment env) => new SmoothedHingeLoss(env, this); 316IClassificationLoss IComponentFactory<IClassificationLoss>.CreateComponent(IHostEnvironment env) => new SmoothedHingeLoss(env, this); 343private SmoothedHingeLoss(IHostEnvironment env, Options options) 430public IClassificationLoss CreateComponent(IHostEnvironment env) => new ExpLoss(this); 465public ISupportSdcaRegressionLoss CreateComponent(IHostEnvironment env) => new SquaredLoss(); 467IRegressionLoss IComponentFactory<IRegressionLoss>.CreateComponent(IHostEnvironment env) => new SquaredLoss(); 522public IRegressionLoss CreateComponent(IHostEnvironment env) => new PoissonLoss(); 587public IRegressionLoss CreateComponent(IHostEnvironment env) => new TweedieLoss(this);
Microsoft.ML.DnnImageFeaturizer.AlexNet (2)
AlexNetExtension.cs (2)
26public static EstimatorChain<ColumnCopyingTransformer> AlexNet(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName) 37public static EstimatorChain<ColumnCopyingTransformer> AlexNet(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName, string modelDir)
Microsoft.ML.DnnImageFeaturizer.ResNet101 (2)
ResNet101Extension.cs (2)
26public static EstimatorChain<ColumnCopyingTransformer> ResNet101(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName) 37public static EstimatorChain<ColumnCopyingTransformer> ResNet101(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName, string modelDir)
Microsoft.ML.DnnImageFeaturizer.ResNet18 (2)
ResNet18Extension.cs (2)
26public static EstimatorChain<ColumnCopyingTransformer> ResNet18(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName) 37public static EstimatorChain<ColumnCopyingTransformer> ResNet18(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName, string modelDir)
Microsoft.ML.DnnImageFeaturizer.ResNet50 (2)
ResNet50Extension.cs (2)
26public static EstimatorChain<ColumnCopyingTransformer> ResNet50(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName) 37public static EstimatorChain<ColumnCopyingTransformer> ResNet50(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName, string modelDir)
Microsoft.ML.Ensemble (147)
EntryPoints\CreateEnsemble.cs (10)
90private static void GetPipeline(IHostEnvironment env, InputBase input, out IDataView startingData, out RoleMappedData transformedData) 132public static CommonOutputs.BinaryClassificationOutput CreateBinaryEnsemble(IHostEnvironment env, ClassifierInput input) 167public static CommonOutputs.RegressionOutput CreateRegressionEnsemble(IHostEnvironment env, RegressionInput input) 199public static CommonOutputs.BinaryClassificationOutput CreateBinaryPipelineEnsemble(IHostEnvironment env, PipelineClassifierInput input) 226public static CommonOutputs.RegressionOutput CreateRegressionPipelineEnsemble(IHostEnvironment env, PipelineRegressionInput input) 250public static CommonOutputs.MulticlassClassificationOutput CreateMulticlassPipelineEnsemble(IHostEnvironment env, PipelineClassifierInput input) 277public static CommonOutputs.AnomalyDetectionOutput CreateAnomalyPipelineEnsemble(IHostEnvironment env, PipelineAnomalyInput input) 300private static TOut CreatePipelineEnsemble<TOut>(IHostEnvironment env, PredictorModel[] predictors, SchemaBindablePipelineEnsembleBase ensemble) 323internal static void SerializeRoleMappedData(IHostEnvironment env, IChannel ch, RoleMappedData data, 358internal static void CheckSamePipeline(IHostEnvironment env, IChannel ch,
EntryPoints\DiversityMeasure.cs (3)
18public IBinaryDiversityMeasure CreateComponent(IHostEnvironment env) => new DisagreementDiversityMeasure(); 24public IRegressionDiversityMeasure CreateComponent(IHostEnvironment env) => new RegressionDisagreementDiversityMeasure(); 30public IMulticlassDiversityMeasure CreateComponent(IHostEnvironment env) => new MultiDisagreementDiversityMeasure();
EntryPoints\Ensemble.cs (3)
17public static CommonOutputs.BinaryClassificationOutput CreateBinaryEnsemble(IHostEnvironment env, EnsembleTrainer.Arguments input) 30public static CommonOutputs.MulticlassClassificationOutput CreateMulticlassEnsemble(IHostEnvironment env, MulticlassDataPartitionEnsembleTrainer.Arguments input) 43public static CommonOutputs.RegressionOutput CreateRegressionEnsemble(IHostEnvironment env, RegressionEnsembleTrainer.Arguments input)
EntryPoints\FeatureSelector.cs (1)
17IFeatureSelector IComponentFactory<IFeatureSelector>.CreateComponent(IHostEnvironment env) => new AllFeatureSelector(env);
EntryPoints\OutputCombiner.cs (6)
26public IRegressionOutputCombiner CreateComponent(IHostEnvironment env) => new Average(env); 28IBinaryOutputCombiner IComponentFactory<IBinaryOutputCombiner>.CreateComponent(IHostEnvironment env) => new Average(env); 34public IRegressionOutputCombiner CreateComponent(IHostEnvironment env) => new Median(env); 36IBinaryOutputCombiner IComponentFactory<IBinaryOutputCombiner>.CreateComponent(IHostEnvironment env) => new Median(env); 42IBinaryOutputCombiner IComponentFactory<IBinaryOutputCombiner>.CreateComponent(IHostEnvironment env) => new Voting(env); 48public IMulticlassOutputCombiner CreateComponent(IHostEnvironment env) => new MultiVoting(env);
EntryPoints\PipelineEnsemble.cs (1)
27public static SummaryOutput Summarize(IHostEnvironment env, SummarizePredictor.Input input)
EntryPoints\SubModelSelector.cs (3)
23IBinarySubModelSelector IComponentFactory<IBinarySubModelSelector>.CreateComponent(IHostEnvironment env) => new AllSelector(env); 25IRegressionSubModelSelector IComponentFactory<IRegressionSubModelSelector>.CreateComponent(IHostEnvironment env) => new AllSelector(env); 31IMulticlassSubModelSelector IComponentFactory<IMulticlassSubModelSelector>.CreateComponent(IHostEnvironment env) => new AllSelectorMulticlass(env);
OutputCombiners\Average.cs (3)
32public Average(IHostEnvironment env) 37private Average(IHostEnvironment env, ModelLoadContext ctx) 42public static Average Create(IHostEnvironment env, ModelLoadContext ctx)
OutputCombiners\BaseAverager.cs (2)
13public BaseAverager(IHostEnvironment env, string name) 20protected BaseAverager(IHostEnvironment env, string name, ModelLoadContext ctx)
OutputCombiners\BaseMultiAverager.cs (2)
15private protected BaseMultiAverager(IHostEnvironment env, string name, OptionsBase options) 20protected BaseMultiAverager(IHostEnvironment env, string name, ModelLoadContext ctx)
OutputCombiners\BaseMultiCombiner.cs (2)
27internal BaseMultiCombiner(IHostEnvironment env, string name, OptionsBase options) 37internal BaseMultiCombiner(IHostEnvironment env, string name, ModelLoadContext ctx)
OutputCombiners\BaseScalarStacking.cs (2)
14internal BaseScalarStacking(IHostEnvironment env, string name, ArgumentsBase args) 19internal BaseScalarStacking(IHostEnvironment env, string name, ModelLoadContext ctx)
OutputCombiners\BaseStacking.cs (5)
34private protected BaseStacking(IHostEnvironment env, string name, ArgumentsBase args) 49private protected BaseStacking(IHostEnvironment env, string name, ModelLoadContext ctx) 123public void Train(List<FeatureSubsetModel<TOutput>> models, RoleMappedData data, IHostEnvironment env) 152private IDataView CreateDataView(IHostEnvironment env, IChannel ch, RoleMappedData data, ValueMapper<VBuffer<Single>, 169private IDataView CreateDataView<T>(IHostEnvironment env, IChannel ch, RoleMappedData data, ValueMapper<VBuffer<Single>, TOutput>[] maps,
OutputCombiners\IOutputCombiner.cs (1)
34void Train(List<FeatureSubsetModel<TOutput>> models, RoleMappedData data, IHostEnvironment env);
OutputCombiners\Median.cs (3)
37public Median(IHostEnvironment env) 43private Median(IHostEnvironment env, ModelLoadContext ctx) 54public static Median Create(IHostEnvironment env, ModelLoadContext ctx)
OutputCombiners\MultiAverage.cs (4)
38public IMulticlassOutputCombiner CreateComponent(IHostEnvironment env) => new MultiAverage(env, this); 41public MultiAverage(IHostEnvironment env, Options options) 46private MultiAverage(IHostEnvironment env, ModelLoadContext ctx) 51public static MultiAverage Create(IHostEnvironment env, ModelLoadContext ctx)
OutputCombiners\MultiMedian.cs (4)
41public IMulticlassOutputCombiner CreateComponent(IHostEnvironment env) => new MultiMedian(env, this); 44public MultiMedian(IHostEnvironment env, Options options) 49private MultiMedian(IHostEnvironment env, ModelLoadContext ctx) 54public static MultiMedian Create(IHostEnvironment env, ModelLoadContext ctx)
OutputCombiners\MultiStacking.cs (4)
52public IMulticlassOutputCombiner CreateComponent(IHostEnvironment env) => new MultiStacking(env, this); 56public MultiStacking(IHostEnvironment env, Arguments args) 61private MultiStacking(IHostEnvironment env, ModelLoadContext ctx) 66public static MultiStacking Create(IHostEnvironment env, ModelLoadContext ctx)
OutputCombiners\MultiVoting.cs (3)
40public MultiVoting(IHostEnvironment env) 46private MultiVoting(IHostEnvironment env, ModelLoadContext ctx) 52public static MultiVoting Create(IHostEnvironment env, ModelLoadContext ctx)
OutputCombiners\MultiWeightedAverage.cs (4)
45IMulticlassOutputCombiner IComponentFactory<IMulticlassOutputCombiner>.CreateComponent(IHostEnvironment env) => new MultiWeightedAverage(env, this); 55public MultiWeightedAverage(IHostEnvironment env, Options options) 62private MultiWeightedAverage(IHostEnvironment env, ModelLoadContext ctx) 72public static MultiWeightedAverage Create(IHostEnvironment env, ModelLoadContext ctx)
OutputCombiners\RegressionStacking.cs (4)
50public IRegressionOutputCombiner CreateComponent(IHostEnvironment env) => new RegressionStacking(env, this); 54public RegressionStacking(IHostEnvironment env, Arguments args) 59private RegressionStacking(IHostEnvironment env, ModelLoadContext ctx) 64public static RegressionStacking Create(IHostEnvironment env, ModelLoadContext ctx)
OutputCombiners\Stacking.cs (4)
49public IBinaryOutputCombiner CreateComponent(IHostEnvironment env) => new Stacking(env, this); 53public Stacking(IHostEnvironment env, Arguments args) 58private Stacking(IHostEnvironment env, ModelLoadContext ctx) 63public static Stacking Create(IHostEnvironment env, ModelLoadContext ctx)
OutputCombiners\Voting.cs (3)
34public Voting(IHostEnvironment env) 40private Voting(IHostEnvironment env, ModelLoadContext ctx) 52public static Voting Create(IHostEnvironment env, ModelLoadContext ctx)
OutputCombiners\WeightedAverage.cs (4)
46public IBinaryOutputCombiner CreateComponent(IHostEnvironment env) => new WeightedAverage(env, this); 53public WeightedAverage(IHostEnvironment env, Options options) 60private WeightedAverage(IHostEnvironment env, ModelLoadContext ctx) 69public static WeightedAverage Create(IHostEnvironment env, ModelLoadContext ctx)
PipelineEnsemble.cs (19)
197protected SchemaBindablePipelineEnsemble(IHostEnvironment env, PredictorModel[] predictors, 204protected SchemaBindablePipelineEnsemble(IHostEnvironment env, ModelLoadContext ctx, string scoreColumnKind) 225private protected override ISchemaBoundMapper BindCore(IHostEnvironment env, RoleMappedSchema schema) 248public ImplOne(IHostEnvironment env, PredictorModel[] predictors, IRegressionOutputCombiner combiner, string scoreColumnKind) 253public ImplOne(IHostEnvironment env, ModelLoadContext ctx, string scoreColumnKind) 276public ImplVec(IHostEnvironment env, PredictorModel[] predictors, IMulticlassOutputCombiner combiner) 283public ImplVec(IHostEnvironment env, ModelLoadContext ctx, string scoreColumnKind) 298public ImplOneWithCalibrator(IHostEnvironment env, PredictorModel[] predictors, IBinaryOutputCombiner combiner) 305public ImplOneWithCalibrator(IHostEnvironment env, ModelLoadContext ctx, string scoreColumnKind) 312private static void CheckBinaryLabel(bool user, IHostEnvironment env, PredictorModel[] predictors) 403private SchemaBindablePipelineEnsembleBase(IHostEnvironment env, PredictorModel[] predictors, string registrationName, string scoreColumnKind) 449protected SchemaBindablePipelineEnsembleBase(IHostEnvironment env, ModelLoadContext ctx, string scoreColumnKind) 519public static SchemaBindablePipelineEnsembleBase Create(IHostEnvironment env, PredictorModel[] predictors, IOutputCombiner combiner, string scoreColumnKind) 544public static SchemaBindablePipelineEnsembleBase Create(IHostEnvironment env, ModelLoadContext ctx) 565ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) => BindCore(env, schema); 567private protected abstract ISchemaBoundMapper BindCore(IHostEnvironment env, RoleMappedSchema schema); 589protected static int CheckLabelColumn(IHostEnvironment env, PredictorModel[] models, bool isBinary) 618private static int CheckNonKeyLabelColumnCore(IHostEnvironment env, IPredictor pred, PredictorModel[] models, bool isBinary, DataViewType labelType) 645private static int CheckKeyLabelColumnCore<T>(IHostEnvironment env, PredictorModel[] models, KeyDataViewType labelType, DataViewSchema schema, int labelIndex, VectorDataViewType keyValuesType)
Selector\FeatureSelector\AllFeatureSelector.cs (1)
21public AllFeatureSelector(IHostEnvironment env)
Selector\FeatureSelector\RandomFeatureSelector.cs (2)
30public IFeatureSelector CreateComponent(IHostEnvironment env) => new RandomFeatureSelector(env, this); 36public RandomFeatureSelector(IHostEnvironment env, Arguments args)
Selector\SubModelSelector\AllSelector.cs (1)
23public AllSelector(IHostEnvironment env)
Selector\SubModelSelector\AllSelectorMulticlass.cs (1)
25public AllSelectorMulticlass(IHostEnvironment env)
Selector\SubModelSelector\BaseBestPerformanceSelector.cs (1)
20protected BaseBestPerformanceSelector(ArgumentsBase args, IHostEnvironment env, string name)
Selector\SubModelSelector\BaseDiverseSelector.cs (1)
24private protected BaseDiverseSelector(IHostEnvironment env, DiverseSelectorArguments args, string name,
Selector\SubModelSelector\BaseSubModelSelector.cs (2)
21protected BaseSubModelSelector(IHostEnvironment env, string name) 57private IEvaluator GetEvaluator(IHostEnvironment env)
Selector\SubModelSelector\BestDiverseSelectorBinary.cs (2)
32public IBinarySubModelSelector CreateComponent(IHostEnvironment env) => new BestDiverseSelectorBinary(env, this); 35public BestDiverseSelectorBinary(IHostEnvironment env, Arguments args)
Selector\SubModelSelector\BestDiverseSelectorMulticlass.cs (2)
32public IMulticlassSubModelSelector CreateComponent(IHostEnvironment env) => new BestDiverseSelectorMulticlass(env, this); 35public BestDiverseSelectorMulticlass(IHostEnvironment env, Arguments args)
Selector\SubModelSelector\BestDiverseSelectorRegression.cs (2)
31public IRegressionSubModelSelector CreateComponent(IHostEnvironment env) => new BestDiverseSelectorRegression(env, this); 34public BestDiverseSelectorRegression(IHostEnvironment env, Arguments args)
Selector\SubModelSelector\BestPerformanceRegressionSelector.cs (2)
28public IRegressionSubModelSelector CreateComponent(IHostEnvironment env) => new BestPerformanceRegressionSelector(env, this); 38public BestPerformanceRegressionSelector(IHostEnvironment env, Arguments args)
Selector\SubModelSelector\BestPerformanceSelector.cs (2)
28public IBinarySubModelSelector CreateComponent(IHostEnvironment env) => new BestPerformanceSelector(env, this); 37public BestPerformanceSelector(IHostEnvironment env, Arguments args)
Selector\SubModelSelector\BestPerformanceSelectorMulticlass.cs (2)
28IMulticlassSubModelSelector IComponentFactory<IMulticlassSubModelSelector>.CreateComponent(IHostEnvironment env) => new BestPerformanceSelectorMulticlass(env, this); 37public BestPerformanceSelectorMulticlass(IHostEnvironment env, Arguments args)
Selector\SubModelSelector\SubModelDataSelector.cs (1)
31protected SubModelDataSelector(ArgumentsBase args, IHostEnvironment env, string name)
Selector\SubsetSelector\AllInstanceSelector.cs (2)
28public ISubsetSelector CreateComponent(IHostEnvironment env) => new AllInstanceSelector(env, this); 31public AllInstanceSelector(IHostEnvironment env, Arguments args)
Selector\SubsetSelector\BaseSubsetSelector.cs (1)
32protected BaseSubsetSelector(TOptions options, IHostEnvironment env, string name)
Selector\SubsetSelector\BootstrapSelector.cs (2)
38public ISubsetSelector CreateComponent(IHostEnvironment env) => new BootstrapSelector(env, this); 41public BootstrapSelector(IHostEnvironment env, Arguments args)
Selector\SubsetSelector\RandomPartitionSelector.cs (2)
30public ISubsetSelector CreateComponent(IHostEnvironment env) => new RandomPartitionSelector(env, this); 33public RandomPartitionSelector(IHostEnvironment env, Arguments args)
Trainer\Binary\EnsembleTrainer.cs (2)
67public EnsembleTrainer(IHostEnvironment env, Arguments args) 75private EnsembleTrainer(IHostEnvironment env, Arguments args, PredictionKind predictionKind)
Trainer\EnsembleDistributionModelParameters.cs (3)
63internal EnsembleDistributionModelParameters(IHostEnvironment env, PredictionKind kind, 73private EnsembleDistributionModelParameters(IHostEnvironment env, ModelLoadContext ctx) 122internal static EnsembleDistributionModelParameters Create(IHostEnvironment env, ModelLoadContext ctx)
Trainer\EnsembleModelParameters.cs (3)
57internal EnsembleModelParameters(IHostEnvironment env, PredictionKind kind, 65private EnsembleModelParameters(IHostEnvironment env, ModelLoadContext ctx) 112internal static EnsembleModelParameters Create(IHostEnvironment env, ModelLoadContext ctx)
Trainer\EnsembleModelParametersBase.cs (2)
27private protected EnsembleModelParametersBase(IHostEnvironment env, string name, FeatureSubsetModel<TOutput>[] models, 40private protected EnsembleModelParametersBase(IHostEnvironment env, string name, ModelLoadContext ctx)
Trainer\EnsembleTrainerBase.cs (1)
75private protected EnsembleTrainerBase(ArgumentsBase args, IHostEnvironment env, string name)
Trainer\Multiclass\EnsembleMulticlassModelParameters.cs (3)
50internal EnsembleMulticlassModelParameters(IHostEnvironment env, FeatureSubsetModel<VBuffer<float>>[] models, 57private EnsembleMulticlassModelParameters(IHostEnvironment env, ModelLoadContext ctx) 94internal static EnsembleMulticlassModelParameters Create(IHostEnvironment env, ModelLoadContext ctx)
Trainer\Multiclass\MulticlassDataPartitionEnsembleTrainer.cs (2)
74public MulticlassDataPartitionEnsembleTrainer(IHostEnvironment env, Arguments args) 82private MulticlassDataPartitionEnsembleTrainer(IHostEnvironment env, Arguments args, PredictionKind predictionKind)
Trainer\Regression\RegressionEnsembleTrainer.cs (2)
62public RegressionEnsembleTrainer(IHostEnvironment env, Arguments args) 70private RegressionEnsembleTrainer(IHostEnvironment env, Arguments args, PredictionKind predictionKind)
Microsoft.ML.EntryPoints (40)
CrossValidationMacro.cs (3)
161IHostEnvironment env, 360public static CombinedOutput CombineMetrics(IHostEnvironment env, CombineMetricsInput input) 422private static IMamlEvaluator GetEvaluator(IHostEnvironment env, MacroUtils.TrainerKinds kind)
CVSplit.cs (1)
47public static Output Split(IHostEnvironment env, Input input)
DataViewReference.cs (1)
29public static Output ImportData(IHostEnvironment env, Input input)
FeatureCombiner.cs (5)
45public static CommonOutputs.TransformOutput PrepareFeatures(IHostEnvironment env, FeatureCombinerInput input) 142private static IDataView ApplyConvert(List<TypeConvertingEstimator.ColumnOptions> cvt, IDataView viewTrain, IHostEnvironment env) 228public static CommonOutputs.TransformOutput PrepareClassificationLabel(IHostEnvironment env, ClassificationLabelInput input) 264public static CommonOutputs.TransformOutput ConvertPredictedLabel(IHostEnvironment env, PredictedLabelInput input) 286public static CommonOutputs.TransformOutput PrepareRegressionLabel(IHostEnvironment env, RegressionLabelInput input)
ImportTextData.cs (2)
36public static Output ImportText(IHostEnvironment env, Input input) 56public static Output TextLoader(IHostEnvironment env, LoaderInput input)
JsonUtils\ExecuteGraphCommand.cs (1)
39public ExecuteGraphCommand(IHostEnvironment env, Arguments args)
JsonUtils\GraphRunner.cs (2)
26public GraphRunner(IHostEnvironment env, JArray nodes) 35public GraphRunner(IHostEnvironment env, EntryPointGraph graph)
MacroUtils.cs (4)
89public static ArrayIPredictorModelOutput MakeArray(IHostEnvironment env, ArrayIPredictorModelInput input) 111public static ArrayIDataViewOutput MakeArray(IHostEnvironment env, ArrayIDataViewInput input) 120internal static void ConvertIPredictorModelsToArray(IHostEnvironment env, RunContext context, List<EntryPointNode> subGraphNodes, 143internal static void ConvertIdataViewsToArray(IHostEnvironment env, RunContext context, List<EntryPointNode> subGraphNodes,
ModelOperations.cs (5)
84public static CombineTransformModelsOutput CombineTransformModels(IHostEnvironment env, CombineTransformModelsInput input) 100public static PredictorModelOutput CombineModels(IHostEnvironment env, PredictorModelInput input) 115public static PredictorModelOutput CombineTwoModels(IHostEnvironment env, SimplePredictorModelInput input) 126public static ApplyTransformModelOutput Apply(IHostEnvironment env, ApplyTransformModelInput input) 132public static PredictorModelOutput CombineOvaModels(IHostEnvironment env, CombineOvaPredictorModelsInput input)
OneVersusAllMacro.cs (3)
51private static Var<PredictorModel> ProcessClass(IHostEnvironment env, List<EntryPointNode> macroNodes, int k, string label, Arguments input, EntryPointNode node) 115private static int GetNumberOfClasses(IHostEnvironment env, Arguments input, out string label) 140IHostEnvironment env,
PermutationFeatureImportance.cs (6)
22public static PermutationFeatureImportanceOutput PermutationFeatureImportance(IHostEnvironment env, PermutationFeatureImportanceArguments input) 60IHostEnvironment env, 85IHostEnvironment env, 142IHostEnvironment env, 201IHostEnvironment env, 252IHostEnvironment env,
ScoreColumnSelector.cs (2)
24public static CommonOutputs.TransformOutput SelectColumns(IHostEnvironment env, ScoreColumnSelectorInput input) 65public static CommonOutputs.TransformOutput RenameBinaryPredictionScoreColumns(IHostEnvironment env,
ScoreModel.cs (3)
68public static Output Score(IHostEnvironment env, Input input) 100public static Output ScoreUsingTransform(IHostEnvironment env, InputTransformScorer input) 116public static Output MakeScoringTransform(IHostEnvironment env, ModelInput input)
TrainTestMacro.cs (1)
110IHostEnvironment env,
TrainTestSplit.cs (1)
43public static Output Split(IHostEnvironment env, Input input)
Microsoft.ML.FastTree (141)
BoostingFastTree.cs (2)
16private protected BoostingFastTreeTrainerBase(IHostEnvironment env, TOptions options, SchemaShape.Column label) : base(env, options, label) 20private protected BoostingFastTreeTrainerBase(IHostEnvironment env,
FastTree.cs (10)
103private protected FastTreeTrainerBase(IHostEnvironment env, 142private protected FastTreeTrainerBase(IHostEnvironment env, TOptions options, SchemaShape.Column label) 178private void Initialize(IHostEnvironment env) 2732public ExamplesToFastTreeBins(IHostEnvironment env, int maxBins, bool diskTranspose, bool noFlocks, int minDocsPerLeaf, float maxLabel) 2836private protected TreeEnsembleModelParameters(IHostEnvironment env, string name, InternalTreeEnsemble trainedEnsemble, int numFeatures, string innerArgs) 2857private protected TreeEnsembleModelParameters(IHostEnvironment env, string name, ModelLoadContext ctx, VersionInfo ver) 3371private protected TreeEnsembleModelParametersBasedOnRegressionTree(IHostEnvironment env, string name, InternalTreeEnsemble trainedEnsemble, int numFeatures, string innerArgs) 3378private protected TreeEnsembleModelParametersBasedOnRegressionTree(IHostEnvironment env, string name, ModelLoadContext ctx, VersionInfo ver) 3417private protected TreeEnsembleModelParametersBasedOnQuantileRegressionTree(IHostEnvironment env, string name, InternalTreeEnsemble trainedEnsemble, int numFeatures, string innerArgs) 3424private protected TreeEnsembleModelParametersBasedOnQuantileRegressionTree(IHostEnvironment env, string name, ModelLoadContext ctx, VersionInfo ver)
FastTreeArguments.cs (4)
107ITrainer IComponentFactory<ITrainer>.CreateComponent(IHostEnvironment env) => new FastTreeBinaryTrainer(env, this); 151ITrainer IComponentFactory<ITrainer>.CreateComponent(IHostEnvironment env) => new FastTreeRegressionTrainer(env, this); 210ITrainer IComponentFactory<ITrainer>.CreateComponent(IHostEnvironment env) => new FastTreeTweedieTrainer(env, this); 308ITrainer IComponentFactory<ITrainer>.CreateComponent(IHostEnvironment env) => new FastTreeRankingTrainer(env, this);
FastTreeClassification.cs (8)
71internal FastTreeBinaryModelParameters(IHostEnvironment env, InternalTreeEnsemble trainedEnsemble, int featureCount, string innerArgs) 76private FastTreeBinaryModelParameters(IHostEnvironment env, ModelLoadContext ctx) 87internal static IPredictorProducing<float> Create(IHostEnvironment env, ModelLoadContext ctx) 148/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 156internal FastTreeBinaryTrainer(IHostEnvironment env, 173/// <param name="env">The instance of <see cref="IHostEnvironment"/>.</param> 175internal FastTreeBinaryTrainer(IHostEnvironment env, Options options) 434public static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, FastTreeBinaryTrainer.Options input)
FastTreeRanking.cs (8)
87/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 96internal FastTreeRankingTrainer(IHostEnvironment env, 113/// <param name="env">The instance of <see cref="IHostEnvironment"/>.</param> 115internal FastTreeRankingTrainer(IHostEnvironment env, Options options) 1053internal FastTreeRankingModelParameters(IHostEnvironment env, InternalTreeEnsemble trainedEnsemble, int featureCount, string innerArgs) 1058private FastTreeRankingModelParameters(IHostEnvironment env, ModelLoadContext ctx) 1069internal static FastTreeRankingModelParameters Create(IHostEnvironment env, ModelLoadContext ctx) 1083public static CommonOutputs.RankingOutput TrainRanking(IHostEnvironment env, FastTreeRankingTrainer.Options input)
FastTreeRegression.cs (8)
78/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 86internal FastTreeRegressionTrainer(IHostEnvironment env, 101/// <param name="env">The instance of <see cref="IHostEnvironment"/>.</param> 103internal FastTreeRegressionTrainer(IHostEnvironment env, Options options) 501internal FastTreeRegressionModelParameters(IHostEnvironment env, InternalTreeEnsemble trainedEnsemble, int featureCount, string innerArgs) 506private FastTreeRegressionModelParameters(IHostEnvironment env, ModelLoadContext ctx) 517internal static FastTreeRegressionModelParameters Create(IHostEnvironment env, ModelLoadContext ctx) 534public static CommonOutputs.RegressionOutput TrainRegression(IHostEnvironment env, FastTreeRegressionTrainer.Options input)
FastTreeTweedie.cs (8)
82/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 90internal FastTreeTweedieTrainer(IHostEnvironment env, 109/// <param name="env">The instance of <see cref="IHostEnvironment"/>.</param> 111internal FastTreeTweedieTrainer(IHostEnvironment env, Options options) 511internal FastTreeTweedieModelParameters(IHostEnvironment env, InternalTreeEnsemble trainedEnsemble, int featureCount, string innerArgs) 516private FastTreeTweedieModelParameters(IHostEnvironment env, ModelLoadContext ctx) 527internal static FastTreeTweedieModelParameters Create(IHostEnvironment env, ModelLoadContext ctx) 570public static CommonOutputs.RegressionOutput TrainTweedieRegression(IHostEnvironment env, FastTreeTweedieTrainer.Options input)
GamClassification.cs (6)
85internal GamBinaryTrainer(IHostEnvironment env, Options options) 94/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 101internal GamBinaryTrainer(IHostEnvironment env, 214internal GamBinaryModelParameters(IHostEnvironment env, 218private GamBinaryModelParameters(IHostEnvironment env, ModelLoadContext ctx) 234internal static IPredictorProducing<float> Create(IHostEnvironment env, ModelLoadContext ctx)
GamModelParameters.cs (4)
63private protected GamModelParametersBase(IHostEnvironment env, string name, 116private protected GamModelParametersBase(IHostEnvironment env, string name, ModelLoadContext ctx) 560internal Arguments SetServerIfNeeded(IHostEnvironment env) 572public VisualizationCommand(IHostEnvironment env, Arguments args)
GamRegression.cs (6)
77internal GamRegressionTrainer(IHostEnvironment env, Options options) 83/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 90internal GamRegressionTrainer(IHostEnvironment env, 164internal GamRegressionModelParameters(IHostEnvironment env, 168private GamRegressionModelParameters(IHostEnvironment env, ModelLoadContext ctx) 184internal static GamRegressionModelParameters Create(IHostEnvironment env, ModelLoadContext ctx)
GamTrainer.cs (4)
168private protected GamTrainerBase(IHostEnvironment env, 196private protected GamTrainerBase(IHostEnvironment env, TOptions options, string name, SchemaShape.Column label) 686public static CommonOutputs.RegressionOutput TrainRegression(IHostEnvironment env, GamRegressionTrainer.Options input) 700public static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, GamBinaryTrainer.Options input)
RandomForest.cs (2)
19private protected RandomForestTrainerBase(IHostEnvironment env, TOptions options, SchemaShape.Column label, bool quantileEnabled = false) 28private protected RandomForestTrainerBase(IHostEnvironment env,
RandomForestClassification.cs (8)
91internal FastForestBinaryModelParameters(IHostEnvironment env, InternalTreeEnsemble trainedEnsemble, int featureCount, string innerArgs) 95private FastForestBinaryModelParameters(IHostEnvironment env, ModelLoadContext ctx) 106internal static IPredictorProducing<float> Create(IHostEnvironment env, ModelLoadContext ctx) 181/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 188internal FastForestBinaryTrainer(IHostEnvironment env, 204/// <param name="env">The instance of <see cref="IHostEnvironment"/>.</param> 206internal FastForestBinaryTrainer(IHostEnvironment env, Options options) 410public static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, FastForestBinaryTrainer.Options input)
RandomForestRegression.cs (8)
177internal FastForestRegressionModelParameters(IHostEnvironment env, InternalTreeEnsemble trainedEnsemble, int featureCount, string innerArgs, int samplesCount) 183private FastForestRegressionModelParameters(IHostEnvironment env, ModelLoadContext ctx) 208internal static FastForestRegressionModelParameters Create(IHostEnvironment env, ModelLoadContext ctx) 320/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 327internal FastForestRegressionTrainer(IHostEnvironment env, 343/// <param name="env">The instance of <see cref="IHostEnvironment"/>.</param> 345internal FastForestRegressionTrainer(IHostEnvironment env, Options options) 595public static CommonOutputs.RegressionOutput TrainRegression(IHostEnvironment env, FastForestRegressionTrainer.Options input)
SumupPerformanceCommand.cs (1)
79public SumupPerformanceCommand(IHostEnvironment env, Arguments args)
Training\EarlyStoppingCriteria.cs (6)
65new EarlyStoppingRuleBase CreateComponent(IHostEnvironment env, bool lowerIsBetter); 126public EarlyStoppingRuleBase CreateComponent(IHostEnvironment env, bool lowerIsBetter) 294public EarlyStoppingRuleBase CreateComponent(IHostEnvironment env, bool lowerIsBetter) 355public EarlyStoppingRuleBase CreateComponent(IHostEnvironment env, bool lowerIsBetter) 415public EarlyStoppingRuleBase CreateComponent(IHostEnvironment env, bool lowerIsBetter) 478public EarlyStoppingRuleBase CreateComponent(IHostEnvironment env, bool lowerIsBetter)
Training\Parallel\SingleTrainer.cs (1)
100public IParallelTraining CreateComponent(IHostEnvironment env) => new SingleTrainer();
TreeEnsemble\TreeEnsembleCombiner.cs (1)
21public TreeEnsembleCombiner(IHostEnvironment env, PredictionKind kind)
TreeEnsembleFeaturizationEstimator.cs (9)
83private protected readonly IHostEnvironment Env; 85private protected TreeEnsembleFeaturizationEstimatorBase(IHostEnvironment env, OptionsBase options) 195internal PretrainedTreeFeaturizationEstimator(IHostEnvironment env, Options options) : base(env, options) 236internal FastTreeBinaryFeaturizationEstimator(IHostEnvironment env, Options options) 279internal FastTreeRegressionFeaturizationEstimator(IHostEnvironment env, Options options) 322internal FastForestBinaryFeaturizationEstimator(IHostEnvironment env, Options options) 365internal FastForestRegressionFeaturizationEstimator(IHostEnvironment env, Options options) 408internal FastTreeRankingFeaturizationEstimator(IHostEnvironment env, Options options) 451internal FastTreeTweedieFeaturizationEstimator(IHostEnvironment env, Options options)
TreeEnsembleFeaturizationTransformer.cs (3)
69internal TreeEnsembleFeaturizationTransformer(IHostEnvironment env, DataViewSchema inputSchema, 104private TreeEnsembleFeaturizationTransformer(IHostEnvironment host, ModelLoadContext ctx) 189internal static TreeEnsembleFeaturizationTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
TreeEnsembleFeaturizer.cs (11)
397public TreeEnsembleFeaturizerBindableMapper(IHostEnvironment env, Arguments args, IPredictor predictor) 423public TreeEnsembleFeaturizerBindableMapper(IHostEnvironment env, ModelLoadContext ctx) 522ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) 588private static IDataScorerTransform Create(IHostEnvironment env, 595private static ISchemaBindableMapper Create(IHostEnvironment env, 606private static ISchemaBindableMapper Create(IHostEnvironment env, ModelLoadContext ctx) 612private static IDataTransform Create(IHostEnvironment env, Arguments args, IDataView input) 693public static IDataTransform CreateForEntryPoint(IHostEnvironment env, ArgumentsForEntryPoint args, IDataView input) 739private static IDataView AppendFloatMapper<TInput>(IHostEnvironment env, IChannel ch, IDataView input, 792private static IDataView AppendLabelTransform(IHostEnvironment env, IChannel ch, IDataView input, string labelName, int labelPermutationSeed) 823public static CommonOutputs.TransformOutput Featurizer(IHostEnvironment env, TreeEnsembleFeaturizerTransform.ArgumentsForEntryPoint input)
TreeTrainersCatalog.cs (23)
46var env = CatalogUtils.GetEnvironment(catalog); 68var env = CatalogUtils.GetEnvironment(catalog); 100var env = CatalogUtils.GetEnvironment(catalog); 122var env = CatalogUtils.GetEnvironment(catalog); 156var env = CatalogUtils.GetEnvironment(catalog); 178var env = CatalogUtils.GetEnvironment(catalog); 208var env = CatalogUtils.GetEnvironment(catalog); 228var env = CatalogUtils.GetEnvironment(catalog); 258var env = CatalogUtils.GetEnvironment(catalog); 278var env = CatalogUtils.GetEnvironment(catalog); 310var env = CatalogUtils.GetEnvironment(catalog); 332var env = CatalogUtils.GetEnvironment(catalog); 362var env = CatalogUtils.GetEnvironment(catalog); 384var env = CatalogUtils.GetEnvironment(catalog); 414var env = CatalogUtils.GetEnvironment(catalog); 436var env = CatalogUtils.GetEnvironment(catalog); 457var env = CatalogUtils.GetEnvironment(catalog); 478var env = CatalogUtils.GetEnvironment(catalog); 499var env = CatalogUtils.GetEnvironment(catalog); 520var env = CatalogUtils.GetEnvironment(catalog); 541var env = CatalogUtils.GetEnvironment(catalog); 562var env = CatalogUtils.GetEnvironment(catalog); 583var env = CatalogUtils.GetEnvironment(catalog);
Microsoft.ML.ImageAnalytics (48)
EntryPoints\ImageAnalytics.cs (5)
18public static CommonOutputs.TransformOutput ImageLoader(IHostEnvironment env, ImageLoadingTransformer.Options input) 31public static CommonOutputs.TransformOutput ImageResizer(IHostEnvironment env, ImageResizingTransformer.Arguments input) 44public static CommonOutputs.TransformOutput ImagePixelExtractor(IHostEnvironment env, ImagePixelExtractingTransformer.Options input) 57public static CommonOutputs.TransformOutput ImageGrayscale(IHostEnvironment env, ImageGrayscalingTransformer.Options input) 70public static CommonOutputs.TransformOutput VectorToImage(IHostEnvironment env, VectorToImageConvertingTransformer.Options input)
ExtensionsCatalog.cs (1)
50var env = CatalogUtils.GetEnvironment(catalog);
ImageGrayscale.cs (8)
86/// <param name="env">The estimator's local <see cref="IHostEnvironment"/>.</param> 89internal ImageGrayscalingTransformer(IHostEnvironment env, params (string outputColumnName, string inputColumnName)[] columns) 95internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 107private static ImageGrayscalingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 122private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 126private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 234/// <param name="env">The estimator's local <see cref="IHostEnvironment"/>.</param> 237internal ImageGrayscalingEstimator(IHostEnvironment env, params (string outputColumnName, string inputColumnName)[] columns)
ImageLoader.cs (9)
91internal ImageLoadingTransformer(IHostEnvironment env, string imageFolder = null, params (string outputColumnName, string inputColumnName)[] columns) 103internal ImageLoadingTransformer(IHostEnvironment env, string imageFolder = null, bool type = true, params (string outputColumnName, string inputColumnName)[] columns) 120internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView data) 127private static ImageLoadingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 151private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 155private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 410internal ImageLoadingEstimator(IHostEnvironment env, string imageFolder, params (string outputColumnName, string inputColumnName)[] columns) 422internal ImageLoadingEstimator(IHostEnvironment env, string imageFolder, bool type = true, params (string outputColumnName, string inputColumnName)[] columns) 427internal ImageLoadingEstimator(IHostEnvironment env, ImageLoadingTransformer transformer, bool type = true)
ImagePixelExtractor.cs (8)
163internal ImagePixelExtractingTransformer(IHostEnvironment env, 181internal ImagePixelExtractingTransformer(IHostEnvironment env, params ImagePixelExtractingEstimator.ColumnOptions[] columns) 194internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 214private static ImagePixelExtractingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 239private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 243private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 781internal ImagePixelExtractingEstimator(IHostEnvironment env, 800internal ImagePixelExtractingEstimator(IHostEnvironment env, params ColumnOptions[] columns)
ImageResizer.cs (9)
125internal ImageResizingTransformer(IHostEnvironment env, string outputColumnName, 138internal ImageResizingTransformer(IHostEnvironment env, params ImageResizingEstimator.ColumnOptions[] columns) 151internal static IDataTransform Create(IHostEnvironment env, Arguments args, IDataView input) 176private static ImageResizingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 215private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 219private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 479internal ImageResizingEstimator(IHostEnvironment env, 495internal ImageResizingEstimator(IHostEnvironment env, params ColumnOptions[] columns) 500private ImageResizingEstimator(IHostEnvironment env, ImageResizingTransformer transformer)
VectorToImageTransform.cs (8)
178internal VectorToImageConvertingTransformer(IHostEnvironment env, params VectorToImageConvertingEstimator.ColumnOptions[] columns) 201internal VectorToImageConvertingTransformer(IHostEnvironment env, string outputColumnName, 218internal static IDataTransform Create(IHostEnvironment env, Options args, IDataView input) 252private static VectorToImageConvertingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 268private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 272private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 710internal VectorToImageConvertingEstimator(IHostEnvironment env, 734internal VectorToImageConvertingEstimator(IHostEnvironment env, params ColumnOptions[] columnOptions)
Microsoft.ML.KMeansClustering (8)
KMeansCatalog.cs (2)
36var env = CatalogUtils.GetEnvironment(catalog); 63var env = CatalogUtils.GetEnvironment(catalog);
KMeansModelParameters.cs (3)
75internal KMeansModelParameters(IHostEnvironment env, int k, VBuffer<float>[] centroids, bool copyIn) 110private KMeansModelParameters(IHostEnvironment env, ModelLoadContext ctx) 256internal static KMeansModelParameters Create(IHostEnvironment env, ModelLoadContext ctx)
KMeansPlusPlusTrainer.cs (3)
168/// <param name="env">The <see cref="IHostEnvironment"/> to use.</param> 170internal KMeansTrainer(IHostEnvironment env, Options options) 291internal static CommonOutputs.ClusteringOutput TrainKMeans(IHostEnvironment env, Options input)
Microsoft.ML.LightGbm (51)
LightGbmArguments.cs (3)
32new BoosterParameterBase CreateComponent(IHostEnvironment env); 168BoosterParameterBase IComponentFactory<BoosterParameterBase>.CreateComponent(IHostEnvironment env) 171BoosterParameterBase IBoosterParameterFactory.CreateComponent(IHostEnvironment env)
LightGbmBinaryTrainer.cs (9)
59internal LightGbmBinaryModelParameters(IHostEnvironment env, InternalTreeEnsemble trainedEnsemble, int featureCount, string innerArgs) 64private LightGbmBinaryModelParameters(IHostEnvironment env, ModelLoadContext ctx) 75internal static IPredictorProducing<float> Create(IHostEnvironment env, ModelLoadContext ctx) 193internal LightGbmBinaryTrainer(IHostEnvironment env, Options options) 203/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 211internal LightGbmBinaryTrainer(IHostEnvironment env, 236/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 239internal LightGbmBinaryTrainer(IHostEnvironment env, 314public static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, LightGbmBinaryTrainer.Options input)
LightGbmCatalog.cs (12)
47var env = CatalogUtils.GetEnvironment(catalog); 67var env = CatalogUtils.GetEnvironment(catalog); 83var env = CatalogUtils.GetEnvironment(catalog); 115var env = CatalogUtils.GetEnvironment(catalog); 135var env = CatalogUtils.GetEnvironment(catalog); 151var env = CatalogUtils.GetEnvironment(catalog); 185var env = CatalogUtils.GetEnvironment(catalog); 206var env = CatalogUtils.GetEnvironment(catalog); 222var env = CatalogUtils.GetEnvironment(catalog); 254var env = CatalogUtils.GetEnvironment(catalog); 274var env = CatalogUtils.GetEnvironment(catalog); 290var env = CatalogUtils.GetEnvironment(catalog);
LightGbmMulticlassTrainer.cs (6)
134internal LightGbmMulticlassTrainer(IHostEnvironment env, Options options) 144/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 152internal LightGbmMulticlassTrainer(IHostEnvironment env, 177/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 180internal LightGbmMulticlassTrainer(IHostEnvironment env, 396public static CommonOutputs.MulticlassClassificationOutput TrainMulticlass(IHostEnvironment env, LightGbmMulticlassTrainer.Options input)
LightGbmRankingTrainer.cs (9)
55internal LightGbmRankingModelParameters(IHostEnvironment env, InternalTreeEnsemble trainedEnsemble, int featureCount, string innerArgs) 60private LightGbmRankingModelParameters(IHostEnvironment env, ModelLoadContext ctx) 71internal static LightGbmRankingModelParameters Create(IHostEnvironment env, ModelLoadContext ctx) 176internal LightGbmRankingTrainer(IHostEnvironment env, Options options) 185/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 194internal LightGbmRankingTrainer(IHostEnvironment env, 222/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 225internal LightGbmRankingTrainer(IHostEnvironment env, 326public static CommonOutputs.RankingOutput TrainRanking(IHostEnvironment env, LightGbmRankingTrainer.Options input)
LightGbmRegressionTrainer.cs (9)
54internal LightGbmRegressionModelParameters(IHostEnvironment env, InternalTreeEnsemble trainedEnsemble, int featureCount, string innerArgs) 59private LightGbmRegressionModelParameters(IHostEnvironment env, ModelLoadContext ctx) 70internal static LightGbmRegressionModelParameters Create(IHostEnvironment env, ModelLoadContext ctx) 162/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 170internal LightGbmRegressionTrainer(IHostEnvironment env, 191internal LightGbmRegressionTrainer(IHostEnvironment env, Options options) 199/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 202internal LightGbmRegressionTrainer(IHostEnvironment env, 274public static CommonOutputs.RegressionOutput TrainRegression(IHostEnvironment env, LightGbmRegressionTrainer.Options input)
LightGbmTrainerBase.cs (2)
317private protected LightGbmTrainerBase(IHostEnvironment env, 342private protected LightGbmTrainerBase(IHostEnvironment env, string name, TOptions options, SchemaShape.Column label)
Parallel\SingleTrainer.cs (1)
53public IParallel CreateComponent(IHostEnvironment env) => new SingleTrainer();
Microsoft.ML.Maml (6)
ChainCommand.cs (1)
36public ChainCommand(IHostEnvironment env, Arguments args)
HelpCommand.cs (3)
64private readonly IHostEnvironment _env; 74public HelpCommand(IHostEnvironment env, Arguments args) 443public XmlGenerator(IHostEnvironment env, Arguments args, string regenerate)
MAML.cs (1)
101internal static int MainCore(IHostEnvironment env, string args, bool alwaysPrintStacktrace)
VersionCommand.cs (1)
22public VersionCommand(IHostEnvironment env)
Microsoft.ML.Mkl.Components (23)
MklComponentsCatalog.cs (4)
39var env = CatalogUtils.GetEnvironment(catalog); 69var env = CatalogUtils.GetEnvironment(catalog); 95var env = CatalogUtils.GetEnvironment(catalog); 126var env = CatalogUtils.GetEnvironment(catalog);
OlsLinearRegression.cs (5)
120internal OlsTrainer(IHostEnvironment env, Options options) 675internal static CommonOutputs.RegressionOutput TrainRegression(IHostEnvironment env, Options options) 770internal OlsModelParameters(IHostEnvironment env, in VBuffer<float> weights, float bias, 807private OlsModelParameters(IHostEnvironment env, ModelLoadContext ctx) 891internal static OlsModelParameters Create(IHostEnvironment env, ModelLoadContext ctx)
SymSgdClassificationTrainer.cs (2)
240internal SymbolicSgdLogisticRegressionBinaryTrainer(IHostEnvironment env, Options options) 286internal static CommonOutputs.BinaryClassificationOutput TrainSymSgd(IHostEnvironment env, Options options)
VectorWhitening.cs (12)
147internal VectorWhiteningTransformer(IHostEnvironment env, float[][] models, float[][] invModels, params VectorWhiteningEstimator.ColumnOptions[] columns) 156private VectorWhiteningTransformer(IHostEnvironment env, ModelLoadContext ctx) 185internal static VectorWhiteningTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 193internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 201internal static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 205internal static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 262internal static (float[][] models, float[][] invModels) TrainVectorWhiteningTransform(IHostEnvironment env, IDataView inputData, params VectorWhiteningEstimator.ColumnOptions[] columns) 278private static void GetColTypesAndIndex(IHostEnvironment env, IDataView inputData, VectorWhiteningEstimator.ColumnOptions[] columns, out DataViewType[] srcTypes, out int[] cols) 299private static float[][] LoadDataAsDense(IHostEnvironment env, IChannel ch, IDataView inputData, out int[] actualRowCounts, 366private static void TrainModels(IHostEnvironment env, IChannel ch, float[][] columnData, int[] rowCounts, 854internal VectorWhiteningEstimator(IHostEnvironment env, params ColumnOptions[] columns) 867internal VectorWhiteningEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null,
Microsoft.ML.OnnxConverter (4)
OnnxContextImpl.cs (1)
39public OnnxContextImpl(IHostEnvironment env, string name, string producerName,
OnnxExportExtensions.cs (1)
18private static ModelProto ConvertToOnnxProtobufCore(IHostEnvironment env, OnnxContextImpl ctx, ITransformer transform, IDataView inputData, string[] outputColumnNamesToKeep = null)
SaveOnnxCommand.cs (2)
93public SaveOnnxCommand(IHostEnvironment env, Arguments args) 430public static Output Apply(IHostEnvironment env, Arguments input)
Microsoft.ML.OnnxTransformer (31)
DnnImageFeaturizerTransform.cs (3)
30internal IHostEnvironment Environment { get; } 35internal DnnImageFeaturizerInput(string outputColumnName, string inputColumnName, IHostEnvironment env, DnnImageModelSelector modelSelector) 98internal DnnImageFeaturizerEstimator(IHostEnvironment env, string outputColumnName, Func<DnnImageFeaturizerInput, EstimatorChain<ColumnCopyingTransformer>> modelFactory, string inputColumnName = null)
OnnxCatalog.cs (2)
499private static (Runtime.IHostEnvironment, int?, bool) GetGpuDeviceId(TransformsCatalog catalog, int? gpuDeviceId, bool fallbackToCpu) 501Runtime.IHostEnvironment env = CatalogUtils.GetEnvironment(catalog);
OnnxSessionOptions.cs (2)
19public static OnnxSessionOptions GetOnnxSessionOption(this IHostEnvironment env) 29public static void SetOnnxSessionOption(this IHostEnvironment env, OnnxSessionOptions onnxSessionOptions)
OnnxTransform.cs (14)
150private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 156private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 160private static OnnxTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 232private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 235private OnnxTransformer(IHostEnvironment env, Options options, byte[] modelBytes = null) : 312internal OnnxTransformer(IHostEnvironment env, string modelFile, int? gpuDeviceId = null, 338internal OnnxTransformer(IHostEnvironment env, Stream modelBytes, int? gpuDeviceId = null, 367internal OnnxTransformer(IHostEnvironment env, string[] outputColumnNames, string[] inputColumnNames, string modelFile, int? gpuDeviceId = null, bool fallbackToCpu = false, 399internal OnnxTransformer(IHostEnvironment env, string[] outputColumnNames, string[] inputColumnNames, Stream modelBytes, int? gpuDeviceId = null, bool fallbackToCpu = false, 974internal OnnxScoringEstimator(IHostEnvironment env, string modelFile, int? gpuDeviceId = null, bool fallbackToCpu = false, 992internal OnnxScoringEstimator(IHostEnvironment env, Stream modelBytes, int? gpuDeviceId = null, bool fallbackToCpu = false, 1012internal OnnxScoringEstimator(IHostEnvironment env, string[] outputColumnNames, string[] inputColumnNames, string modelFile, 1019internal OnnxScoringEstimator(IHostEnvironment env, OnnxTransformer transformer) 1038internal OnnxScoringEstimator(IHostEnvironment env, string[] outputColumnNames, string[] inputColumnNames, Stream modelBytes,
OnnxUtils.cs (10)
172public OnnxModel(IHostEnvironment env, string modelFile, int? gpuDeviceId = null, bool fallbackToCpu = false, 379/// With <see cref="CreateFromBytes(byte[], IHostEnvironment)"/> and <see cref="CreateFromBytes(byte[], IHostEnvironment, int?, bool, IDictionary{string, int[]}, int)"/>, 384public static OnnxModel CreateFromBytes(byte[] modelBytes, IHostEnvironment env) 392/// With <see cref="CreateFromBytes(byte[], IHostEnvironment)"/> and 393/// <see cref="CreateFromBytes(byte[], IHostEnvironment, int?, bool, IDictionary{string, int[]}, int)"/>, 405public static OnnxModel CreateFromBytes(byte[] modelBytes, IHostEnvironment env, int? gpuDeviceId = null, bool fallbackToCpu = false, 417/// With <see cref="CreateFromBytes(byte[], IHostEnvironment)"/> and 418/// <see cref="CreateFromBytes(byte[], IHostEnvironment, int?, bool, IDictionary{string, int[]}, int)"/>, 430public static OnnxModel CreateFromStream(Stream modelBytes, IHostEnvironment env, int? gpuDeviceId = null, bool fallbackToCpu = false,
Microsoft.ML.Parquet (12)
ParquetLoader.cs (4)
117public ParquetLoader(IHostEnvironment env, Arguments args, IMultiStreamSource files) 122public ParquetLoader(IHostEnvironment env, Arguments args, string filepath) 127public ParquetLoader(IHostEnvironment env, Arguments args, Stream stream) 239public static ParquetLoader Create(IHostEnvironment env, ModelLoadContext ctx, IMultiStreamSource files)
PartitionedFileLoader.cs (2)
174public PartitionedFileLoader(IHostEnvironment env, Arguments args, IMultiStreamSource files) 243public static PartitionedFileLoader Create(IHostEnvironment env, ModelLoadContext ctx, IMultiStreamSource files)
PartitionedPathParser.cs (6)
66new IPartitionedPathParser CreateComponent(IHostEnvironment env); 87public IPartitionedPathParser CreateComponent(IHostEnvironment env) => new SimplePartitionedPathParser(env, this); 104public SimplePartitionedPathParser(IHostEnvironment env, Arguments args) 141public static SimplePartitionedPathParser Create(IHostEnvironment env, ModelLoadContext ctx) 201public IPartitionedPathParser CreateComponent(IHostEnvironment env) => new ParquetPartitionedPathParser(); 254public static ParquetPartitionedPathParser Create(IHostEnvironment env, ModelLoadContext ctx)
Microsoft.ML.PCA (18)
PCACatalog.cs (2)
76var env = CatalogUtils.GetEnvironment(catalog); 98var env = CatalogUtils.GetEnvironment(catalog);
PcaTrainer.cs (8)
136/// <param name="env">The local instance of the <see cref="IHostEnvironment"/>.</param> 143internal RandomizedPcaTrainer(IHostEnvironment env, 154internal RandomizedPcaTrainer(IHostEnvironment env, Options options) 159private RandomizedPcaTrainer(IHostEnvironment env, Options options, string featureColumnName, string exampleWeightColumnName, 397internal static CommonOutputs.AnomalyDetectionOutput TrainPcaAnomaly(IHostEnvironment env, Options input) 452internal PcaModelParameters(IHostEnvironment env, int rank, float[][] eigenVectors, in VBuffer<float> mean) 475private PcaModelParameters(IHostEnvironment env, ModelLoadContext ctx) 547internal static PcaModelParameters Create(IHostEnvironment env, ModelLoadContext ctx)
PcaTransformer.cs (8)
204internal PrincipalComponentAnalysisTransformer(IHostEnvironment env, IDataView input, PrincipalComponentAnalyzer.ColumnOptions[] columns) 240private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 244private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 248private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 266private static PrincipalComponentAnalysisTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 682internal static CommonOutputs.TransformOutput Calculate(IHostEnvironment env, Options input) 786internal PrincipalComponentAnalyzer(IHostEnvironment env, 799internal PrincipalComponentAnalyzer(IHostEnvironment env, params ColumnOptions[] columns)
Microsoft.ML.PerformanceTests (3)
BenchmarkBase.cs (1)
51using (var ch = (mlContext as IHostEnvironment).Start("Ensuring dataset files are present."))
Helpers\EnvironmentFactory.cs (2)
21IHostEnvironment environment = ctx; 37IHostEnvironment environment = ctx;
Microsoft.ML.Predictor.Tests (2)
CmdLine\CmdLineReverseTest.cs (1)
140public string ToString(IHostEnvironment env)
TestPredictors.cs (1)
41protected override void InitializeEnvironment(IHostEnvironment environment)
Microsoft.ML.Recommender (15)
MatrixFactorizationPredictor.cs (9)
92internal MatrixFactorizationModelParameters(IHostEnvironment env, SafeTrainingAndModelBuffer buffer, KeyDataViewType matrixColumnIndexType, KeyDataViewType matrixRowIndexType) 113private MatrixFactorizationModelParameters(IHostEnvironment env, ModelLoadContext ctx) 155internal static MatrixFactorizationModelParameters Create(IHostEnvironment env, ModelLoadContext ctx) 313ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) 329private readonly IHostEnvironment _env; 335public RowMapper(IHostEnvironment env, MatrixFactorizationModelParameters parent, RoleMappedSchema schema, DataViewSchema outputSchema) 445internal MatrixFactorizationPredictionTransformer(IHostEnvironment env, MatrixFactorizationModelParameters model, DataViewSchema trainSchema, 482private MatrixFactorizationPredictionTransformer(IHostEnvironment host, ModelLoadContext ctx) 559internal static MatrixFactorizationPredictionTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
MatrixFactorizationTrainer.cs (4)
342/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 345internal MatrixFactorizationTrainer(IHostEnvironment env, Options options) 380/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 388internal MatrixFactorizationTrainer(IHostEnvironment env,
RecommenderCatalog.cs (1)
32internal RecommendationCatalog(IHostEnvironment env)
SafeTrainingAndModelBuffer.cs (1)
215public SafeTrainingAndModelBuffer(IHostEnvironment env, int fun, int k, int nrThreads,
Microsoft.ML.ResultProcessor (8)
ResultProcessor.cs (8)
132public void GetDefaultSettingValues(IHostEnvironment env, string predictorName, string[] extraAssemblies = null) 152private Dictionary<string, string> GetDefaultSettings(IHostEnvironment env, string predictorName, string[] extraAssemblies = null) 398public static ExperimentItemResult? ProcessMamlOutputLines(IHostEnvironment env, string filename, ResultProcessorArguments cmd = null, 664internal static bool ParseCommandArguments(IHostEnvironment env, string commandline, out object commandArgs, out ComponentCatalog.LoadableClassInfo commandClass, bool trimExe = true) 834public static ExperimentItemResult? ProcessOutputFile(IHostEnvironment env, string filename, ResultProcessorArguments cmd) 844public static IEnumerable<ExperimentItemResult?> ProcessOutputFiles(IHostEnvironment env, IEnumerable<string> filePatterns, 1013public static int Main(IHostEnvironment env, string[] args) 1037protected static void Run(IHostEnvironment env, string[] args)
Microsoft.ML.StandardTrainers (172)
FactorizationMachine\FactorizationMachineCatalog.cs (3)
39var env = CatalogUtils.GetEnvironment(catalog); 62var env = CatalogUtils.GetEnvironment(catalog); 81var env = CatalogUtils.GetEnvironment(catalog);
FactorizationMachine\FactorizationMachineTrainer.cs (6)
219/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 222internal FieldAwareFactorizationMachineTrainer(IHostEnvironment env, Options options) 246/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param> 251internal FieldAwareFactorizationMachineTrainer(IHostEnvironment env, 278private void Initialize(IHostEnvironment env, Options options) 574internal static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, Options input)
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (8)
76internal FieldAwareFactorizationMachineModelParameters(IHostEnvironment env, bool norm, int fieldCount, int featureCount, int latentDim, 111internal FieldAwareFactorizationMachineModelParameters(IHostEnvironment env, bool norm, int fieldCount, int featureCount, int latentDim, 129private FieldAwareFactorizationMachineModelParameters(IHostEnvironment env, ModelLoadContext ctx) : base(env, LoaderSignature) 178internal static FieldAwareFactorizationMachineModelParameters Create(IHostEnvironment env, ModelLoadContext ctx) 239ISchemaBoundMapper ISchemaBindableMapper.Bind(IHostEnvironment env, RoleMappedSchema schema) 304internal FieldAwareFactorizationMachinePredictionTransformer(IHostEnvironment host, FieldAwareFactorizationMachineModelParameters model, DataViewSchema trainSchema, 332private FieldAwareFactorizationMachinePredictionTransformer(IHostEnvironment host, ModelLoadContext ctx) 442internal static FieldAwareFactorizationMachinePredictionTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (2)
71private readonly IHostEnvironment _env; 73public FieldAwareFactorizationMachineScalarRowMapper(IHostEnvironment env, RoleMappedSchema schema,
LdSvm\LdSvmModelParameters.cs (3)
53internal LdSvmModelParameters(IHostEnvironment env, VBuffer<float>[] w, VBuffer<float>[] thetaPrime, VBuffer<float>[] theta, 89private LdSvmModelParameters(IHostEnvironment env, ModelLoadContext ctx) 148private static IPredictorProducing<float> Create(IHostEnvironment env, ModelLoadContext ctx)
LdSvm\LdSvmTrainer.cs (2)
164internal LdSvmTrainer(IHostEnvironment env, Options options) 669internal static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, Options input)
Optimizer\L1Optimizer.cs (1)
34public L1Optimizer(IHostEnvironment env, int biasCount, float l1weight, int m = 20, bool keepDense = false,
Optimizer\Optimizer.cs (2)
31protected readonly IHostEnvironment Env; 64public Optimizer(IHostEnvironment env, int m = 20, bool keepDense = false, ITerminationCriterion term = null,
Standard\LinearModelParameters.cs (13)
120internal LinearModelParameters(IHostEnvironment env, string name, in VBuffer<float> weights, float bias) 155private protected LinearModelParameters(IHostEnvironment env, string name, ModelLoadContext ctx) 450internal LinearBinaryModelParameters(IHostEnvironment env, in VBuffer<float> weights, float bias, ModelStatisticsBase stats = null) 457private LinearBinaryModelParameters(IHostEnvironment env, ModelLoadContext ctx) 481internal static IPredictorProducing<float> Create(IHostEnvironment env, ModelLoadContext ctx) 575private protected RegressionModelParameters(IHostEnvironment env, string name, in VBuffer<float> weights, float bias) 581private protected RegressionModelParameters(IHostEnvironment env, string name, ModelLoadContext ctx) 634internal LinearRegressionModelParameters(IHostEnvironment env, in VBuffer<float> weights, float bias) 639private LinearRegressionModelParameters(IHostEnvironment env, ModelLoadContext ctx) 644internal static LinearRegressionModelParameters Create(IHostEnvironment env, ModelLoadContext ctx) 720internal PoissonRegressionModelParameters(IHostEnvironment env, in VBuffer<float> weights, float bias) 725private PoissonRegressionModelParameters(IHostEnvironment env, ModelLoadContext ctx) 730internal static PoissonRegressionModelParameters Create(IHostEnvironment env, ModelLoadContext ctx)
Standard\LogisticRegression\LbfgsPredictorBase.cs (2)
204internal LbfgsTrainerBase(IHostEnvironment env, 228internal LbfgsTrainerBase(IHostEnvironment env,
Standard\LogisticRegression\LogisticRegression.cs (3)
132internal LbfgsLogisticRegressionBinaryTrainer(IHostEnvironment env, 154internal LbfgsLogisticRegressionBinaryTrainer(IHostEnvironment env, Options options) 466internal static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, Options input)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (13)
141internal LbfgsMaximumEntropyMulticlassTrainer(IHostEnvironment env, 161internal LbfgsMaximumEntropyMulticlassTrainer(IHostEnvironment env, Options options) 397internal static CommonOutputs.MulticlassClassificationOutput TrainMulticlass(IHostEnvironment env, LbfgsMaximumEntropyMulticlassTrainer.Options input) 456internal LinearMulticlassModelParametersBase(IHostEnvironment env, string name, in VBuffer<float> weights, int numClasses, int numFeatures, string[] labelNames, ModelStatisticsBase stats = null) 500internal LinearMulticlassModelParametersBase(IHostEnvironment env, string name, VBuffer<float>[] weights, float[] bias, int numClasses, int numFeatures, string[] labelNames, ModelStatisticsBase stats = null) 533private protected LinearMulticlassModelParametersBase(IHostEnvironment env, string name, ModelLoadContext ctx) 1148internal LinearMulticlassModelParameters(IHostEnvironment env, in VBuffer<float> weights, int numClasses, int numFeatures, string[] labelNames, ModelStatisticsBase stats = null) 1153internal LinearMulticlassModelParameters(IHostEnvironment env, VBuffer<float>[] weights, float[] bias, int numClasses, int numFeatures, string[] labelNames, ModelStatisticsBase stats = null) 1158private LinearMulticlassModelParameters(IHostEnvironment env, ModelLoadContext ctx) 1171internal static LinearMulticlassModelParameters Create(IHostEnvironment env, ModelLoadContext ctx) 1220internal MaximumEntropyModelParameters(IHostEnvironment env, in VBuffer<float> weights, int numClasses, int numFeatures, string[] labelNames, ModelStatisticsBase stats = null) 1225internal MaximumEntropyModelParameters(IHostEnvironment env, VBuffer<float>[] weights, float[] bias, int numClasses, int numFeatures, string[] labelNames, ModelStatisticsBase stats = null) 1230private MaximumEntropyModelParameters(IHostEnvironment env, ModelLoadContext ctx)
Standard\ModelStatistics.cs (5)
76private protected IHostEnvironment Env; 92internal ModelStatisticsBase(IHostEnvironment env, long trainingExampleCount, int paramCount, float deviance, float nullDeviance) 106internal ModelStatisticsBase(IHostEnvironment env, ModelLoadContext ctx) 244internal LinearModelParameterStatistics(IHostEnvironment env, long trainingExampleCount, int paramCount, float deviance, float nullDeviance, 258private LinearModelParameterStatistics(IHostEnvironment env, ModelLoadContext ctx)
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (2)
57/// <param name="env">The private instance of the <see cref="IHostEnvironment"/>.</param> 63internal MetaMulticlassTrainer(IHostEnvironment env, OptionsBase options, string name, string labelColumn = null,
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (6)
94internal NaiveBayesMulticlassTrainer(IHostEnvironment env, 107internal NaiveBayesMulticlassTrainer(IHostEnvironment env, Options options) 208internal static CommonOutputs.MulticlassClassificationOutput TrainMulticlassNaiveBayesTrainer(IHostEnvironment env, Options input) 291internal NaiveBayesMulticlassModelParameters(IHostEnvironment env, long[] labelHistogram, long[][] featureHistogram, int featureCount) 313private NaiveBayesMulticlassModelParameters(IHostEnvironment env, ModelLoadContext ctx) 355internal static NaiveBayesMulticlassModelParameters Create(IHostEnvironment env, ModelLoadContext ctx)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (8)
113/// <param name="env">The private <see cref="IHostEnvironment"/> for this estimator.</param> 115internal OneVersusAllTrainer(IHostEnvironment env, Options options) 124/// <param name="env">The <see cref="IHostEnvironment"/> instance.</param> 131internal OneVersusAllTrainer(IHostEnvironment env, 356private OneVersusAllModelParameters(IHostEnvironment env, ImplBase impl) 366private OneVersusAllModelParameters(IHostEnvironment env, ModelLoadContext ctx) 398internal static OneVersusAllModelParameters Create(IHostEnvironment env, ModelLoadContext ctx) 406private static void LoadPredictors<TPredictor>(IHostEnvironment env, TPredictor[] predictors, ModelLoadContext ctx)
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (6)
95internal PairwiseCouplingTrainer(IHostEnvironment env, Options options) 103/// <param name="env">The <see cref="IHostEnvironment"/> instance.</param> 109internal PairwiseCouplingTrainer(IHostEnvironment env, 262internal PairwiseCouplingModelParameters(IHostEnvironment env, TDistPredictor[][] predictors) : 286private PairwiseCouplingModelParameters(IHostEnvironment env, ModelLoadContext ctx) 345internal static PairwiseCouplingModelParameters Create(IHostEnvironment env, ModelLoadContext ctx)
Standard\Online\AveragedLinear.cs (1)
306private protected AveragedLinearTrainer(AveragedLinearOptions options, IHostEnvironment env, string name, SchemaShape.Column label)
Standard\Online\AveragedPerceptron.cs (4)
152internal AveragedPerceptronTrainer(IHostEnvironment env, Options options) 163/// <param name="env">The local instance of the <see cref="IHostEnvironment"/></param> 171internal AveragedPerceptronTrainer(IHostEnvironment env, 224internal static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, Options input)
Standard\Online\LinearSvm.cs (3)
279internal LinearSvmTrainer(IHostEnvironment env, 294internal LinearSvmTrainer(IHostEnvironment env, Options options) 324internal static CommonOutputs.BinaryClassificationOutput TrainLinearSvm(IHostEnvironment env, Options input)
Standard\Online\OnlineGradientDescent.cs (4)
131/// <param name="env">The pricate instance of <see cref="IHostEnvironment"/>.</param> 139internal OnlineGradientDescentTrainer(IHostEnvironment env, 160internal OnlineGradientDescentTrainer(IHostEnvironment env, Options options) 190internal static CommonOutputs.RegressionOutput TrainRegression(IHostEnvironment env, Options input)
Standard\Online\OnlineLinear.cs (1)
261private protected OnlineLinearTrainer(OnlineLinearOptions options, IHostEnvironment env, string name, SchemaShape.Column label)
Standard\PoissonRegression\PoissonRegression.cs (3)
87internal LbfgsPoissonRegressionTrainer(IHostEnvironment env, 106internal LbfgsPoissonRegressionTrainer(IHostEnvironment env, Options options) 212internal static CommonOutputs.RegressionOutput TrainRegression(IHostEnvironment env, Options input)
Standard\SdcaBinary.cs (22)
62private protected LinearTrainerBase(IHostEnvironment env, string featureColumn, SchemaShape.Column labelColumn, 240internal virtual void Check(IHostEnvironment env) 299internal SdcaTrainerBase(IHostEnvironment env, string featureColumnName, SchemaShape.Column labelColumn, 306internal SdcaTrainerBase(IHostEnvironment env, TOptions options, SchemaShape.Column label, SchemaShape.Column weight = default, 1475internal override void Check(IHostEnvironment env) 1493private protected SdcaBinaryTrainerBase(IHostEnvironment env, 1513private protected SdcaBinaryTrainerBase(IHostEnvironment env, BinaryOptionsBase options, ISupportSdcaClassificationLoss loss = null, bool doCalibration = false) 1597internal SdcaLogisticRegressionBinaryTrainer(IHostEnvironment env, 1608internal SdcaLogisticRegressionBinaryTrainer(IHostEnvironment env, Options options) 1702internal SdcaNonCalibratedBinaryTrainer(IHostEnvironment env, 1714internal SdcaNonCalibratedBinaryTrainer(IHostEnvironment env, Options options) 1772internal LegacySdcaBinaryTrainer(IHostEnvironment env, Options options) 1915internal void Check(IHostEnvironment env) 1966internal SgdBinaryTrainerBase(IHostEnvironment env, 1998internal SgdBinaryTrainerBase(IHostEnvironment env, OptionsBase options, IClassificationLoss loss = null, bool doCalibration = false) 2275internal SgdCalibratedTrainer(IHostEnvironment env, 2291internal SgdCalibratedTrainer(IHostEnvironment env, Options options) 2366internal SgdNonCalibratedTrainer(IHostEnvironment env, 2383internal SgdNonCalibratedTrainer(IHostEnvironment env, Options options) 2430internal LegacySgdBinaryTrainer(IHostEnvironment env, Options options) 2467internal static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, Options input) 2491internal static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, LegacySdcaBinaryTrainer.Options input)
Standard\SdcaMulticlass.cs (10)
126internal SdcaMulticlassTrainerBase(IHostEnvironment env, 143internal SdcaMulticlassTrainerBase(IHostEnvironment env, MulticlassOptions options, 154internal SdcaMulticlassTrainerBase(IHostEnvironment env, MulticlassOptions options) 531internal SdcaMaximumEntropyMulticlassTrainer(IHostEnvironment env, 543internal SdcaMaximumEntropyMulticlassTrainer(IHostEnvironment env, Options options, 549internal SdcaMaximumEntropyMulticlassTrainer(IHostEnvironment env, Options options) 627internal SdcaNonCalibratedMulticlassTrainer(IHostEnvironment env, 640internal SdcaNonCalibratedMulticlassTrainer(IHostEnvironment env, Options options, 646internal SdcaNonCalibratedMulticlassTrainer(IHostEnvironment env, Options options) 675public static CommonOutputs.MulticlassClassificationOutput TrainMulticlass(IHostEnvironment env, SdcaMaximumEntropyMulticlassTrainer.Options input)
Standard\SdcaRegression.cs (4)
111internal SdcaRegressionTrainer(IHostEnvironment env, 128internal SdcaRegressionTrainer(IHostEnvironment env, Options options, string featureColumn, string labelColumn, string weightColumn = null) 139internal SdcaRegressionTrainer(IHostEnvironment env, Options options) 214public static CommonOutputs.RegressionOutput TrainRegression(IHostEnvironment env, SdcaRegressionTrainer.Options input)
Standard\Simple\SimpleTrainers.cs (8)
73internal RandomModelParameters(IHostEnvironment env, int seed) 87private RandomModelParameters(IHostEnvironment env, ModelLoadContext ctx) 101internal static RandomModelParameters Create(IHostEnvironment env, ModelLoadContext ctx) 219internal PriorTrainer(IHostEnvironment env, Options options) 229internal PriorTrainer(IHostEnvironment env, String labelColumn, String weightColunn = null) 358internal PriorModelParameters(IHostEnvironment env, float prob) 369private PriorModelParameters(IHostEnvironment env, ModelLoadContext ctx) 383internal static PriorModelParameters Create(IHostEnvironment env, ModelLoadContext ctx)
StandardTrainersCatalog.cs (27)
50var env = CatalogUtils.GetEnvironment(catalog); 74var env = CatalogUtils.GetEnvironment(catalog); 107var env = CatalogUtils.GetEnvironment(catalog); 131var env = CatalogUtils.GetEnvironment(catalog); 162var env = CatalogUtils.GetEnvironment(catalog); 183var env = CatalogUtils.GetEnvironment(catalog); 213var env = CatalogUtils.GetEnvironment(catalog); 235var env = CatalogUtils.GetEnvironment(catalog); 267var env = CatalogUtils.GetEnvironment(catalog); 289var env = CatalogUtils.GetEnvironment(catalog); 318var env = CatalogUtils.GetEnvironment(catalog); 339var env = CatalogUtils.GetEnvironment(catalog); 370var env = CatalogUtils.GetEnvironment(catalog); 391var env = CatalogUtils.GetEnvironment(catalog); 428var env = CatalogUtils.GetEnvironment(catalog); 450var env = CatalogUtils.GetEnvironment(catalog); 463public IClassificationLoss CreateComponent(IHostEnvironment env) 497var env = CatalogUtils.GetEnvironment(catalog); 520var env = CatalogUtils.GetEnvironment(catalog); 554var env = CatalogUtils.GetEnvironment(catalog); 575var env = CatalogUtils.GetEnvironment(catalog); 608var env = CatalogUtils.GetEnvironment(catalog); 628var env = CatalogUtils.GetEnvironment(catalog); 661var env = CatalogUtils.GetEnvironment(catalog); 682var env = CatalogUtils.GetEnvironment(catalog); 762var env = CatalogUtils.GetEnvironment(catalog); 801var env = CatalogUtils.GetEnvironment(catalog);
Microsoft.ML.Sweeper (21)
Algorithms\Grid.cs (4)
43protected SweeperBase(OptionsBase options, IHostEnvironment env, string name) 56protected SweeperBase(OptionsBase options, IHostEnvironment env, IValueGenerator[] sweepParameters, string name) 120public RandomGridSweeper(IHostEnvironment env, Options options) 137public RandomGridSweeper(IHostEnvironment env, Options options, IValueGenerator[] sweepParameters)
Algorithms\KdoSweeper.cs (1)
88public KdoSweeper(IHostEnvironment env, Options options)
Algorithms\NelderMead.cs (1)
87public NelderMeadSweeper(IHostEnvironment env, Options options)
Algorithms\Random.cs (2)
22public UniformRandomSweeper(IHostEnvironment env, OptionsBase options) 27public UniformRandomSweeper(IHostEnvironment env, OptionsBase options, IValueGenerator[] sweepParameters)
Algorithms\SmacSweeper.cs (1)
68public SmacSweeper(IHostEnvironment env, Options options)
AsyncSweeper.cs (3)
91public SimpleAsyncSweeper(IHostEnvironment env, UniformRandomSweeper.OptionsBase options) 96public SimpleAsyncSweeper(IHostEnvironment env, RandomGridSweeper.Options options) 193public DeterministicSweeperAsync(IHostEnvironment env, Options options)
ConfigRunner.cs (2)
66protected ExeConfigRunnerBase(OptionsBase options, IHostEnvironment env, string registrationName) 191public LocalExeConfigRunner(IHostEnvironment env, Options options)
ISweeper.cs (1)
71string ToStringParameter(IHostEnvironment env);
Parameters.cs (3)
335public string ToStringParameter(IHostEnvironment env) 459public string ToStringParameter(IHostEnvironment env) 502public string ToStringParameter(IHostEnvironment env)
SweepCommand.cs (1)
60public SweepCommand(IHostEnvironment env, Arguments args)
SweepResultEvaluator.cs (1)
32public InternalSweepResultEvaluator(IHostEnvironment env, Options options)
SynthConfigRunner.cs (1)
33public SynthConfigRunner(IHostEnvironment env, Options options)
Microsoft.ML.TensorFlow (32)
TensorFlowModel.cs (3)
23private readonly IHostEnvironment _env; 28/// <param name="env">An <see cref="IHostEnvironment"/> object.</param> 32internal TensorFlowModel(IHostEnvironment env, Session session, string modelLocation, bool treatOutputAsBatched = true)
TensorflowTransform.cs (19)
95/// It is useful in a situation where user has already loaded TensorFlow model using <see cref="TensorFlowUtils.LoadTensorFlowModel(IHostEnvironment, string, bool)"/> for inspecting model schema. 98/// <param name="tfModelInfo"> <see cref="TensorFlowModel"/> object created with <see cref="TensorFlowUtils.LoadTensorFlowModel(IHostEnvironment, string, bool)"/>.</param> 104internal TensorFlowTransformer(IHostEnvironment env, TensorFlowModel tfModelInfo, string outputColumnName, string inputColumnName = null, bool addBatchDimensionInput = false, bool treatOutputAsBatched = true) 113/// It is useful in a situation where user has already loaded TensorFlow model using <see cref="TensorFlowUtils.LoadTensorFlowModel(IHostEnvironment, string, bool)"/> for inspecting model schema. 116/// <param name="tfModelInfo"> <see cref="TensorFlowModel"/> object created with <see cref="TensorFlowUtils.LoadTensorFlowModel(IHostEnvironment, string, bool)"/>.</param> 122internal TensorFlowTransformer(IHostEnvironment env, TensorFlowModel tfModelInfo, string[] outputColumnNames, string[] inputColumnNames, bool addBatchDimensionInput = false, bool treatOutputAsBatched = true) 128private static TensorFlowTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 190internal static IDataTransform Create(IHostEnvironment env, TensorFlowEstimator.Options options, IDataView input) 201internal TensorFlowTransformer(IHostEnvironment env, TensorFlowEstimator.Options options, IDataView input) 206internal TensorFlowTransformer(IHostEnvironment env, TensorFlowEstimator.Options options, TensorFlowModel tensorFlowModel, IDataView input, IDataView validationSet = null) 245private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 249private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 252private static void GetModelInfo(IHostEnvironment env, ModelLoadContext ctx, out string[] inputs, out string[] outputs, out bool isFrozen, out bool addBatchDimensionInput, out bool treatOutputAsBatched) 286internal TensorFlowTransformer(IHostEnvironment env, Session session, string[] outputColumnNames, 797internal static CommonOutputs.TransformOutput TensorFlowScorer(IHostEnvironment env, TensorFlowEstimator.Options input) 986internal TensorFlowEstimator(IHostEnvironment env, string[] outputColumnNames, string[] inputColumnNames, string modelLocation, bool addBatchDimensionInput) 991internal TensorFlowEstimator(IHostEnvironment env, string[] outputColumnNames, string[] inputColumnNames, TensorFlowModel tensorFlowModel, bool addBatchDimensionInput) 996internal TensorFlowEstimator(IHostEnvironment env, Options options) 1001internal TensorFlowEstimator(IHostEnvironment env, Options options, TensorFlowModel tensorFlowModel)
TensorflowUtils.cs (10)
129internal static DataViewSchema GetModelSchema(IHostEnvironment env, string modelPath, bool treatOutputAsBatched = true) 142internal static TensorFlowModel LoadTensorFlowModel(IHostEnvironment env, string modelPath, bool treatOutputAsBatched = true) 210internal static void DownloadIfNeeded(IHostEnvironment env, string url, string dir, string fileName, int timeout) 261private static Session LoadTFSession(IHostEnvironment env, string exportDirSavedModel) 270internal static bool IsSavedModel(IHostEnvironment env, string modelPath) 284internal static void CreateFolderWithAclIfNotExists(IHostEnvironment env, string folder) 320internal static void DeleteFolderWithRetries(IHostEnvironment env, string folder) 395internal static TensorFlowSessionWrapper LoadDnnModel(IHostEnvironment env, string modelPath, bool metaGraph = false) => 398internal static Session GetSession(IHostEnvironment env, string modelPath, bool metaGraph = false) 633internal static string GetTemporaryDirectory(IHostEnvironment env)
Microsoft.ML.TensorFlow.Tests (1)
TensorflowTests.cs (1)
1986using (var ch = (_mlContext as IHostEnvironment).Start("Ensuring image files are present."))
Microsoft.ML.TestFramework (11)
BaseTestBaseline.cs (1)
84protected IHostEnvironment Env => _env;
DataPipe\TestDataPipeBase.cs (7)
311private ILegacyDataLoader CreatePipeDataLoader(IHostEnvironment env, string pathData, string[] argsPipe, out MultiFileSource files) 328protected void VerifyArgParsing(IHostEnvironment env, string[] strs) 344protected void VerifyCustArgs<TArg, TRes>(IHostEnvironment env, IComponentFactory<TArg, TRes> factory) 375protected bool SaveLoadText(IDataView view, IHostEnvironment env, 458private ILegacyDataLoader LoadPipe(string pathModel, IHostEnvironment env, IMultiStreamSource files) 522protected bool SaveLoad(IDataView view, IHostEnvironment env, string suffix = "") 569protected bool SaveLoadTransposed(IDataView view, IHostEnvironment env, string suffix = "")
EnvironmentExtensions.cs (1)
18where TEnvironment : IHostEnvironment
SubComponent.cs (1)
248public TRes CreateInstance(IHostEnvironment env, params object[] extra)
TestCommandBase.cs (1)
277protected virtual void InitializeEnvironment(IHostEnvironment environment)
Microsoft.ML.Tests (18)
ImagesTests.cs (11)
62IHostEnvironment env = new MLContext(1); 173IHostEnvironment env = new MLContext(1); 332IHostEnvironment env = new MLContext(1); 407IHostEnvironment env = new MLContext(1); 483IHostEnvironment env = new MLContext(1); 558IHostEnvironment env = new MLContext(1); 633IHostEnvironment env = new MLContext(1); 708IHostEnvironment env = new MLContext(1); 784IHostEnvironment env = new MLContext(1); 859IHostEnvironment env = new MLContext(1); 935IHostEnvironment env = new MLContext(1);
OnnxConversionTest.cs (2)
1608IHostEnvironment env = mlContext as IHostEnvironment;
TrainerEstimators\TreeEstimators.cs (1)
524var host = (mlContext as IHostEnvironment).Register("Training LightGBM...");
Transformers\CopyColumnEstimatorTests.cs (1)
123TrainUtils.SaveModel(env, ((IHostEnvironment)env).Start("saving"), ms, null, resultRoles);
Transformers\NAIndicatorTests.cs (1)
114using (var ch = ((IHostEnvironment)ML).Start("save"))
Transformers\TextFeaturizerTests.cs (2)
441using (var ch = ((IHostEnvironment)ML).Start("save")) 671IHostEnvironment env = new MLContext(seed: 42);
Microsoft.ML.TimeSeries (124)
AdaptiveSingularSpectrumSequenceModeler.cs (2)
228public AdaptiveSingularSpectrumSequenceModelerInternal(IHostEnvironment env, int trainSize, int seriesLength, int windowSize, Single discountFactor = 1, 338public AdaptiveSingularSpectrumSequenceModelerInternal(IHostEnvironment env, ModelLoadContext ctx)
ExponentialAverageTransform.cs (2)
60public ExponentialAverageTransform(IHostEnvironment env, Arguments args, IDataView input) 67public ExponentialAverageTransform(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
ExtensionsCatalog.cs (2)
367IHostEnvironment host = CatalogUtils.GetEnvironment(catalog); 427private static void CheckRootCauseInput(IHostEnvironment host, RootCauseLocalizationInput src)
IidAnomalyDetectionBase.cs (4)
83internal IidAnomalyDetectionBaseWrapper(ArgumentsBase args, string name, IHostEnvironment env) 88internal IidAnomalyDetectionBaseWrapper(IHostEnvironment env, ModelLoadContext ctx, string name) 101public IidAnomalyDetectionBase(ArgumentsBase args, string name, IHostEnvironment env, IidAnomalyDetectionBaseWrapper parent) 110public IidAnomalyDetectionBase(IHostEnvironment env, ModelLoadContext ctx, string name, IidAnomalyDetectionBaseWrapper parent)
IidChangePointDetector.cs (9)
101private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 118internal IidChangePointDetector(IHostEnvironment env, Options options) 139private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 149internal static IidChangePointDetector Create(IHostEnvironment env, ModelLoadContext ctx) 158private IidChangePointDetector(IHostEnvironment env, ModelLoadContext ctx) 168private IidChangePointDetector(IHostEnvironment env, IidChangePointDetector transform) 189private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 236internal IidChangePointEstimator(IHostEnvironment env, string outputColumnName, double confidence, 251internal IidChangePointEstimator(IHostEnvironment env, IidChangePointDetector.Options options)
IidSpikeDetector.cs (9)
97private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 114internal IidSpikeDetector(IHostEnvironment env, Options options) 121private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 131internal static IidSpikeDetector Create(IHostEnvironment env, ModelLoadContext ctx) 140private IidSpikeDetector(IHostEnvironment env, ModelLoadContext ctx) 149private IidSpikeDetector(IHostEnvironment env, IidSpikeDetector transform) 169private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 215internal IidSpikeEstimator(IHostEnvironment env, string outputColumnName, double confidence, int pvalueHistoryLength, string inputColumnName, AnomalySide side = AnomalySide.TwoSided) 228internal IidSpikeEstimator(IHostEnvironment env, IidSpikeDetector.Options options)
MovingAverageTransform.cs (2)
68public MovingAverageTransform(IHostEnvironment env, Arguments args, IDataView input) 81public MovingAverageTransform(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
PercentileThresholdTransform.cs (2)
67public PercentileThresholdTransform(IHostEnvironment env, Arguments args, IDataView input) 75public PercentileThresholdTransform(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
PredictionEngine.cs (9)
85public void CheckPoint(IHostEnvironment env, string modelPath) 108public void CheckPoint(IHostEnvironment env, Stream stream) 143/// seen at prediction time via <see cref="CheckPoint(IHostEnvironment, string)"/> 145public TimeSeriesPredictionEngine(IHostEnvironment env, ITransformer transformer, bool ignoreMissingColumns, 153/// seen at prediction time via <see cref="CheckPoint(IHostEnvironment, string)"/> 155internal TimeSeriesPredictionEngine(IHostEnvironment env, ITransformer transformer, PredictionEngineOptions options) : 217private protected override void PredictionEngineCore(IHostEnvironment env, DataViewConstructionUtils.InputRow<TSrc> inputRow, 399public static TimeSeriesPredictionEngine<TSrc, TDst> CreateTimeSeriesEngine<TSrc, TDst>(this ITransformer transformer, IHostEnvironment env, 429public static TimeSeriesPredictionEngine<TSrc, TDst> CreateTimeSeriesEngine<TSrc, TDst>(this ITransformer transformer, IHostEnvironment env,
PValueTransform.cs (2)
72public PValueTransform(IHostEnvironment env, Arguments args, IDataView input) 80public PValueTransform(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
SeasonalityDetector.cs (1)
53IHostEnvironment host,
SequentialAnomalyDetectionTransformBase.cs (5)
153private static int GetOutputLength(AlertingScore alertingScore, IHostEnvironment host) 168private protected SequentialAnomalyDetectionTransformBase(int windowSize, int initialWindowSize, string inputColumnName, string outputColumnName, string name, IHostEnvironment env, 192private protected SequentialAnomalyDetectionTransformBase(ArgumentsBase args, string name, IHostEnvironment env) 198private protected SequentialAnomalyDetectionTransformBase(IHostEnvironment env, ModelLoadContext ctx, string name) 309public Mapper(IHostEnvironment env, SequentialAnomalyDetectionTransformBase<TInput, TState> parent, DataViewSchema inputSchema)
SequentialForecastingTransformBase.cs (4)
61string confidenceUpperBoundColumn, string name, int outputLength, IHostEnvironment env) 69private protected SequentialForecastingTransformBase(ForecastingArgumentsBase args, string name, int outputLength, IHostEnvironment env) 75private protected SequentialForecastingTransformBase(IHostEnvironment env, ModelLoadContext ctx, string name) 106public Mapper(IHostEnvironment env, SequentialForecastingTransformBase<TInput, TState> parent, DataViewSchema inputSchema)
SequentialTransformBase.cs (2)
269string name, IHostEnvironment env, IDataView input, DataViewType outputColTypeOverride = null) 294private protected SequentialTransformBase(IHostEnvironment env, ModelLoadContext ctx, string name, IDataView input)
SequentialTransformerBase.cs (3)
590IDataTransform ITransformTemplate.ApplyToData(IHostEnvironment env, IDataView newSource) 758public TimeSeriesRowToRowMapperTransform(IHostEnvironment env, IDataView input, IStatefulRowMapper mapper) 783public static TimeSeriesRowToRowMapperTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
SlidingWindowTransform.cs (2)
39public SlidingWindowTransform(IHostEnvironment env, Arguments args, IDataView input) 44public SlidingWindowTransform(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
SlidingWindowTransformBase.cs (2)
63protected SlidingWindowTransformBase(Arguments args, string loaderSignature, IHostEnvironment env, IDataView input) 80protected SlidingWindowTransformBase(IHostEnvironment env, ModelLoadContext ctx, string loaderSignature, IDataView input)
SrCnnAnomalyDetectionBase.cs (4)
79internal SrCnnAnomalyDetectionBase(SrCnnArgumentBase args, string name, IHostEnvironment env) 84internal SrCnnAnomalyDetectionBase(IHostEnvironment env, ModelLoadContext ctx, string name) 93public SrCnnAnomalyDetectionBaseCore(SrCnnArgumentBase args, string name, IHostEnvironment env, SrCnnAnomalyDetectionBase parent) 102public SrCnnAnomalyDetectionBaseCore(IHostEnvironment env, ModelLoadContext ctx, string name, SrCnnAnomalyDetectionBase parent)
SRCNNAnomalyDetector.cs (9)
112private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 121private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 130internal static SrCnnAnomalyDetector Create(IHostEnvironment env, ModelLoadContext ctx) 139private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 150internal SrCnnAnomalyDetector(IHostEnvironment env, Options options) 155private SrCnnAnomalyDetector(IHostEnvironment env, ModelLoadContext ctx) 160private SrCnnAnomalyDetector(IHostEnvironment env, SrCnnAnomalyDetector transform) 240internal SrCnnAnomalyEstimator(IHostEnvironment env, 264internal SrCnnAnomalyEstimator(IHostEnvironment env, SrCnnAnomalyDetector.Options options)
SrCnnEntireAnomalyDetector.cs (1)
186public SrCnnEntireAnomalyDetector(IHostEnvironment env, IDataView input, string outputColumnName, string inputColumnName, SrCnnEntireAnomalyDetectorOptions options)
SrCnnTransformBase.cs (4)
69private protected SrCnnTransformBase(int windowSize, int initialWindowSize, string inputColumnName, string outputColumnName, string name, IHostEnvironment env, 88private protected SrCnnTransformBase(IHostEnvironment env, ModelLoadContext ctx, string name) 114private protected SrCnnTransformBase(SrCnnArgumentBase args, string name, IHostEnvironment env) 152public Mapper(IHostEnvironment env, SrCnnTransformBase<TInput, TState> parent, DataViewSchema inputSchema)
SsaAnomalyDetectionBase.cs (4)
167internal SsaAnomalyDetectionBaseWrapper(SsaOptions options, string name, IHostEnvironment env) 172internal SsaAnomalyDetectionBaseWrapper(IHostEnvironment env, ModelLoadContext ctx, string name) 191public SsaAnomalyDetectionBase(SsaOptions options, string name, IHostEnvironment env, SsaAnomalyDetectionBaseWrapper parent) 212public SsaAnomalyDetectionBase(IHostEnvironment env, ModelLoadContext ctx, string name)
SsaChangePointDetector.cs (9)
103internal SsaChangePointDetector(IHostEnvironment env, Options options, IDataView input) 110private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 128internal SsaChangePointDetector(IHostEnvironment env, Options options) 149private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 159internal static SsaChangePointDetector Create(IHostEnvironment env, ModelLoadContext ctx) 168private SsaChangePointDetector(IHostEnvironment env, ModelLoadContext ctx) 198private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 249internal SsaChangePointEstimator(IHostEnvironment env, string outputColumnName, 273internal SsaChangePointEstimator(IHostEnvironment env, SsaChangePointDetector.Options options)
SSaForecasting.cs (9)
128internal SsaForecastingTransformer(IHostEnvironment env, Options options, IDataView input) 135private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 144internal SsaForecastingTransformer(IHostEnvironment env, Options options) 151private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 170internal static SsaForecastingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 179private SsaForecastingTransformer(IHostEnvironment env, ModelLoadContext ctx) 202private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 261internal SsaForecastingEstimator(IHostEnvironment env, 304internal SsaForecastingEstimator(IHostEnvironment env, SsaForecastingTransformer.Options options)
SsaForecastingBase.cs (4)
107internal SsaForecastingBaseWrapper(SsaForecastingOptions options, string name, IHostEnvironment env) 112internal SsaForecastingBaseWrapper(IHostEnvironment env, ModelLoadContext ctx, string name) 129public SsaForecastingBase(SsaForecastingOptions options, string name, IHostEnvironment env, SsaForecastingBaseWrapper parent) 147public SsaForecastingBase(IHostEnvironment env, ModelLoadContext ctx, string name) : base(env, ctx, name)
SsaSpikeDetector.cs (9)
100internal SsaSpikeDetector(IHostEnvironment env, Options options, IDataView input) 107private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 116internal SsaSpikeDetector(IHostEnvironment env, Options options) 123private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 142internal static SsaSpikeDetector Create(IHostEnvironment env, ModelLoadContext ctx) 151private SsaSpikeDetector(IHostEnvironment env, ModelLoadContext ctx) 179private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 229internal SsaSpikeEstimator(IHostEnvironment env, 252internal SsaSpikeEstimator(IHostEnvironment env, SsaSpikeDetector.Options options)
TimeSeriesProcessing.cs (9)
19internal static CommonOutputs.TransformOutput ExponentialAverage(IHostEnvironment env, ExponentialAverageTransform.Arguments input) 33internal static CommonOutputs.TransformOutput IidChangePointDetector(IHostEnvironment env, IidChangePointDetector.Options options) 47internal static CommonOutputs.TransformOutput IidSpikeDetector(IHostEnvironment env, IidSpikeDetector.Options options) 61internal static CommonOutputs.TransformOutput PercentileThresholdTransform(IHostEnvironment env, PercentileThresholdTransform.Arguments input) 75internal static CommonOutputs.TransformOutput PValueTransform(IHostEnvironment env, PValueTransform.Arguments input) 89internal static CommonOutputs.TransformOutput SlidingWindowTransform(IHostEnvironment env, SlidingWindowTransform.Arguments input) 103internal static CommonOutputs.TransformOutput SsaChangePointDetector(IHostEnvironment env, SsaChangePointDetector.Options options) 117public static CommonOutputs.TransformOutput SsaSpikeDetector(IHostEnvironment env, SsaSpikeDetector.Options options) 131internal static CommonOutputs.TransformOutput SsaForecasting(IHostEnvironment env, SsaForecastingTransformer.Options options)
Microsoft.ML.TorchSharp (33)
AutoFormerV2\ObjectDetectionTrainer.cs (6)
121internal ObjectDetectionTrainer(IHostEnvironment env, Options options) 134internal ObjectDetectionTrainer(IHostEnvironment env, 269using (var ch = (Parent.Host as IHostEnvironment).Start("Ensuring model file is present.")) 521internal ObjectDetectionTransformer(IHostEnvironment env, ObjectDetectionTrainer.Options options, AutoFormerV2 model, DataViewSchema.DetachedColumn labelColumn) 650private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 654private static ObjectDetectionTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
NasBert\NasBertTrainer.cs (2)
169internal NasBertTrainer(IHostEnvironment env, Options options) : base(env, options) 419internal NasBertTransformer(IHostEnvironment env, NasBertTrainer.NasBertOptions options, NasBertModel model, DataViewSchema.DetachedColumn labelColumn)
NasBert\NerTrainer.cs (5)
78internal NerTrainer(IHostEnvironment env, NerOptions options) : base(env, options) 82internal NerTrainer(IHostEnvironment env, 258internal NerTransformer(IHostEnvironment env, NasBertOptions options, NasBertModel model, DataViewSchema.DetachedColumn labelColumn) : base(env, options, model, labelColumn) 299private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 303private static NerTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
NasBert\SentenceSimilarityTrainer.cs (5)
74internal SentenceSimilarityTrainer(IHostEnvironment env, SentenceSimilarityOptions options) : base(env, options) 78internal SentenceSimilarityTrainer(IHostEnvironment env, 190internal SentenceSimilarityTransformer(IHostEnvironment env, NasBertOptions options, ModelForPrediction model, DataViewSchema.DetachedColumn labelColumn) : base(env, options, model, labelColumn) 214private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 218private static SentenceSimilarityTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
NasBert\TextClassificationTrainer.cs (5)
74internal TextClassificationTrainer(IHostEnvironment env, TextClassificationOptions options) : base(env, options) 78internal TextClassificationTrainer(IHostEnvironment env, 195internal TextClassificationTransformer(IHostEnvironment env, NasBertOptions options, NasBertModel model, DataViewSchema.DetachedColumn labelColumn) : base(env, options, model, labelColumn) 236private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 240private static TextClassificationTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
Roberta\QATrainer.cs (6)
102internal QATrainer(IHostEnvironment env, Options options) 116internal QATrainer(IHostEnvironment env, 253using (var ch = (Parent.Host as IHostEnvironment).Start("Ensuring model file is present.")) 572internal QATransformer(IHostEnvironment env, QATrainer.Options options, RobertaModelForQA model) 670private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 674private static QATransformer Create(IHostEnvironment env, ModelLoadContext ctx)
TorchSharpBaseTrainer.cs (3)
87internal TorchSharpBaseTrainer(IHostEnvironment env, Options options) 179using (var ch = (Parent.Host as IHostEnvironment).Start("Ensuring model file is present.")) 388internal TorchSharpBaseTransformer(IHostEnvironment env, TorchSharpBaseTrainer.Options options, Module model, DataViewSchema.DetachedColumn labelColumn)
Utils\TorchUtils.cs (1)
37public static torch.Device InitializeDevice(IHostEnvironment env)
Microsoft.ML.Transforms (347)
CategoricalCatalog.cs (2)
84var env = CatalogUtils.GetEnvironment(catalog); 184var env = CatalogUtils.GetEnvironment(catalog);
CompositeTransformer.cs (1)
35private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
ConversionsCatalog.cs (1)
27var env = CatalogUtils.GetEnvironment(catalog);
CountFeatureSelection.cs (4)
134internal CountFeatureSelectingEstimator(IHostEnvironment env, params ColumnOptions[] columns) 155internal CountFeatureSelectingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, long minCount = Defaults.Count) 227internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 293public static long[][] Train(IHostEnvironment env, IDataView input, string[] columns, out int[] colSizes)
CustomMappingFactory.cs (3)
23ITransformer CreateTransformer(IHostEnvironment env, string contractName); 40ITransformer ICustomMappingFactory.CreateTransformer(IHostEnvironment env, string contractName) 69ITransformer ICustomMappingFactory.CreateTransformer(IHostEnvironment env, string contractName)
CustomMappingFilter.cs (3)
25private protected CustomMappingFilterBase(IHostEnvironment env, IDataView input) 61public CustomMappingFilter(IHostEnvironment env, IDataView input, Func<TSrc, bool> predicate) 138public StatefulCustomMappingFilter(IHostEnvironment env, IDataView input, Func<TSrc, TState, bool> predicate, Action<TState> stateInitAction)
CustomMappingTransformer.cs (2)
44internal CustomMappingTransformer(IHostEnvironment env, Action<TSrc, TDst> mapAction, string contractName, 242internal CustomMappingEstimator(IHostEnvironment env, Action<TSrc, TDst> mapAction, string contractName,
Dracula\CMCountTable.cs (4)
67public static CMCountTable Create(IHostEnvironment env, ModelLoadContext ctx) 75private CMCountTable(IHostEnvironment env, ModelLoadContext ctx) 188public CountTableBuilderBase CreateComponent(IHostEnvironment env) 205internal CMCountTableBuilder(IHostEnvironment env, Options options)
Dracula\CountTable.cs (1)
82protected CountTableBase(IHostEnvironment env, string name, ModelLoadContext ctx)
Dracula\CountTableTransformer.cs (10)
83internal CountTableEstimator(IHostEnvironment env, string labelColumnName, CountTableBuilderBase countTableBuilder, params SharedColumnOptions[] columns) 89internal CountTableEstimator(IHostEnvironment env, string labelColumnName, 96internal CountTableEstimator(IHostEnvironment env, string labelColumnName, CountTableTransformer initial, params InputOutputColumnPair[] columns) 116private CountTableEstimator(IHostEnvironment env, string labelColumnName, ColumnOptionsBase[] columns) 441internal CountTableTransformer(IHostEnvironment env, CountTargetEncodingFeaturizer featurizer, string[] labelClassNames, 455private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 459private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 463internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 518internal static CountTableTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 738internal static CommonOutputs.TransformOutput Create(IHostEnvironment env, CountTableTransformer.Options input)
Dracula\CountTargetEncodingTransformer.cs (13)
123internal CountTargetEncodingEstimator(IHostEnvironment env, string labelColumnName, CountTableEstimator.ColumnOptions[] columnOptions, 132internal CountTargetEncodingEstimator(IHostEnvironment env, string labelColumnName, CountTableEstimator.SharedColumnOptions[] columnOptions, 141internal CountTargetEncodingEstimator(IHostEnvironment env, string labelColumnName, CountTargetEncodingTransformer initialCounts, params InputOutputColumnPair[] columns) 154private CountTargetEncodingEstimator(IHostEnvironment env, CountTableEstimator estimator, CountTableEstimator.ColumnOptionsBase[] columns, 165internal CountTargetEncodingEstimator(IHostEnvironment env, Options options) 220internal static CountTableEstimator LoadFromFile(IHostEnvironment env, string initialCountsModel, string labelColumn, InputOutputColumnPair[] columns) 276internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 286private static CountTargetEncodingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 330internal CountTargetEncodingTransformer(IHostEnvironment env/*, HashingEstimator.ColumnOptions[] hashingColumns*/, HashingTransformer hashingTransformer, CountTableTransformer countTable) 366internal static CountTargetEncodingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 441var env = CatalogUtils.GetEnvironment(catalog); 510var env = CatalogUtils.GetEnvironment(catalog); 542internal static CommonOutputs.TransformOutput Create(IHostEnvironment env, CountTargetEncodingEstimator.Options input)
Dracula\DictCountTable.cs (4)
56public static DictCountTable Create(IHostEnvironment env, ModelLoadContext ctx) 64private DictCountTable(IHostEnvironment env, ModelLoadContext ctx) 145public CountTableBuilderBase CreateComponent(IHostEnvironment env) 153private DictCountTableBuilder(IHostEnvironment env, Arguments args)
Dracula\Featurizer.cs (2)
45public CountTargetEncodingFeaturizer(IHostEnvironment env, float[] priorCoef, float[] laplaceScale, long labelBinCount, MultiCountTableBase countTable) 63public CountTargetEncodingFeaturizer(IHostEnvironment env, ModelLoadContext ctx)
Dracula\MultiCountTable.cs (12)
44protected MultiCountTableBase(IHostEnvironment env, string registrationName) 52public abstract MultiCountTableBuilderBase ToBuilder(IHostEnvironment env, DataViewSchema.Column[] inputCols, long labelCardinality); 65public ParallelMultiCountTableBuilder(IHostEnvironment env, 88private ParallelMultiCountTableBuilder(IHostEnvironment env, MultiCountTable table, DataViewSchema.Column[] inputCols, long labelCardinality) 151public MultiCountTable(IHostEnvironment env, CountTableBase[][] countTables) 197public MultiCountTable(IHostEnvironment env, ModelLoadContext ctx) 226public override MultiCountTableBuilderBase ToBuilder(IHostEnvironment env, DataViewSchema.Column[] inputCols, long labelCardinality) 245public BagMultiCountTableBuilder(IHostEnvironment env, DataViewSchema.Column[] inputColumns, CountTableBuilderBase builder, long labelCardinality) 259public BagMultiCountTableBuilder(IHostEnvironment env, MultiCountTable table, DataViewSchema.Column[] inputCols, long labelCardinality) 304public MultiCountTable(IHostEnvironment env, CountTableBase baseTable, int colCount, int[] slotCount) 342public MultiCountTable(IHostEnvironment env, ModelLoadContext ctx) 359public override MultiCountTableBuilderBase ToBuilder(IHostEnvironment env, DataViewSchema.Column[] inputCols, long labelCardinality)
EntryPoints\SelectFeatures.cs (2)
19public static CommonOutputs.TransformOutput CountSelect(IHostEnvironment env, CountFeatureSelectingEstimator.Options input) 34public static CommonOutputs.TransformOutput MutualInformationSelect(IHostEnvironment env, MutualInformationFeatureSelectingEstimator.Options input)
EntryPoints\TextAnalytics.cs (8)
24public static CommonOutputs.TransformOutput TextTransform(IHostEnvironment env, TextFeaturizingEstimator.Options input) 39public static CommonOutputs.TransformOutput DelimitedTokenizeTransform(IHostEnvironment env, WordTokenizingTransformer.Options input) 54public static CommonOutputs.TransformOutput NGramTransform(IHostEnvironment env, NgramExtractingTransformer.Options input) 69public static CommonOutputs.TransformOutput TermTransform(IHostEnvironment env, ValueToKeyMappingTransformer.Options input) 84public static CommonOutputs.TransformOutput AnalyzeSentiment(IHostEnvironment env, SentimentAnalyzingTransformer.Arguments input) 99public static CommonOutputs.TransformOutput CharTokenize(IHostEnvironment env, TokenizingByCharactersTransformer.Options input) 117public static CommonOutputs.TransformOutput LightLda(IHostEnvironment env, LatentDirichletAllocationTransformer.Options input) 138public static CommonOutputs.TransformOutput WordEmbeddings(IHostEnvironment env, WordEmbeddingTransformer.Options input)
Expression\LambdaBinder.cs (2)
34private LambdaBinder(IHostEnvironment env, Action<string> printError) 51public static void Run(IHostEnvironment env, ref List<Error> errors, LambdaNode node, Action<string> printError)
ExpressionTransformer.cs (9)
74internal ExpressionEstimator(IHostEnvironment env, params ColumnOptions[] columns) 87internal static LambdaNode ParseAndBindLambda(IHostEnvironment env, string expression, int ivec, DataViewType[] inputTypes, out int[] perm) 114private static int FindVectorInputColumn(IHostEnvironment env, IReadOnlyList<string> inputColumnNames, SchemaShape inputSchema, DataViewType[] inputTypes) 134private static int FindVectorInputColumn(IHostEnvironment env, IReadOnlyList<string> inputColumnNames, DataViewSchema inputSchema, DataViewType[] inputTypes) 305internal ExpressionTransformer(IHostEnvironment env, ColumnInfo[] columns) 313private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 331private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 335private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 338private static ExpressionTransformer Create(IHostEnvironment env, ModelLoadContext ctx)
ExtensionsCatalog.cs (2)
54var env = CatalogUtils.GetEnvironment(catalog); 107var env = CatalogUtils.GetEnvironment(catalog);
FeatureSelectionCatalog.cs (2)
65var env = CatalogUtils.GetEnvironment(catalog); 122var env = CatalogUtils.GetEnvironment(catalog);
FourierDistributionSampler.cs (8)
87public KernelBase CreateComponent(IHostEnvironment env) => new GaussianKernel(env, this); 104internal GaussianKernel(IHostEnvironment env, Options options) 147internal static RandomNumberGenerator Create(IHostEnvironment env, ModelLoadContext ctx) 155private RandomNumberGenerator(IHostEnvironment env, ModelLoadContext ctx) 208public KernelBase CreateComponent(IHostEnvironment env) => new LaplacianKernel(env, this); 225internal LaplacianKernel(IHostEnvironment env, Options options) 269internal static RandomNumberGenerator Create(IHostEnvironment env, ModelLoadContext ctx) 278private RandomNumberGenerator(IHostEnvironment env, ModelLoadContext ctx)
GcnTransform.cs (15)
204internal LpNormNormalizingTransformer(IHostEnvironment env, params LpNormNormalizingEstimatorBase.ColumnOptionsBase[] columns) : 211internal static IDataTransform Create(IHostEnvironment env, GcnOptions options, IDataView input) 238internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 262private static LpNormNormalizingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 278private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 282private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 739public static CommonOutputs.TransformOutput Normalize(IHostEnvironment env, LpNormNormalizingTransformer.Options input) 754public static CommonOutputs.TransformOutput GcNormalize(IHostEnvironment env, LpNormNormalizingTransformer.GcnOptions input) 885internal LpNormNormalizingEstimatorBase(IHostEnvironment env, params ColumnOptionsBase[] columns) 993internal LpNormNormalizingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, 1004internal LpNormNormalizingEstimator(IHostEnvironment env, (string outputColumnName, string inputColumnName)[] columns, 1013internal LpNormNormalizingEstimator(IHostEnvironment env, params ColumnOptions[] columns) 1076internal GlobalContrastNormalizingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, 1088internal GlobalContrastNormalizingEstimator(IHostEnvironment env, (string outputColumnName, string inputColumnName)[] columns, 1097internal GlobalContrastNormalizingEstimator(IHostEnvironment env, params ColumnOptions[] columns) :
GroupTransform.cs (5)
105public GroupTransform(IHostEnvironment env, IDataView input, string groupKey, params string[] columns) 110public GroupTransform(IHostEnvironment env, Options options, IDataView input) 119public static GroupTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 236public GroupBinding(DataViewSchema inputSchema, IHostEnvironment env, ModelLoadContext ctx) 672public static CommonOutputs.TransformOutput Group(IHostEnvironment env, GroupTransform.Options input)
HashJoiningTransform.cs (4)
187public HashJoiningTransform(IHostEnvironment env, 198public HashJoiningTransform(IHostEnvironment env, Arguments args, IDataView input) 277public static HashJoiningTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 666public static CommonOutputs.TransformOutput Apply(IHostEnvironment env, HashJoiningTransform.Arguments input)
KeyToVectorMapping.cs (9)
79internal KeyToBinaryVectorMappingTransformer(IHostEnvironment env, params (string outputColumnName, string inputColumnName)[] columns) 97private static KeyToBinaryVectorMappingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 113private static IDataTransform Create(IHostEnvironment env, IDataView input, params (string outputColumnName, string inputColumnName)[] columns) => 117private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 137private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 141private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 448internal KeyToBinaryVectorMappingEstimator(IHostEnvironment env, params (string outputColumnName, string inputColumnName)[] columns) 453internal KeyToBinaryVectorMappingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null) 458private KeyToBinaryVectorMappingEstimator(IHostEnvironment env, KeyToBinaryVectorMappingTransformer transformer)
LambdaTransform.cs (3)
56private static ITransformer Create(IHostEnvironment env, ModelLoadContext ctx) 98public static IDataView CreateMap<TSrc, TDst, TState>(IHostEnvironment env, IDataView source, 139public static IDataView CreateFilter<TSrc, TState>(IHostEnvironment env, IDataView source,
LearnerFeatureSelection.cs (2)
87private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 306public static void Train(IHostEnvironment env, IDataView input, Options options, ref VBuffer<Single> scores)
LoadTransform.cs (2)
53public static IDataTransform Create(IHostEnvironment env, IDataView input, string modelFile, string[] tag, bool complement = false) 65private static IDataTransform Create(IHostEnvironment env, Arguments args, IDataView input)
MissingValueDroppingTransformer.cs (8)
33public MissingValueDroppingEstimator(IHostEnvironment env, params (string outputColumnName, string inputColumnName)[] columns) 112internal MissingValueDroppingTransformer(IHostEnvironment env, params (string outputColumnName, string inputColumnName)[] columns) 117internal MissingValueDroppingTransformer(IHostEnvironment env, Options options) 122private MissingValueDroppingTransformer(IHostEnvironment env, ModelLoadContext ctx) 139internal static MissingValueDroppingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 148internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 152private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 156private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema)
MissingValueHandlingTransformer.cs (2)
118private static IDataView Create(IHostEnvironment env, IDataView input, string outputColumnName, string inputColumnName = null, 133internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input)
MissingValueIndicatorTransform.cs (2)
75public MissingValueIndicatorTransform(IHostEnvironment env, Arguments args, IDataView input) 98public static MissingValueIndicatorTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
MissingValueIndicatorTransformer.cs (9)
91internal MissingValueIndicatorTransformer(IHostEnvironment env, params (string outputColumnName, string inputColumnName)[] columns) 96internal MissingValueIndicatorTransformer(IHostEnvironment env, Options options) 101private MissingValueIndicatorTransformer(IHostEnvironment env, ModelLoadContext ctx) 111internal static MissingValueIndicatorTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 120internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 124internal static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 128internal static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 513internal MissingValueIndicatorEstimator(IHostEnvironment env, params (string outputColumnName, string inputColumnName)[] columns) 525internal MissingValueIndicatorEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null)
MissingValueReplacing.cs (8)
210internal MissingValueReplacingTransformer(IHostEnvironment env, IDataView input, params MissingValueReplacingEstimator.ColumnOptions[] columns) 429internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 454internal static IDataTransform Create(IHostEnvironment env, IDataView input, params MissingValueReplacingEstimator.ColumnOptions[] columns) 460private static MissingValueReplacingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 472private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 476private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 1016internal MissingValueReplacingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, ReplacementMode replacementKind = Defaults.Mode) 1023internal MissingValueReplacingEstimator(IHostEnvironment env, params ColumnOptions[] columns)
MutualInformationFeatureSelection.cs (3)
126internal MutualInformationFeatureSelectingEstimator(IHostEnvironment env, 160internal MutualInformationFeatureSelectingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, 258internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input)
NAHandling.cs (5)
22public static CommonOutputs.TransformOutput Drop(IHostEnvironment env, MissingValueDroppingTransformer.Options input) 37public static CommonOutputs.TransformOutput Filter(IHostEnvironment env, NAFilter.Arguments input) 52public static CommonOutputs.TransformOutput Handle(IHostEnvironment env, MissingValueHandlingTransformer.Options input) 67public static CommonOutputs.TransformOutput Indicator(IHostEnvironment env, MissingValueIndicatorTransformer.Options input) 82public static CommonOutputs.TransformOutput Replace(IHostEnvironment env, MissingValueReplacingTransformer.Options input)
NormalizerCatalog.cs (1)
29var env = CatalogUtils.GetEnvironment(catalog);
OneHotEncoding.cs (7)
94internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 272internal OneHotEncodingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, 278internal OneHotEncodingEstimator(IHostEnvironment env, ColumnOptions[] columns, IDataView keyData = null) 353public static CommonOutputs.TransformOutput CatTransformDict(IHostEnvironment env, OneHotEncodingTransformer.Options input) 367public static CommonOutputs.TransformOutput CatTransformHash(IHostEnvironment env, OneHotHashEncodingTransformer.Options input) 381public static CommonOutputs.TransformOutput TextToKey(IHostEnvironment env, ValueToKeyMappingTransformer.Options input) 395public static CommonOutputs.TransformOutput KeyToText(IHostEnvironment env, KeyToValueMappingTransformer.Options input)
OneHotHashEncoding.cs (4)
132private static IDataView Create(IHostEnvironment env, 143internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 314internal OneHotHashEncodingEstimator(IHostEnvironment env, 324internal OneHotHashEncodingEstimator(IHostEnvironment env, params ColumnOptions[] columns)
OptionalColumnTransform.cs (6)
89public static Bindings Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema input, OptionalColumnTransform parent) 132public void Save(IHostEnvironment env, ModelSaveContext ctx) 267public OptionalColumnTransform(IHostEnvironment env, IDataView input, params string[] columns) 275public OptionalColumnTransform(IHostEnvironment env, Arguments args, IDataView input) 294public static OptionalColumnTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 587public static CommonOutputs.TransformOutput MakeOptional(IHostEnvironment env, Arguments input)
PermutationFeatureImportance.cs (1)
22IHostEnvironment env,
PermutationFeatureImportanceExtensions.cs (1)
653IHostEnvironment env,
ProduceIdTransform.cs (2)
100public ProduceIdTransform(IHostEnvironment env, Arguments args, IDataView input) 119public static ProduceIdTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
RandomFourierFeaturizing.cs (8)
130public TransformInfo(IHostEnvironment env, ModelLoadContext ctx, string directoryName) 253internal ApproximatedKernelTransformer(IHostEnvironment env, IDataView input, ApproximatedKernelMappingEstimator.ColumnOptions[] columns) 386private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 390private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 410private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 438private static ApproximatedKernelTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 701internal ApproximatedKernelMappingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, int rank = Defaults.Rank, bool useCosAndSinBases = Defaults.UseCosAndSinBases) 706internal ApproximatedKernelMappingEstimator(IHostEnvironment env, params ColumnOptions[] columns)
StatefulCustomMappingTransformer.cs (3)
47internal StatefulCustomMappingTransformer(IHostEnvironment env, Action<TSrc, TDst, TState> mapAction, string contractName, 113public RowToRowMapper(IHostEnvironment env, StatefulCustomMappingTransformer<TSrc, TDst, TState> parent, IDataView input) 375internal StatefulCustomMappingEstimator(IHostEnvironment env, Action<TSrc, TDst, TState> mapAction, string contractName,
StatefulFilterTransform.cs (2)
54public StatefulFilterTransform(IHostEnvironment env, IDataView source, Func<TSrc, TDst, TState, bool> filterFunc, 79private StatefulFilterTransform(IHostEnvironment env, StatefulFilterTransform<TSrc, TDst, TState> transform, IDataView newSource)
SvmLight\SvmLightLoader.cs (8)
404public TextDataView(IHostEnvironment env, IMultiStreamSource files) 552internal SvmLightLoader(IHostEnvironment env, Options options = null, IMultiStreamSource dataSample = null) 610internal static SvmLightLoader Create(IHostEnvironment env, ModelLoadContext ctx) 652private static IDataView GetData(IHostEnvironment env, long? numRows, IMultiStreamSource dataSample) 673private static uint InferMax(IHostEnvironment env, IDataView view) 713private static ITransformer CreateOutputTransformer(IHostEnvironment env, int keyCount, bool keyIndices, DataViewSchema inputSchema) 763internal static ILegacyDataLoader Create(IHostEnvironment env, ModelLoadContext ctx, IMultiStreamSource files) 768internal static ILegacyDataLoader Create(IHostEnvironment env, Options options, IMultiStreamSource files)
SvmLight\SvmLightSaver.cs (1)
63public SvmLightSaver(IHostEnvironment env, Arguments args)
Text\LdaTransform.cs (9)
658private LatentDirichletAllocationTransformer(IHostEnvironment env, 690internal static LatentDirichletAllocationTransformer TrainLdaTransformer(IHostEnvironment env, IDataView inputData, params LatentDirichletAllocationEstimator.ColumnOptions[] columns) 713private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 717private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 721private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 733private static LatentDirichletAllocationTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 822private static List<VBuffer<ReadOnlyMemory<char>>> Train(IHostEnvironment env, IChannel ch, IDataView inputData, LdaState[] states, params LatentDirichletAllocationEstimator.ColumnOptions[] columns) 1067internal LatentDirichletAllocationEstimator(IHostEnvironment env, 1089internal LatentDirichletAllocationEstimator(IHostEnvironment env, params ColumnOptions[] columns)
Text\NgramHashingTransformer.cs (10)
180internal NgramHashingTransformer(IHostEnvironment env, params NgramHashingEstimator.ColumnOptions[] columns) : 191internal NgramHashingTransformer(IHostEnvironment env, IDataView input, params NgramHashingEstimator.ColumnOptions[] columns) : 270private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 274private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 277private NgramHashingTransformer(IHostEnvironment env, ModelLoadContext ctx, bool loadLegacy = false) : 332private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 364private static NgramHashingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 1118internal NgramHashingEstimator(IHostEnvironment env, 1152internal NgramHashingEstimator(IHostEnvironment env, 1175internal NgramHashingEstimator(IHostEnvironment env, params ColumnOptions[] columns)
Text\NgramTransform.cs (11)
207internal NgramExtractingTransformer(IHostEnvironment env, IDataView input, NgramExtractingEstimator.ColumnOptions[] columns) 221private static SequencePool[] Train(IHostEnvironment env, NgramExtractingEstimator.ColumnOptions[] columns, ImmutableArray<TransformInfo> transformInfos, IDataView trainingData, out double[][] invDocFreqs) 323private static void AssertValid(IHostEnvironment env, int[] counts, IReadOnlyList<int> lims, SequencePool pool) 338private static NgramIdFinder GetNgramIdFinderAdd(IHostEnvironment env, int[] counts, IReadOnlyList<int> lims, SequencePool pool, bool requireIdf) 372private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 376private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 409internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 438private static NgramExtractingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 907internal NgramExtractingEstimator(IHostEnvironment env, 929internal NgramExtractingEstimator(IHostEnvironment env, 946internal NgramExtractingEstimator(IHostEnvironment env, params ColumnOptions[] columns)
Text\SentimentAnalyzingTransform.cs (4)
52internal static IDataTransform Create(IHostEnvironment env, Arguments args, IDataView input) 118private static IDataView AliasIfNeeded(IHostEnvironment env, IDataView input, string[] colNames, out KeyValuePair<string, string>[] hiddenNames) 137private static IDataView UnaliasIfNeeded(IHostEnvironment env, IDataView input, KeyValuePair<string, string>[] hiddenNames) 146private static IDataView LoadTransforms(IHostEnvironment env, IDataView input, string modelFile)
Text\StopWordsRemovingTransformer.cs (18)
58public ITransformer CreateComponent(IHostEnvironment env, IDataView input, OneToOneColumn[] columns) 199internal StopWordsRemovingTransformer(IHostEnvironment env, params StopWordsRemovingEstimator.ColumnOptions[] columns) : 244private static StopWordsRemovingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 254internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 275private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 279private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 643internal StopWordsRemovingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, Language language = Language.English) 655internal StopWordsRemovingEstimator(IHostEnvironment env, (string outputColumnName, string inputColumnName)[] columns, Language language = Language.English) 660internal StopWordsRemovingEstimator(IHostEnvironment env, params ColumnOptions[] columns) 735public ITransformer CreateComponent(IHostEnvironment env, IDataView input, OneToOneColumn[] column) 909internal CustomStopWordsRemovingTransformer(IHostEnvironment env, string[] stopwords, params (string outputColumnName, string inputColumnName)[] columns) : 927internal CustomStopWordsRemovingTransformer(IHostEnvironment env, string stopwords, 1020private static CustomStopWordsRemovingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 1030internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 1052private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 1056private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 1216internal CustomStopWordsRemovingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, params string[] stopwords) 1228internal CustomStopWordsRemovingEstimator(IHostEnvironment env, (string outputColumnName, string inputColumnName)[] columns, string[] stopwords) :
Text\TextCatalog.cs (1)
108var env = CatalogUtils.GetEnvironment(catalog);
Text\TextFeaturizingEstimator.cs (6)
403internal TextFeaturizingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null) 408internal TextFeaturizingEstimator(IHostEnvironment env, string name, IEnumerable<string> source, Options options = null) 619private static ITransformer Create(IHostEnvironment env, ModelLoadContext ctx) 661internal static IDataTransform Create(IHostEnvironment env, Options args, IDataView data) 680internal Transformer(IHostEnvironment env, TransformerChain<ITransformer> chain) 717public Transformer(IHostEnvironment env, ModelLoadContext ctx)
Text\TextNormalizing.cs (7)
101internal TextNormalizingTransformer(IHostEnvironment env, 144private static TextNormalizingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 172private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 189private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 193private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 542internal TextNormalizingEstimator(IHostEnvironment env, 563internal TextNormalizingEstimator(IHostEnvironment env,
Text\TokenizingByCharacters.cs (7)
108internal TokenizingByCharactersTransformer(IHostEnvironment env, bool useMarkerCharacters = TokenizingByCharactersEstimator.Defaults.UseMarkerCharacters, 138private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 156private static TokenizingByCharactersTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 166internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 183private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 658internal TokenizingByCharactersEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, 672internal TokenizingByCharactersEstimator(IHostEnvironment env, bool useMarkerCharacters = Defaults.UseMarkerCharacters,
Text\WordBagTransform.cs (16)
110internal static IEstimator<ITransformer> CreateEstimator(IHostEnvironment env, Options options, SchemaShape inputSchema) 173internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) => 182public TextExpandingEstimator(IHostEnvironment env, string columnName, char freqSeparator, char termSeparator) 213public TextExpandingTransformer(IHostEnvironment env, string columnName, char freqSeparator, char termSeparator) 235private TextExpandingTransformer(IHostEnvironment env, ModelLoadContext ctx) : 253private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 259private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 440public INgramExtractorFactory CreateComponent(IHostEnvironment env, TermLoaderArguments loaderArgs) 457internal static IEstimator<ITransformer> CreateEstimator(IHostEnvironment env, Options options, SchemaShape inputSchema, TermLoaderArguments termLoaderArgs = null) 541internal static IDataTransform CreateDataTransform(IHostEnvironment env, Options options, IDataView input, 570internal static INgramExtractorFactory Create(IHostEnvironment env, NgramExtractorArguments extractorArgs, 622ITransformer Create(IHostEnvironment env, IDataView input, ExtractorColumn[] cols); 647public ITransformer Create(IHostEnvironment env, IDataView input, ExtractorColumn[] cols) 669public ITransformer Create(IHostEnvironment env, IDataView input, ExtractorColumn[] cols) 677public static IEstimator<ITransformer> GetConcatEstimator(IHostEnvironment env, ManyToOneColumn[] columns) 699public static string[][] GenerateUniqueSourceNames(IHostEnvironment env, ManyToOneColumn[] columns, DataViewSchema schema)
Text\WordEmbeddingsExtractor.cs (18)
160internal WordEmbeddingTransformer(IHostEnvironment env, string outputColumnName, string inputColumnName = null, 173internal WordEmbeddingTransformer(IHostEnvironment env, string outputColumnName, string customModelFile, string inputColumnName = null) 184internal WordEmbeddingTransformer(IHostEnvironment env, WordEmbeddingEstimator.PretrainedModelKind modelKind, params WordEmbeddingEstimator.ColumnOptions[] columns) 200internal WordEmbeddingTransformer(IHostEnvironment env, string customModelFile, params WordEmbeddingEstimator.ColumnOptions[] columns) 219internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 268internal static WordEmbeddingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 278private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 282private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 622private string EnsureModelFile(IHostEnvironment env, out int linesToSkip, WordEmbeddingEstimator.PretrainedModelKind kind) 650private Model GetVocabularyDictionary(IHostEnvironment hostEnvironment) 726private static ParallelOptions GetParallelOptions(IHostEnvironment hostEnvironment) 776/// <param name="env">The local instance of <see cref="IHostEnvironment"/></param> 780internal WordEmbeddingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, 792/// <param name="env">The local instance of <see cref="IHostEnvironment"/></param> 796internal WordEmbeddingEstimator(IHostEnvironment env, string outputColumnName, string customModelFile, string inputColumnName = null) 807/// <param name="env">The local instance of <see cref="IHostEnvironment"/></param> 810internal WordEmbeddingEstimator(IHostEnvironment env, 821internal WordEmbeddingEstimator(IHostEnvironment env, string customModelFile, params ColumnOptions[] columns)
Text\WordHashBagProducingTransform.cs (6)
86internal static ITransformer CreateTransformer(IHostEnvironment env, Options options, IDataView input) 159internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) => 306public INgramExtractorFactory CreateComponent(IHostEnvironment env, TermLoaderArguments loaderArgs) 322internal static ITransformer Create(IHostEnvironment env, Options options, IDataView input) 378internal static ITransformer Create(NgramHashExtractorArguments extractorArgs, IHostEnvironment env, IDataView input, 415internal static INgramExtractorFactory Create(IHostEnvironment env, NgramHashExtractorArguments extractorArgs,
Text\WordTokenizing.cs (8)
116internal WordTokenizingTransformer(IHostEnvironment env, params WordTokenizingEstimator.ColumnOptions[] columns) : 147private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 166private static WordTokenizingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 176internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 195private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 467internal WordTokenizingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, char[] separators = null) 478internal WordTokenizingEstimator(IHostEnvironment env, (string outputColumnName, string inputColumnName)[] columns, char[] separators = null) 488internal WordTokenizingEstimator(IHostEnvironment env, params ColumnOptions[] columns)
Text\WrappedTextTransformers.cs (6)
106internal WordBagEstimator(IHostEnvironment env, 134internal WordBagEstimator(IHostEnvironment env, 161internal WordBagEstimator(IHostEnvironment env, 280internal WordHashBagEstimator(IHostEnvironment env, 313internal WordHashBagEstimator(IHostEnvironment env, 345internal WordHashBagEstimator(IHostEnvironment env,
UngroupTransform.cs (4)
104public UngroupTransform(IHostEnvironment env, IDataView input, UngroupMode mode, params string[] columns) 109public UngroupTransform(IHostEnvironment env, Options options, IDataView input) 120public static UngroupTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 681public static CommonOutputs.TransformOutput Ungroup(IHostEnvironment env, UngroupTransform.Options input)
Microsoft.ML.Vision (17)
DnnRetrainTransform.cs (10)
45private readonly IHostEnvironment _env; 90private static DnnRetrainTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 156internal static IDataTransform Create(IHostEnvironment env, DnnRetrainEstimator.Options options, IDataView input) 167internal DnnRetrainTransformer(IHostEnvironment env, DnnRetrainEstimator.Options options, IDataView input) 172internal DnnRetrainTransformer(IHostEnvironment env, DnnRetrainEstimator.Options options, ML.TensorFlow.TensorFlowSessionWrapper tensorFlowModel, IDataView input, IDataView validationSet = null) 496private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 500private static IRowMapper Create(IHostEnvironment env, ModelLoadContext ctx, DataViewSchema inputSchema) 503private static void GetModelInfo(IHostEnvironment env, ModelLoadContext ctx, out string[] inputs, 522internal DnnRetrainTransformer(IHostEnvironment env, Session session, string[] outputColumnNames, 1229internal DnnRetrainEstimator(IHostEnvironment env, Options options, ML.TensorFlow.TensorFlowSessionWrapper tensorFlowModel)
ImageClassificationTrainer.cs (6)
505internal ImageClassificationTrainer(IHostEnvironment env, 525internal ImageClassificationTrainer(IHostEnvironment env, Options options) 1326private TensorFlowSessionWrapper LoadTensorFlowSessionFromMetaGraph(IHostEnvironment env, Architecture arch) 1374internal ImageClassificationModelParameters(IHostEnvironment env, Session session, int classCount, 1402private ImageClassificationModelParameters(IHostEnvironment env, ModelLoadContext ctx) 1427internal static ImageClassificationModelParameters Create(IHostEnvironment env, ModelLoadContext ctx)
VisionCatalog.cs (1)
83var env = CatalogUtils.GetEnvironment(catalog);