Skip to content

Comments

Added decorators and auto-fit support #67

Merged
sarusso merged 1 commit intodevelopfrom
feature/decorators_and_auto_fit
Dec 13, 2025
Merged

Added decorators and auto-fit support #67
sarusso merged 1 commit intodevelopfrom
feature/decorators_and_auto_fit

Conversation

@sarusso
Copy link
Collaborator

@sarusso sarusso commented Dec 12, 2025

This PR adds two decorators for the fit() and apply() methods in order to improve the consistency across models.

They are supposed to be used as @AnomalyDetector.fit_method and @AnomalyDetector.apply_method, and the decorator for the apply also adds support for auto-fitting models implementing the fit() method, if not already done, as discussed with @clarasaja.

The PR also includes minor fixes and refactoring, as well as support for setting fit() and apply() parameters externally.

…ort for auto-fitting models on apply calls. Minor fixes and refactoring.
@sarusso sarusso merged commit 792d38f into develop Dec 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant