4
$\begingroup$

I have one conceptual question.

In Unsupervised Learning, when I have no labels. The anomaly detection model (Isolation forests, Autoencoders, Distance-based methods etc.), it should fit on a training data and then test( Train- Test split) just like a common supervised technique of creating the datafolds?

It helps in many ways during supervised learning to reduce the overfitting.

Or, it doesn't matter in unsupervised learning and I can train on all of my available dataset? Since there are no labels or measures to check the accuracy of fit.

$\endgroup$
1
  • $\begingroup$ If we are talking about highly imbalanced data sets then by nature of your data you will have very few anomalies, so by splitting the data further you will be decreasing your model power. Also, if this is unsupervised then you have no real way of knowing how good your model is, so a train / test split is not useful. $\endgroup$ Commented Jan 15, 2019 at 15:20

2 Answers 2

2
$\begingroup$

It doesn't make too much sense to split dataset for unsupervised learning since you don't have labels to automatically calculate the accuracy/effectiveness of your model.

One way of getting a sense of how well your model is doing is to check the detected samples from your unsupervised model. For example, say you detected 50 samples that are falling away from the majority of your data, then manually check those 50 to see the percentage of positives. That way you can feel how good your model is. Then, based on your previous knowledge on how many positive cases (roughly) should be there in your dataset, you can estimate how many positive cases are not captured by your current model. This allows you to calculate a rough sensitivity and specificity of your model.

$\endgroup$
1
$\begingroup$

Train test splits are done to estimate the out of sample error. Anomaly detection would be a case where train test splits could be useful assuming you have labels, but then you may be better off using supervised learning. Usually it is unnecessary to use a validation splits for unsupervised tasks, but it depends on the situation.

$\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.