dotnet / dotnet/docs

Getting Full code from Model Builder

Open
#30,259 2 comments 0 reactions 0 assignees View on GitHub
:watch: Not Triaged
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

Hello

I am working in ML.NET to create a image classification model, and I got interested in the Model Builder code consumption. I have used the Model Builder to train a simple model and then consumed it to get a generated code in C# console form. As I understood when consuming the Model Builder generates 4 files: consumption file, training file, zip file with the actual model, and the main program.cs file. When launched, the program executes program.cs file which invokes consumption file which gets data for the model from zip file. So training file is not used in its default state and is present only for possibility of retraining the model in future.

I am curious about getting the code for the program which created the zip file, namely the original pipeline training algorithm, which transforms data, chooses the classification algorithm/method, performs training and saves the model. Is it possible to get this code? Retraining the model is not an option for me because I want to generate lots of small concrete models, rather than having one huge universal model.

I couldn't find any function that actually creates new model saves it to zip file.

Correct me please, if I am wrong

Thanks in advance

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.