Skip to content

Really simple ML.NET for Scientists, Researchers and Engineers

Notifications You must be signed in to change notification settings

edirgarcia/ml_net_lab

Repository files navigation

Really simple ML.NET for Scientists, Researchers and Engineers

In this short workshop you’ll learn the basics of ML.NET, what it is, how does it work, how can you use it to jumpstart your machine learning projects. We will go over examples of models trained directly on C# and models created on Python through NimbusML . Also, you’ll also learn how to operationalize your model in a simple C# app that emulates your service/project. Once you have seen how to do it, you will try to train a model yourself. Lastly, we will see a demonstration of the power of the ML.NET AutoML.

Setup Instructions:

  1. Make sure you have git
  2. Clone this lab using git clone https://github.com/edirgarcia/ml_net_lab.git or download and extract the zip if you don't have/want git.
  3. Install Anaconda, or procure yourself a Python environment with jupyter notebook.
  4. Download and Install .NET Core SDK from here. You can verify your installation by typing dotnet --info in a console.
  5. Install Graphviz from here (optional) if you don't install this you won't be able to see pipeline visualizations, but the project still works.
  6. Once Anaconda is installed, open Anaconda Prompt and then
    1. Navigate to this enlistment cd <your_path_here>\ml_net_lab
    2. Create the ml_net environment conda env create -f ml_net.yml (this might take a while)
    3. On a separate cmd Install the dotnet-interactive global tool: dotnet tool install --global Microsoft.dotnet-interactive --version 1.0.115407
    4. Activate the conda environment: conda activate ml_net
    5. Install the .NET kernel: dotnet interactive jupyter install (You might need to close and reopen you Anaconda Prompt for the dotnet interactive tool to load)
    6. Verify the .NET kernel is installed: jupyter kernelspec list

Running Instructions:

  1. Open Anaconda Prompt
  2. Navigate to this enlistment cd <your_path_here>\ml_net_lab
  3. Activate the conda environment: conda activate ml_net
  4. If you installed Graphviz, run the script that puts it on the path: set_path_graphviz.bat
  5. Run jupyter notebook: jupyter notebook

Credit disclaimers: The original author of the C# taxi predict notebook is Zeeshan Siddiqui (codemzs), I wrote the NimbusML version attempting to emulate the same pipeline. The California housing notebooks are loosely based off Shravan Seshadri's workshop on Basic Feature's engineering at the University of Washington Dubstech, which he based of someone else's work whom I can't remember. So this is an adaptation for teaching and learning some of the ML.NET/NimbusML stack and options.

About

Really simple ML.NET for Scientists, Researchers and Engineers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published