Generate noisified lightcurves based on the BTS sample and retrain Parsnip with these.
Project description
ztfparsnip
Retrain Parsnip for ZTF. This is achieved by using fpbot forced photometry lightcurves of the Bright Transient Survey. These are augmented (redshifted, noisifed and - when possible - K-corrected).
The package is maintained by A. Townsend (HU Berlin) and S. Reusch (DESY).
Usage
Create augmented training sample
from pathlib import Path
from ztfparsnip.create import CreateLightcurves
weights = {"sn_ia": 9400, "tde": 9400, "sn_other": 9400, "agn": 9400, "star": 9400}
sample = CreateLightcurves(
output_format="parsnip",
classkey="simpleclasses",
weights=weights,
train_dir=Path("train"),
plot_dir=Path("plot"),
seed=None,
phase_lim=True,
k_corr=True,
)
sample.select()
sample.create(plot_debug=False)
Train Parsnip with the augmented sample
Run ztftrain INFILE
where INFILE
points to a .h5
object.
Evaluate
Coming soon.
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
ztfparsnip-0.2.0.tar.gz
(3.1 MB
view hashes)
Built Distribution
Close
Hashes for ztfparsnip-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f923d39b698a3722705afb099bb6c677a39305308bfb397ab3f170ea09d346c2 |
|
MD5 | 0f1dfb98adc17b6348ad791511ec4eae |
|
BLAKE2b-256 | cee2b69b80f26e78aee0725e96dbbf8bf7f2382d99488c279477cbf354feb79a |