Skip to content
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

(WIP) throw a exception on cluster methods if it comes before k-means runs #675

Closed
wants to merge 4 commits into from

Conversation

kumagi
Copy link
Member

@kumagi kumagi commented Feb 18, 2014

This PR is correspond to #667

Some clustering RPC cause segfault before it runs clustering calculation.
We should check kcenters_ before access it.

@suma
Copy link
Member

suma commented Feb 20, 2014

Test fails.

@kumagi
Copy link
Member Author

kumagi commented Feb 20, 2014

@suma Sorry, I'll fix.

@suma
Copy link
Member

suma commented Feb 20, 2014

Could you add unit test for this exception? (in driver or core?)

@@ -25,6 +25,18 @@
namespace clustering {

class clustering_method_serializer;
class no_cluster_exception : public std::exception {
Copy link
Member

Choose a reason for hiding this comment

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

Should we use jubatus_exception?

@kumagi
Copy link
Member Author

kumagi commented Feb 21, 2014

I add test for exception.
But I don't know the behavior of gmm so I can't decide whether it should throw the exception.
I need someone's help.

@kmaehashi kmaehashi assigned kmaehashi and unassigned unnonouno Jul 6, 2015
@kmaehashi
Copy link
Member

This issue was fixed via jubatus/jubatus_core#151 and jubatus/jubatus_core#95.

@kmaehashi kmaehashi closed this Sep 28, 2015
@kmaehashi kmaehashi removed this from the Near Future milestone Sep 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants