machinelearning icon indicating copy to clipboard operation
machinelearning copied to clipboard

Command-line tool to script ML.NET training and inference

Open glebuk opened this issue 8 years ago • 2 comments

Why Command Line?

While C# is a great language to build services and apps, it is not a scripting language. As a result, it is difficult sometimes to quickly experiment, play and test different ML approaches.
In many situations, it is highly useful to script, parametrize and automate ML program execution. This also might help end users operationalize model creation, maintenance, and deployment.

What should it do?

We need a command line tool that runs with ML.NET libraries and exposes a command line interface to the framework. Such an EXE would:

  • Run training, inference, and evaluation against data files
  • Show list of available components and their arguments
  • Allow ability to run specific scripts files to run specific pipelines that can be used in benchmarking
  • Inspect models and binary data sources
  • Import and export models from ONNX
  • Autogenerate CS inference classes from trained models
  • Sweep hyper parameters
  • Moreover, we can define an interface for all of the actions so that it would be extended with developers to create additional commands

What do you think?

glebuk avatar May 10 '18 05:05 glebuk

Whatever the API surface of the tool is going to be, it would be beneficial if it could be consumed in other scripts and tools with a more convenient interface than std out and in piping. I'm thinking about potential powershell and c# script Integrations.

It all can be done under separate issues, much later, however it's good to think about it whendesigning the architecture for this functionality implementation.

voltcode avatar May 10 '18 15:05 voltcode

Sorry for asking. What about PowerShell + ML.NET? Its as u said. C# is great for apps server etc. But I feel Powershell is better for quick interaktive stuff and automation. I used Accord.NET with powershell and it felt great. I think powershell with ML.NET would be great too. So instead of CLI tool we could think about "how could combine Powershell and ML.NET" in a good way. or is a CLI better for the Linux Shell users.

dotChris90 avatar May 12 '18 21:05 dotChris90