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

ENH: from_data and from_centers methods #12

Merged
merged 4 commits into from
Apr 27, 2021
Merged

ENH: from_data and from_centers methods #12

merged 4 commits into from
Apr 27, 2021

Conversation

martinfleis
Copy link
Owner

@martinfleis martinfleis commented Apr 27, 2021

Addind the ability to create clustergram using custom data, without the need to run any cluster algorithm within clustergram itself.

from_data gets labels and data and creates cluster centers as mean or median values.

from_centers utilises custom centers when mean/median is not the optimal solution (like in case of GMM for example).

Closes #10

@martinfleis martinfleis added this to the 0.4 milestone Apr 27, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #12 (bc354b5) into main (35bbf8d) will increase coverage by 2.21%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #12      +/-   ##
==========================================
+ Coverage   57.59%   59.81%   +2.21%     
==========================================
  Files           3        3              
  Lines         507      535      +28     
==========================================
+ Hits          292      320      +28     
  Misses        215      215              
Impacted Files Coverage Δ
clustergram/clustergram.py 79.20% <100.00%> (+2.62%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 35bbf8d...bc354b5. Read the comment docs.

@martinfleis martinfleis merged commit 5c10788 into main Apr 27, 2021
@martinfleis martinfleis deleted the from_- branch April 27, 2021 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow manual input
2 participants