Reference / API
Pre-processing
Light curve analysis
Performing feature extraction for 1 light curve
Light Curve object, holding meta and photometric data. |
|
|
Reads one LC from SNPCC data. |
|
Extract Bazin features for one filter. |
Perform Bazin fit for all filters independently and concatenate results. |
|
|
Plot data and Bazin fitted function. |
Fitting an entire data set
|
Fit Bazin functions to all filters in training and test samples. |
Basic light curve analysis tools
|
Parametric light curve function proposed by Bazin et al., 2009. |
|
Absolute difference between theoretical and measured flux. |
|
Find best-fit parameters using scipy.least_squares. |
Canonical sample
The Canonical object for holding the entire sample.
Canonical sample object. |
|
|
Load SNPCC metada data required to characterize objects. |
Identify training and test sample. |
|
Identify 1 nearest neighbor for each object in training. |
Functions to populate the Canonical object
|
Build canonical sample for SNPCC data. |
|
Plot comparison between training and canonical samples. |
Build time domain data base
Handles photometric information for entire SNPCC data. |
|
|
Get minimum and maximum MJD for complete sample. |
|
Create one file for a given day of the survey. |
|
Fit bazin for all objects with enough points in a given day. |
DataBase
Object upon which the learning process is performed
|
DataBase object, upon which the active learning loop is performed. |
|
Load Bazin features from file. |
|
Load features according to the chosen feature extraction method. |
|
Separate train and test samples. |
|
Apply a machine learning classifier. |
Evaluate results from classification. |
|
|
Identify new object to be added to the training sample. |
|
Add the queried obj(s) to training and remove them from test. |
|
Save current metrics to file. |
|
Save queried sample to file. |
Classifiers
|
Random Forest classifier. |
Query strategies
|
Randomly choose an object from the test sample. |
|
Search for the sample with highest uncertainty in predicted class. |
Metrics
Individual metrics
|
Calculate accuracy. |
|
Calculate efficiency. |
|
Calculate purity. |
|
Calculate figure of merit. |
Metrics agregated by category or use
|
Calculate the metric parameters used in the SNPCC. |
Active Learning loop
Full light curve
|
Perform the active learning loop. |
Time domain
|
Read original full light curve training sample |
|
Perform the active learning loop. |
Plotting
|
Canvas object, handles and plot information from multiple strategies. |
|
Load and identify set of metrics. |
Set directives for plot sizes. |
|
|
Generate plot for all metrics in files and strategies given as input. |
Scripts
|
Build canonical sample for SNPCC data set fitted with Bazin features. |
|
Generates features files for a list of days of the survey. |
|
Fit the entire sample with the Bazin function. |
|
Generate metric plots. |
|
Command line interface to run the active learning loop. |
|
Command line interface to the Time Domain Active Learning scenario. |