Skip to content

ML.NET command line tool #1203

@Zruty0

Description

@Zruty0

I think we should consider making ML.NET command-line tool an actual first-class citizen.

A bit of insider knowledge: we currently already have a commandline tool, that is a port of maml.exe. You can launch it as follows (this shows the 'help' command, or the ? command).

dotnet .\bin\AnyCPU.Debug\Microsoft.ML.Console\netcoreapp2.1\MML.dll ?

Generally, the syntax is dotnet MML.dll <command> <arguments>, and the current list of commands include things like train, CV, showdata etc. (full list is available via dotnet MML.dll ? kind=command).

This command-line tool is actually very powerful (although the language is clunky).

We could easily expand the command-line tool to handle common programming sub-tasks, like:

  • Generate prediction code from model (actually, we already have codegen, but it needs some retouch to work with the new API);
  • Inspect the contents of the model (which transformers are there and how they are set up);
  • Introspect into the TensorFlow or other external model format (Microsoft.ML.Tensorflow could have a commandline interface to list the nodes of the graph;
  • etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Priority of the issue for triage purpose: Needs to be fixed at some point.command-lineIssues pertaining to the command-line interfacedocumentationRelated to documentation of ML.NETenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions