1 instantiation of ModelInput
Microsoft.ML.IntegrationTests (1)
ModelFiles.cs (1)
243
var modelInput = new
ModelInput
()
6 references to ModelInput
Microsoft.ML.IntegrationTests (6)
ModelFiles.cs (6)
234
SchemaDefinition inputSchemaDefinition = SchemaDefinition.Create(typeof(
ModelInput
));
235
inputSchemaDefinition[nameof(
ModelInput
.CategoricalFeatures)].ColumnType = new VectorDataViewType(TextDataViewType.Instance, 5);
236
inputSchemaDefinition[nameof(
ModelInput
.NumericalFeatures)].ColumnType = new VectorDataViewType(NumberDataViewType.Single, 3);
243
var
modelInput = new ModelInput()
251
var model = mlContext.Model.CreatePredictionEngine<
ModelInput
, ModelOutput>(trainedModel, inputSchemaDefinition: inputSchemaDefinition);
255
var model2 = mlContext.Model.CreatePredictionEngine<
ModelInput
, ModelOutput>(trainedModel, inputSchema: dataViewSchema);