'Stored procedure as a data source in ML.net?
is there a way I can pass stored procedure data in DatabaseSource.
Any other way I can load data from stored procedures in ML.net?
var loader = context.Data.
CreateDatabaseLoader<Patient>();
var SPData=(mySPData);
DatabaseSource dbSource =SPData;
IDataView data= loader.Load(dbSource);
Solution 1:[1]
You should be able to as long as you can express it in your query.
https://docs.microsoft.com/dotnet/machine-learning/how-to-guides/load-data-ml-net
One other way to do it would be to execute a query with your stored procedure and map the results to an IEnumerable<T>. Then, load the IEnumerable into an IDataView.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Luis Quintanilla |
