2 overrides of GetModel
Microsoft.Extensions.ML (2)
ModelLoaders\FileModelLoader.cs (1)
101
public override ITransformer
GetModel
()
ModelLoaders\UriModelLoader.cs (1)
164
public override ITransformer
GetModel
()
6 references to GetModel
Microsoft.Extensions.ML (3)
PoolLoader.cs (1)
44
var predictionEnginePolicy = new PredictionEnginePoolPolicy<TData, TPrediction>(Context, Loader.
GetModel
());
PredictionEnginePool.cs (2)
58
return _namedPools[modelName].Loader.
GetModel
();
66
return _defaultEnginePool.Loader.
GetModel
();
Microsoft.Extensions.ML.Tests (3)
FileLoaderTests.cs (2)
35
Assert.Throws<InvalidOperationException>(() => loaderUnderTest.
GetModel
());
50
var model = loaderUnderTest.
GetModel
();
UriLoaderTests.cs (1)
35
Assert.Throws<InvalidOperationException>(() => loaderUnderTest.
GetModel
());