Encoder testing#495
Draft
smaharjan-web wants to merge 20 commits into
Draft
Conversation
- rtf.rs: prepare_features() builds (1,257,37) photometry tensor, (1,257) pad mask, and (1,3,63,63) CHW cutout from ZTF alert data. 30 metadata channels match ALERT_META_KEYS from training pipeline. - mtan.rs: prepare_features() filters g/r photometry, merges nearby obs, normalizes magnitudes and time, pads to 200 steps. Adds pool_embedding() to mean-pool qz0_mean into 2D vector. - ztf.rs: ZtfAlertEmbeddings struct, compute_embeddings() method, integrated into process_alerts() to store embeddings in MongoDB alongside existing classifications.
Adds an initContainer to the ZTF scheduler k8s deployment that pulls rtf_embed.onnx and mtan_embed.onnx from boom-astro/boomEncoders into an emptyDir volume mounted at /app/data/models. The main container reads these model files at startup to initialize ONNX inference.
# Conflicts: # src/enrichment/ztf.rs
…dings
- compute_embeddings: replace .lock().unwrap() with match on lock()
to gracefully handle poisoned mutex instead of panicking the worker
- compute_embeddings: return None when both RTF and mTAN fail, so
MongoDB doesn't get { rtf: null, mtan: null } written needlessly
- mtan.rs: add comment explaining last-write-wins merge matches the
Python training pipeline for numerical consistency
- k8s: remove stale NOTE about uploading ACAI/BTSBot (already done)
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.
No description provided.