Skip to content

FastTreeRankingTrainer expose non-advanced args(#1246) - #1393

Closed
feiyun0112 wants to merge 3 commits into
dotnet:masterfrom
feiyun0112:issue1246
Closed

FastTreeRankingTrainer expose non-advanced args(#1246)#1393
feiyun0112 wants to merge 3 commits into
dotnet:masterfrom
feiyun0112:issue1246

Conversation

@feiyun0112

Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread src/Microsoft.ML.FastTree/FastTree.cs Outdated
string featureColumn,
string weightColumn = null,
string groupIdColumn = null,
int numLeaves = Defaults.NumLeaves,

Copy link
Copy Markdown
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

sfilipi commented Oct 26, 2018

Copy link
Copy Markdown
Member
        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
Copy Markdown
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?

@@ -59,7 +59,7 @@ public sealed partial class FastTreeTweedieTrainer
/// <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
Copy Markdown
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

sfilipi commented Oct 26, 2018

Copy link
Copy Markdown
Member

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