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;
34
var loader =
_ml
.Data.CreateTextLoader(new TextLoader.Options(), new MultiFileSource(fileName));
36
var pipeline1 =
_ml
.Transforms.Categorical.OneHotEncoding("Cat", "Workclass", maximumNumberOfKeys: 3)
37
.Append(
_ml
.Transforms.Concatenate("Features", "Cat", "NumericFeatures"));
40
var pipeline2 =
_ml
.Transforms.Categorical.OneHotEncoding("Cat", "Workclass", maximumNumberOfKeys: 4)
41
.Append(
_ml
.Transforms.Concatenate("Features", "Cat", "NumericFeatures"));
46
var engine1 =
_ml
.Model.CreatePredictionEngine<InputData, OutputData>(model1, outputSchemaDefinition: outputSchemaDefinition);
50
var engine2 =
_ml
.Model.CreatePredictionEngine<InputData, OutputData>(model2, outputSchemaDefinition: outputSchemaDefinition);
65
var loader =
_ml
.Data.CreateTextLoader(new TextLoader.Options(), new MultiFileSource(fileName));
66
var 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"));
78
var custom =
_ml
.Transforms.CustomMapping(