Skip to content

Command-line oriented arguments, that have more suitable alternatives for the API should be made internal #2133

Closed
@sfilipi

Description

@sfilipi

In the arguments classes there are several arguments that get translated to the same parameter for the estimators/transforms.

One of the variant is a convenience for the command line version of ML.Net.

I think those can be made internal, and kept away from the user for v1.

Example:

ValueToKeyMappingTransformer.ArgumentsBase

public abstract class ArgumentsBase : TransformInputBase
{
     [Argument(ArgumentType.AtMostOnce, HelpText = "Maximum number of terms to keep per column when auto-training", ShortName = "max", SortOrder = 5)]
      public int MaxNumTerms = ValueToKeyMappingEstimator.Defaults.MaxNumTerms;

      [Argument(ArgumentType.AtMostOnce, HelpText = "Comma separated list of terms", SortOrder = 105, Visibility = ArgumentAttribute.VisibilityType.CmdLineOnly)]
      public string Terms;

      [Argument(ArgumentType.AtMostOnce, HelpText = "List of terms", SortOrder = 106, Visibility = ArgumentAttribute.VisibilityType.EntryPointsOnly)]
      public string[] Term;

I don't think our API users should see the first

public string Terms

Metadata

Metadata

Assignees

Labels

APIIssues pertaining the friendly API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions