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