-
Notifications
You must be signed in to change notification settings - Fork 5
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
add Hierarchical Clustering & some docstring fixes #9
Conversation
@jbrea Thanks indeed for this contribution. On a first glance this implementation makes sense, but after some reflection, certain aspects bother me. For example, the possibility that Instead, I would be inclined to conceptualise this model as a
My vote is for 3. What do you think? And do you have objectionis to implementing as |
@ablaom Thanks for your feedback and suggestions! I like version 3 and implemented it. |
Codecov Report
@@ Coverage Diff @@
## master #9 +/- ##
==========================================
- Coverage 98.41% 97.18% -1.23%
==========================================
Files 1 1
Lines 63 71 +8
==========================================
+ Hits 62 69 +7
- Misses 1 2 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@jbrea Thanks for that. Unfortunately, since making the suggestion I'm rethinking my Can we sit on this until the API is firmed up? |
@jbrea Thanks for your patience. We may want to revisit this after JuliaAI/MLJBase.jl#806 |
I'll have a look at this in early September, if you are not in a hurry. |
Hi @ablaom I am struggling a bit with squeezing hierarchical clustering into the current design. |
@jbrea Thanks again for looking into this. I agree, this is just not easy to fit into the current design (or any general ML API, really). However, I'm pretty sure storing state in I think the best we can do is include your earlier closure in the What do you say? |
Thanks, @ablaom. This sounds good to me. I pushed the new version. |
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.
Nice implementation. Perhaps we should add some tests?
At the least, we should add HierarchicalClusterer
to the generic interface tests at the end of runtests.jl
We also need to update this line to include the new model:
-
(KMeans, KMedoids, DBSCAN),
Co-authored-by: Anthony Blaom, PhD <[email protected]>
Co-authored-by: Anthony Blaom, PhD <[email protected]>
Co-authored-by: Anthony Blaom, PhD <[email protected]>
Co-authored-by: Anthony Blaom, PhD <[email protected]>
Co-authored-by: Anthony Blaom, PhD <[email protected]>
Thanks, @ablaom. Tests are added now. I think this PR should be ready now. |
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.
Good to go. @jbrea Thanks for this valuable contribution, your patience, and careful design considerations.
@ablaom
predict(mach, Xnew)
doesn't make any sense for hierarchical clustering, butpredict(mach)
does. Do you think this is still useful like this?(ps. Sorry for mixing in docstring fixes...)