Skip to content

Conversation

@feiyun0112
Copy link
Contributor

Fix #1246

add numLeaves , numTrees, minDocumentsInLeafs, learningRate args

string groupIdColumn = null,
int numLeaves = Defaults.NumLeaves,
int numTrees = Defaults.NumTrees,
int minDocumentsInLeafs = Defaults.MinDocumentsInLeafs,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

= Defaults.MinDocumentsInLeafs [](start = 35, length = 31)

please remove defaults from the base classes

string featureColumn,
string weightColumn = null,
string groupIdColumn = null,
int numLeaves = Defaults.NumLeaves,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

= Defaults.NumLeaves [](start = 25, length = 21)

same here; remove defaults

@sfilipi
Copy link
Member

sfilipi commented Oct 26, 2018

        string weights = null,

do you want to add the restof the args, like "numTrees" here, like above?


Refers to: src/Microsoft.ML.FastTree/FastTreeCatalog.cs:92 in cd04300. [](commit_id = cd04300, deletion_comment = False)

protected RandomForestTrainerBase(IHostEnvironment env, SchemaShape.Column label, string featureColumn,
string weightColumn = null, string groupIdColumn = null, bool quantileEnabled = false, Action<TArgs> advancedSettings = null)
: base(env, label, featureColumn, weightColumn, groupIdColumn, advancedSettings)
: base(env, label, featureColumn, weightColumn, groupIdColumn, advancedSettings: advancedSettings)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

advancedSettings: advancedSettings) [](start = 75, length = 35)

did you want to add the other args?

/// <param name="weightColumn">The name for the column containing the initial weight.</param>
/// <param name="advancedSettings">A delegate to apply all the advanced arguments to the algorithm.</param>
public FastTreeTweedieTrainer(IHostEnvironment env, string labelColumn, string featureColumn,
string groupIdColumn = null, string weightColumn = null, Action<Arguments> advancedSettings = null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

null, Action advancedSettings = null [](start = 63, length = 47)

would you like to add the other args

@sfilipi
Copy link
Member

sfilipi commented Oct 26, 2018

Thanks for the help @feiyun0112.
We overlap some :) PR #1352

@feiyun0112 feiyun0112 closed this Oct 27, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Mar 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants