1 write to _ml
Microsoft.ML.IntegrationTests (1)
SchemaDefinitionTests.cs (1)
26_ml = new MLContext(42);
14 references to _ml
Microsoft.ML.IntegrationTests (14)
SchemaDefinitionTests.cs (14)
27_ml.Log += LogTestOutput; 34var loader = _ml.Data.CreateTextLoader(new TextLoader.Options(), new MultiFileSource(fileName)); 36var pipeline1 = _ml.Transforms.Categorical.OneHotEncoding("Cat", "Workclass", maximumNumberOfKeys: 3) 37.Append(_ml.Transforms.Concatenate("Features", "Cat", "NumericFeatures")); 40var pipeline2 = _ml.Transforms.Categorical.OneHotEncoding("Cat", "Workclass", maximumNumberOfKeys: 4) 41.Append(_ml.Transforms.Concatenate("Features", "Cat", "NumericFeatures")); 46var engine1 = _ml.Model.CreatePredictionEngine<InputData, OutputData>(model1, outputSchemaDefinition: outputSchemaDefinition); 50var engine2 = _ml.Model.CreatePredictionEngine<InputData, OutputData>(model2, outputSchemaDefinition: outputSchemaDefinition); 65var loader = _ml.Data.CreateTextLoader(new TextLoader.Options(), new MultiFileSource(fileName)); 66var pipeline = _ml.Transforms.Categorical.OneHotEncoding("Categories") 67.Append(_ml.Transforms.Categorical.OneHotEncoding("Workclass")) 68.Append(_ml.Transforms.Concatenate("Features", "NumericFeatures", "Categories", "Workclass")) 69.Append(_ml.Transforms.FeatureSelection.SelectFeaturesBasedOnMutualInformation("Features")); 78var custom = _ml.Transforms.CustomMapping(