#MLNET – Export Machine Learning.Net models to #ONNX format

Hi!

Machine Learning.Net has a new release. In this version 0.3, there are several very interesting features. Cesar De la Torre explains in a very detailed way all these new features (see references). I’ve had some extra time these days and I’ve been trying something that I find very interesting

Export Machine Learning.Net models to #ONNX format

As always the best thing describe this it with a couple of lines of code

  • Up to Line 28, the Console APP creates a pipeline, and trains it to have a ML.Net model.
  • In the following lines, using a OnnxConverter, I export the model to ONNX.

The documentation of OnnxConverter and examples of ML.Net detail more complex scenarios where for example you define which columns are included or excluded. If we open the file Onnx, it’s interesting to see how a simple pipeline is represented as this example

01

Happy Coding!

Saludos @ Toronto

El Bruno

References

My Posts

Advertisements

16 thoughts on “#MLNET – Export Machine Learning.Net models to #ONNX format

  1. Cada vez tienes menos vergüenza a la hora de escribir posts.. Haz algo y déjate de fusilar a la gente.. en fin, todo por el MVP.

    Like

    1. Siento que hayas perdido el tiempo leyendo esto …
      Espero que tengas la capacidad suficiente para elegir mejor algo que leer next time.
      Parece que no aprecias la ventaja de poder exportar a ONNX desde ML.Net !

      Un Saludo
      -Bruno

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s