-
Notifications
You must be signed in to change notification settings - Fork 842
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
Params from parent java estimators aren't copied to python mmlspark models #582
Comments
@kschelonka thanks for bringing up this issue! |
Thanks for the response! The build refactor sounds like it would make development easier, so I'll wait for updates on that. Thanks! |
@kschelonka, @imatiach-msft I think this would be mitigated by making the LightGBM models proper sparkML estimators with getter and setters instead of being constuctor defined. This would also improve code re-use. Ilya, could you consider this when doing yout LGBM cleanup PR? |
FYI this is now fixed on LightGBM (because of ComplexParamsWritable) but not on some of the other estimators like TrainClassifier. |
The java params for mmlspark estimators like LightGBMClassifier, etc. aren't copied over to the python instances.
This is related to this Jira ticket: PySpark ML Models should contain Param values
A temporary fix was added so that the params can be accessed using

getOrDefault
method. This does make it possible to pull in the params from mmlspark models, like LightGBMClassifier:Spark developers are planning on incrementally updating the pyspark API to use the appropriate getter and setter methods, and having the pyspark models define the params within themselves (see SPARK-21812). For example, CountVectorizer was updated in this fashion.
Since it's very useful to be able to access model parameters, I propose updating mmlspark models in a similar fashion. Happy to contribute to this effort.
The text was updated successfully, but these errors were encountered: