From the course: Exploring Data Science with .NET using Polyglot Notebooks & ML.NET

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Loading data into train/test sets

Loading data into train/test sets

- [Instructor] Let's get started with ml.net. Here I have a notebook that has dependencies on nuget packages for Microsoft data analysis for our data frame and Microsoft ML for ml.net. We also have a dependency on microsoft.ml.AutoML, that's automated ML or automated machine learning, which is an extension of ml.net. Here we have using statements to open our common name spaces, and we also load our training data into a data frame. Note that we're storing our data frame into a DF variable that's of Type IDataView. We don't have to do this, but I wanted to emphasize that the data frame implements IDataView because ml.net relies around IDataView instances in order to work with its data. My current preferred form of an IDataView is the data frame, so that's why that's featured in this course. But understand that ml.net gives us different options for loading data if we wanted to. Everything in ml.net revolves around an ML context object. So let's create one now. I'm going to add a new C…

Contents