Provide sample and documentation for PredictionFunction object-pooling for ASP.NET applications
This is the concrete work item from discussions in #1718.
Motivation: Majority of .NET Core apps use ASP.NET Core. In order to get the best developer experience we should provide a sample that implements object pooling approach for PredictionFucntion (which is not trivial) and also document it in docs.microsoft.com.
Based on feedback from users, we might add this functionality to ML.NET.
👍 Adding also @JRAlexander since I'll work with him for the documentation at docs.microsoft.com in order to be aligned.
I created a sample showing Object Pooling for the PredictionEngine targeting high scalable web apps, here:
https://github.com/dotnet/machinelearning-samples/tree/master/samples/csharp/end-to-end-apps/Regression-SalesForecast/src/eShopDashboard
@luisquintanilla is also working on a Tutorial for this scenario.
So, I'm closing this issue.
We might want to discuss how to simplify this scenario in the future, though..