Skip to content

Anomaly Detection for Imbalanced Data #911

Answered by MaxHalford
Noazao asked this question in Q&A
Discussion options

You must be logged in to vote

Can anyone guide me on working with imbalanced data in online anomaly detection?

You seem to figuring things out by yourself. And we don't have enough information to help you out in terms of performance (no code, no data, etc.).

but it turns out that the RandomOverSampler doesn't accept the Halfspace tree, and this is the error that I got " AttributeError: 'RandomOverSampler' object has no attribute 'score_one'"

That's expected. RandomOverSampler is meant to be used with a classifier, which HalfSpaceTrees isn't. I guess we could extend RandomOverSampler it to support score_one. Although my first feeling is that it's weird to oversample the minority class when you're doing anomaly dete…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Noazao
Comment options

@MaxHalford
Comment options

Answer selected by MaxHalford
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants