[SOLVED] 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.

var SPData=(mySPData);

DatabaseSource dbSource =SPData;

IDataView data= loader.Load(dbSource);


You should be able to as long as you can express it in your query.


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.


Answered By – Luis Quintanilla

Answer Checked By – Robin (BugsFixing Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *