-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-12006][ML][PYTHON] Fix GMM failure if initialModel is not None #9986
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
Conversation
python/pyspark/mllib/clustering.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of doing this, I suggest you explicitly call list(initialModel.weights), it is easier to understand.
|
Test build #2328 has finished for PR 9986 at commit
|
|
@thunterdb Done. I am not sure if a separate test is justified. It could be better to add a second round to |
|
I think the test is fine for now. LGTM Merging with master, branch-1.6, branch-1.5, branch-1.4 (tested with old versions) Thanks! |
If initial model passed to GMM is not empty it causes `net.razorvine.pickle.PickleException`. It can be fixed by converting `initialModel.weights` to `list`. Author: zero323 <[email protected]> Closes #9986 from zero323/SPARK-12006. (cherry picked from commit fcd013c) Signed-off-by: Joseph K. Bradley <[email protected]>
If initial model passed to GMM is not empty it causes `net.razorvine.pickle.PickleException`. It can be fixed by converting `initialModel.weights` to `list`. Author: zero323 <[email protected]> Closes #9986 from zero323/SPARK-12006. (cherry picked from commit fcd013c) Signed-off-by: Joseph K. Bradley <[email protected]>
If initial model passed to GMM is not empty it causes `net.razorvine.pickle.PickleException`. It can be fixed by converting `initialModel.weights` to `list`. Author: zero323 <[email protected]> Closes #9986 from zero323/SPARK-12006. (cherry picked from commit fcd013c) Signed-off-by: Joseph K. Bradley <[email protected]>
|
@jkbradley I am glad to hear that. Thanks for your assistance. |
|
seems this one was merged without a passing test? |
|
looks like jenkins did not run the test for the latest commit. |
|
I am reverting it from 1.4, 1.5, 1.6, and master. |
|
Sorry. We need to make sure it passes jenkins. |
|
@yhuai I'm sorry about that! I should not merge when tired... |
|
no worries. Looks #10644 has passed jenkins. |
|
@jkbradley, @yhuai It is my bad. Sorry for the mess. |
If initial model passed to GMM is not empty it causes
net.razorvine.pickle.PickleException. It can be fixed by convertinginitialModel.weightstolist.