Skip to main content

AstroOracle: active learning oracle for astronomical anomaly triage (SkyView cutouts + annotations + retrain hooks).

Project description

AstroOracle

AstroOracle is an active learning “oracle” for astronomical anomaly triage.

  • Reads candidate detections from a Parquet file.
  • Ranks them by uncertainty + optional embedding diversity.
  • Pulls multi-survey cutouts from SkyView.
  • Annotates via CLI (matplotlib) or Jupyter (ipywidgets + Plotly).
  • Logs events in append-only JSONL.
  • Optionally triggers retraining.

Install (editable)

python -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e ".[plotly,watch,notebook]"

Quickstart (CLI)

Generate sample candidates:

python examples/sample_candidates.py

Run oracle:

astrooracle run --candidates candidates.parquet --interval 300 --n-query 6

Headless + PNG export:

astrooracle run --no-gui --save-cutouts cutouts/ --candidates candidates.parquet

Jupyter UI

jupyter lab

Open examples/oracle_notebook.ipynb.

Watch mode (watchdog)

astrooracle watch --candidates candidates.parquet

Batch HTML export

astrooracle batch-html --candidates candidates.parquet --out-dir batch_out/ --n-query 60

Open batch_out/index.html and export annotations from the page.

License

MIT

Demo visuals (offline)

Generate sample candidates and create an HTML batch annotator + PNG cutouts without network access:

python examples/sample_candidates.py
astrooracle batch-html --candidates candidates.parquet --out-dir demo_out --n-query 12 --offline

Open demo_out/index.html.

Nouveautés v0.2.0

  • Ranking multicritère (anomaly score + acquisition + prior + diversité)
  • Acquisition: entropy, margin, BALD (via ensemble), BADGE
  • Diversité batch: k-center (core-set) et DPP greedy
  • Entraînement: modèle ensemble logistic regression calibré + métriques (ECE)
  • API: FastAPI (endpoints /rank, /annotate)
  • Stats: DuckDB sur logs JSONL

Commandes

astrooracle train --candidates candidates.parquet --annotations annotations.csv
astrooracle batch-html --out-dir out_html
astrooracle serve --host 127.0.0.1 --port 8000
astrooracle stats

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astrooracle-0.2.0.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astrooracle-0.2.0-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file astrooracle-0.2.0.tar.gz.

File metadata

  • Download URL: astrooracle-0.2.0.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for astrooracle-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d65ff1db54ae33c9396c8d04db980661570998cb5eae9c6c742a1a6e0351bf40
MD5 3d86cb41e2df1ba409e1fa71e6c10e0c
BLAKE2b-256 de3924b40826646c4bb632e271f4d10183a5d901ad3a6331bb71b48c02141bc9

See more details on using hashes here.

Provenance

The following attestation bundles were made for astrooracle-0.2.0.tar.gz:

Publisher: release.yml on dalozedidier-dot/AstroOracle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file astrooracle-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: astrooracle-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for astrooracle-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8373d464809bb76e85d64b4deb6620d0d951bd2d302f49bc1858bd2f6ffd1024
MD5 d892423eb9e0c36ca2ebfcdca0bfb4b1
BLAKE2b-256 cb656783f2e793e2e1b897777f8e37dd720b1771f18c0cb6cb4ca16cd06e3982

See more details on using hashes here.

Provenance

The following attestation bundles were made for astrooracle-0.2.0-py3-none-any.whl:

Publisher: release.yml on dalozedidier-dot/AstroOracle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page