17 references to PredictionEnginePool
Microsoft.Extensions.ML (10)
PredictionEnginePool.cs (1)
92
throw new ObjectDisposedException(nameof(
PredictionEnginePool
<TData, TPrediction>));
PredictionEnginePoolExtensions.cs (3)
8
/// Extension methods for <see cref="
PredictionEnginePool
{TextDataViewType, TPrediction}"/>.
21
this
PredictionEnginePool
<TData, TPrediction> predictionEnginePool, TData example)
40
this
PredictionEnginePool
<TData, TPrediction> predictionEnginePool, string modelName, TData example)
PredictionEnginePoolOptions.cs (1)
8
/// Specifies the options to use when creating a <see cref="
PredictionEnginePool
{TData, TPrediction}"/>.
ServiceCollectionExtensions.cs (5)
18
/// Adds a <see cref="
PredictionEnginePool
{TData, TPrediction}"/> and required config services to the service collection.
32
services.AddSingleton<
PredictionEnginePool
<TData, TPrediction>>());
36
/// Adds a <see cref="
PredictionEnginePool
{TData, TPrediction}"/> and required config services to the service collection.
49
Func<IServiceProvider,
PredictionEnginePool
<TData, TPrediction>> implementationFactory)
70
/// Adds only the required config services for <see cref="
PredictionEnginePool
{TData, TPrediction}"/> to the service collection.
Microsoft.Extensions.ML.Tests (7)
PredictionEnginePoolTests.cs (7)
39
var
pool = sp.GetRequiredService<
PredictionEnginePool
<SentimentData, SentimentPrediction>>();
49
using
var
pool = CreatePool(loader);
72
var
pool = CreatePool(loader);
89
using
var
pool = CreatePool(loader);
118
private static
PredictionEnginePool
<SentimentData, SentimentPrediction> CreatePool(ModelLoader loader)
126
return sp.GetRequiredService<
PredictionEnginePool
<SentimentData, SentimentPrediction>>();