You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This provides an example of integrating a database within ML.Net.
The sample provides a solution that integrates with the existing sample
solution, along with instructions for how to create the database and run
the example.
* - Updating based upon feedback.
* - Addressing feedback, updating the README.md.
* - Another round of updates.
* - Addressing the ToList feedback.
* Removed solution folder. will get it from amster when merging
This sample demonstrates how to use a database as a data source for an ML.Net pipeline. As ML.Net does not have native support for a database, this sample shows how data can be accessed using an IEnumerable. Since the database is treated as any other datasource, it is possible to query the database and use the resulting data for training and prediction scenarios.
3
+
4
+
## Problem
5
+
Enterprise users have a need to use their existing data set that is in their company's database to train and predict with ML.Net. They need support to leverage their existing relational table schema, ability to read from the database directly, and to be aware of memory limitations as the data is being consumed.
6
+
7
+
## Solution
8
+
This sample shows how to use the Entity Framework Core to connect to a database, query and feed the resulting data into an ML.Net pipeline.
9
+
10
+
This sample uses SQLite to help demonstrate the database integration, but any database that is supported by the Entity Framwork Core can be used. As ML.Net can create an IDataView from an IEnumerable, this sample will use the IEnumerable that is returned from a query to feed the data into the ML.Net pipeline. To prevent the Entity Framework Core from loading all the data in from a result, a no tracking query is used.
0 commit comments