Skip to content

FastTree LearningRate not settable thru arguments object #1983

Closed
@daholste

Description

@daholste

Issue

  • What did you do?
            Action<FastTreeBinaryClassificationTrainer.Arguments> argsFunc = (args) =>
            {
                args.LearningRates = 0.1;
            };
            var trainer = mlContext.BinaryClassification.Trainers.FastTree(advancedSettings: argsFunc);
  • What happened?
    trainer.Args.LearningRate = the default learning rate of 0.2

  • What did you expect?
    trainer.Args.LearningRate = 0.1

I think this happens because

if (Args.LearningRates != learningRate)
            {
                using (var ch = Host.Start($"Setting learning rate to: {learningRate} as supplied in the direct arguments."))
                    Args.LearningRates = learningRate;
            }

in BoostingFastTree.cs

Metadata

Metadata

Assignees

No one assigned

    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