NEEDLE2.0 is a classifier for building datasets and training transient-object classifiers with the needle_train pipeline.
python -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e .-
Configure paths in
config.py:DEFAULT_DATA_PATHMAG_OUTPUT_PATHHOST_DATA_PATHOBJ_INFO_PATH
-
Build train/validation datasets:
python needle_train/get_train_valid_sets.py- Train and evaluate model:
python needle_train/run_model.pyneedle_train/: training, preprocessing, and dataset build scriptsimage/,light_curve/: image and photometry-related processing modulesconfig.py: central configuration for paths and training optionsutils.py: shared helper functions
- Inputs: external data roots configured in
config.py, with optional reference tables underinfo/. - Outputs:
needle_inputs/(NEEDLE_SET_PATH)light_curve/photo_processing_output_new/(PHOTO_OUTPUT_PATH)image/image_preprocessing_output/(IMG_OUTPUT_PATH)image/image_unmasked_output/(UNMASKED_IMG_OUTPUT_PATH)
- Large generated outputs are ignored by
.gitignoreto keep commits small.
This project is licensed under the MIT License. See LICENSE for details.