Skip to content

Organize core code into a reusable package - #3

Merged
yxteo2 merged 1 commit into
mainfrom
refactor/package-layout
Sep 10, 2026
Merged

yxteo2 merged 1 commit into
mainfrom
refactor/package-layout

Conversation

@yxteo2

@yxteo2 yxteo2 commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • move dataset loading into anomaly_detection/data.py
  • group FastFlow and SuperSimpleNet implementations under anomaly_detection/modeling/
  • group their trainers and evaluators under anomaly_detection/training/
  • add explicit package exports for stable imports
  • retain the existing root-level training and inference commands
  • remove the obsolete duplicate SSN trainer/evaluator embedded in the old FastFlow trainer
  • update tests and the repository map

Compatibility

The documented CLI commands remain unchanged:

  • python train.py ...
  • python inference.py ...
  • python ssn_inference.py ...

Checkpoint formats, model behavior, dataset behavior, and evaluation behavior are unchanged.

Verification

  • python -m compileall -q .
  • git diff --check
  • GitHub Actions runs the static checks and seven regression tests

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.
@yxteo2
yxteo2 merged commit ecd8575 into main Sep 10, 2026
3 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