-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Refactoring of Constructors #2100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
P2
Priority of the issue for triage purpose: Needs to be fixed at some point.
Comments
Good, so #1098 will be "the way" unambiguously for the public API, I guess, for v1. |
Yeap. That is why as part of the work for #1798 we are making the constructors |
This was referenced Jan 15, 2019
This was referenced Jan 25, 2019
This was referenced Jan 29, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently in our codebase, we have two
constructors
that are used for initialization of the underlying object.Example:
A.
machinelearning/src/Microsoft.ML.FastTree/FastTreeRanking.cs
Lines 75 to 84 in bdc9a9e
B.
machinelearning/src/Microsoft.ML.FastTree/FastTreeRanking.cs
Lines 93 to 95 in bdc9a9e
We need to bringing the public API surface to the desired shape. As such, we are making both constructors
internal
, and fixing other issues with the public API as outlined in #1798.Additionally, constructor (B) has all the details for constructing the underlying object. As such, we can delete constructor (A) altogether.
NOTE: We will do this issue only after finishing the work to bring public API to the desired shape .
Constructors that need closer look towards unification:
SdcaBinaryTrainer
SdcaMultiClassTrainer
SdcaRegressionTrainer
StochasticGradientDescentClassificationTrainer
FastTreeRankingTrainer
FastTreeRegressionTrainer
FastTreeBinaryClassificationTrainer
FastForestClassification
FastForestRegression
PoissonRegression
LogisticRegression
BinaryClassificationGamTrainer
LightGbmBinaryTrainer
LightGbmMulticlassTrainer
LightGbmRankingTrainer
LightGbmRegressorTrainer
@TomFinley @glebuk @shauheen @sfilipi @artidoro @rogancarr
The text was updated successfully, but these errors were encountered: