4 instantiations of SentimentData
Microsoft.Extensions.ML.Tests (4)
PredictionEnginePoolTests.cs (4)
52
Assert.NotNull(inFlight.Predict(new
SentimentData
{ SentimentText = "great" }));
57
Assert.NotNull(afterSwap.Predict(new
SentimentData
{ SentimentText = "terrible" }));
64
Assert.NotNull(reused.Predict(new
SentimentData
{ SentimentText = "fine" }));
106
Assert.NotNull(afterOverflow.Predict(new
SentimentData
{ SentimentText = "still works" }));
7 references to SentimentData
Microsoft.Extensions.ML.Tests (7)
PredictionEnginePoolTests.cs (7)
34
services.AddPredictionEnginePool<
SentimentData
, SentimentPrediction>()
39
var pool = sp.GetRequiredService<PredictionEnginePool<
SentimentData
, SentimentPrediction>>();
92
var rented = new PredictionEngine<
SentimentData
, SentimentPrediction>[maximumRetained + 2];
118
private static PredictionEnginePool<
SentimentData
, SentimentPrediction> CreatePool(ModelLoader loader)
121
services.AddPredictionEnginePool<
SentimentData
, SentimentPrediction>();
122
services.Configure<PredictionEnginePoolOptions<
SentimentData
, SentimentPrediction>>(
126
return sp.GetRequiredService<PredictionEnginePool<
SentimentData
, SentimentPrediction>>();