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

[Feature]: Anomaly Detection / One Class Classification #3496

Open
jeffpicard opened this issue Jul 8, 2024 · 2 comments
Open

[Feature]: Anomaly Detection / One Class Classification #3496

jeffpicard opened this issue Jul 8, 2024 · 2 comments
Labels
feature A new feature

Comments

@jeffpicard
Copy link
Contributor

Problem statement

Flair doesn't have an Anomaly Detection / One Class Classification model. While this question describes alternate solutions, some use cases could benefit from this dedicated model type.

Solution

Add a new AnomalyDetection class to flair.models. The implementation would train an autoencoder on a single class of data. At inference time, the autoencoder's reconstruction error of the input would be calculated and compared to a threshold to determine whether the input is in-class.

Additional Context

I plan to pull request code for this soon.

@jeffpicard jeffpicard added the feature A new feature label Jul 8, 2024
@alanakbik
Copy link
Collaborator

Hello @jeffpicard that sounds great, let us know if you need any help!

jeffpicard added a commit to jeffpicard/flair that referenced this issue Jul 12, 2024
jeffpicard added a commit to jeffpicard/flair that referenced this issue Jul 12, 2024
jeffpicard added a commit to jeffpicard/flair that referenced this issue Jul 15, 2024
jeffpicard added a commit to jeffpicard/flair that referenced this issue Jul 15, 2024
jeffpicard added a commit to jeffpicard/flair that referenced this issue Jul 15, 2024
@jeffpicard
Copy link
Contributor Author

Thanks @alanakbik! I put up a first stab (linked above) if you're interested.

jeffpicard added a commit to jeffpicard/flair that referenced this issue Aug 6, 2024
jeffpicard added a commit to jeffpicard/flair that referenced this issue Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

No branches or pull requests

2 participants