Repository navigation
Build and train configurable anomaly detectors from YAML - #4
Merged
Merged
Conversation
Move dataset, model, and trainer implementations under anomaly_detection; remove the obsolete duplicate SSN trainer from the FastFlow module; and update imports, tests, and documentation.
Add a strict safe configuration schema, model/loss factories and shared training runner. Support configurable FastFlow NLL and SSN focal/BCE losses, honor SSN optimizer settings, save resolved experiments, preserve inference compatibility, and prevent accidental output overwrites. Include three example configs, documentation and offline tests covering YAML validation, real one-epoch CPU training, calibration and inference reloads.
…r files Main tree equals the original package-layout base. Preserve the exact tested feature tree while reconciling the squash-merge ancestry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a YAML-first experiment builder for the supported anomaly detectors:
Run
Edit the dataset location/category, then:
python -m pip install -r requirements.txt python train.py --config configs/fastflow.yaml --check-config python train.py --config configs/fastflow.yaml # Equivalent package entry point: python -m anomaly_detection --config configs/ssn.yamlExamples:
configs/fastflow.yaml,configs/ssn.yaml,configs/ssn_bce.yaml. Full reference:docs/yaml_training.md.Verification
git diff --checkpassedThese are software correctness smoke tests, not real-dataset accuracy benchmarks or GPU validation.
Dependency / merge order
This is a stacked PR targeting
refactor/package-layout, so the diff contains only the new feature. It depends on the organization work in #3. Merge #3 first and retarget this PR tomainbefore merging this feature. Neither PR has been merged by this change.