5
$\begingroup$

I have an hypothesis but i don't know if it's true.

If the cluster is dense and we apply a supervised learning on this data, the model generated by this cluster will be more efficient for new data falling into this cluster than other. Thus we have multiple cluster with associate models

How choose the right associate model to optimize our prediction ? We can compare the value of the point to cluster's mean and apply the right model !

Any suggestions ?

$\endgroup$
1
  • 1
    $\begingroup$ There are better ways of dimensionality reduction than clustering, which is an ill-defined problem; it's hard to know if you've clustered well. A more contemporary approach would be to learn a representation with a neural network. $\endgroup$
    – Emre
    Commented Mar 6, 2016 at 20:40

3 Answers 3

1
$\begingroup$

You could also try tSNE, also available in scikit-learn. It is a probabilistic dimensionality reduction technique, specifically designed for plotting data in two or three dimensions, while preserving the original distances between the samples as much as possible.

You should be able to see how well your data is clustered.

$\endgroup$
1
$\begingroup$

I just want to chime in and highlight that using clustering to segment your data before modelling might be a bad idea.

At a high level, clustering is a two/three dimensional visualisation of similarity.

If you have two/three dimensions to your dataset you're probably OK using clustering to segment your data as all the possible relationships are being visualised by the clustering.

However if you have more than three variables than this you won't be able to visualise all the possible relationships meaning that using the 2D/3D clustering might find patterns that are not there. See Steinbach, Ertöz, and Kumar for more information.

That being said you could use dimensionality reduction techniques to reduce the dimensionality of the dataset to two/three dimensions and then cluster your population- but this is situational. By reducing the dimensionality of your dataset to get cluster-able results you might be throwing away information that would be useful when it comes to modelling.

Also: I'd recommend using a more formalised metric for deciding the adequacy of your clustering see here - maybe you're using too many/not enough clusters?

I've only answered your half of your question so now I'll attempt the second part: when in doubt, Random Forests are your best friend. Use them as your baseline prediction and you'll be getting great accuracy out of the box.

$\endgroup$
0
$\begingroup$

If the cluster is nice and dense, your classifier on all of the data will work just fine. Relying on a clustering is risky.

Sure, the classifier in a cluster may get easier, but overall I would expect the error to increase.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.