Hierarchical clustering linkage methodScipy linkage() function returning inconsistent resultsPython hierarchical clustering visualization dump [scipy]How to handle catagorical data while training decision tree using scikit-learn/ sklearn?How do I plug distance data into scipy's agglomerative clustering methods?Feature importances, discretization and criterion in decision treesCutting Dendrogram/Clustering Tree from SciPy at distance heightDecision trees / stumps with AdaboostHow to compute cophenetic correlation from the linkage matrix output by fastcluster's memory saving hierarchical clustering method?python sklearn decision tree classifier feature_importances_ with feature names when using continuous valuesCompare k-means cluster results with hierarchical clustering
How important are the Author's mood and feelings for writing a story?
How would you say "Sorry, that was a mistake on my part"?
ReplaceAll does not work
Available space differs between sys.database_files and database properties dialog in SQL Server Management Studio
How to extract interesting piece of output in bash
How was Luke's prosthetic hand in Episode V filmed?
What would be the safest way to drop thousands of small, hard objects from a typical, high wing, GA airplane?
Locked-up DOS computer beeped on keypress. What mechanism caused that?
Should I have shared a document with a former employee?
Why did my "seldom" get corrected?
Do higher dimensions have axes?
Why don't humans perceive waves as twice the frequency they are?
How did J. J. Thomson establish the particle nature of the electron?
Pure functions instead of For loop
Operation Unzalgo
Why is Google approaching my VPS machine?
What makes MOVEQ quicker than a normal MOVE in 68000 assembly?
Could a US citizen born through "birth tourism" become President?
(edit) Brushless Motor - Why does the stator burn up if the rotor doesn't rotate?
Why are there few or no black super GMs?
Why do jet engines sound louder on the ground than inside the aircraft?
Connection between SM an CM
Is it possible to have a career in SciComp without contributing to arms research?
Apex Legends stuck at 60 FPS (G-Sync 144hz monitor)
Hierarchical clustering linkage method
Scipy linkage() function returning inconsistent resultsPython hierarchical clustering visualization dump [scipy]How to handle catagorical data while training decision tree using scikit-learn/ sklearn?How do I plug distance data into scipy's agglomerative clustering methods?Feature importances, discretization and criterion in decision treesCutting Dendrogram/Clustering Tree from SciPy at distance heightDecision trees / stumps with AdaboostHow to compute cophenetic correlation from the linkage matrix output by fastcluster's memory saving hierarchical clustering method?python sklearn decision tree classifier feature_importances_ with feature names when using continuous valuesCompare k-means cluster results with hierarchical clustering
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I stand before the task to items based on their features. I know, that I need to use either decision trees of hierarchical clustering to make the results easily understandable.
My question is: I need to specify custom fuction/method to split on - weighted distance (some features are more important than others).
I haven't yet found the way to do that in sklearn decision tree classifier. Scipy hierarchical clustering offers some methods, but I don't think any of them fits.
Would you have a suggestion how to implement such a metric in any of these?
Thanks
decision-tree hierarchical-clustering
add a comment |
I stand before the task to items based on their features. I know, that I need to use either decision trees of hierarchical clustering to make the results easily understandable.
My question is: I need to specify custom fuction/method to split on - weighted distance (some features are more important than others).
I haven't yet found the way to do that in sklearn decision tree classifier. Scipy hierarchical clustering offers some methods, but I don't think any of them fits.
Would you have a suggestion how to implement such a metric in any of these?
Thanks
decision-tree hierarchical-clustering
add a comment |
I stand before the task to items based on their features. I know, that I need to use either decision trees of hierarchical clustering to make the results easily understandable.
My question is: I need to specify custom fuction/method to split on - weighted distance (some features are more important than others).
I haven't yet found the way to do that in sklearn decision tree classifier. Scipy hierarchical clustering offers some methods, but I don't think any of them fits.
Would you have a suggestion how to implement such a metric in any of these?
Thanks
decision-tree hierarchical-clustering
I stand before the task to items based on their features. I know, that I need to use either decision trees of hierarchical clustering to make the results easily understandable.
My question is: I need to specify custom fuction/method to split on - weighted distance (some features are more important than others).
I haven't yet found the way to do that in sklearn decision tree classifier. Scipy hierarchical clustering offers some methods, but I don't think any of them fits.
Would you have a suggestion how to implement such a metric in any of these?
Thanks
decision-tree hierarchical-clustering
decision-tree hierarchical-clustering
asked Mar 26 at 10:20
Michal A.Michal A.
95 bronze badges
95 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55354701%2fhierarchical-clustering-linkage-method%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55354701%2fhierarchical-clustering-linkage-method%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown