In [2]:
import sys
import json
import numpy as np
import rpy2
import pywt
from rpy2.robjects.packages import importr
from sklearn.decomposition import PCA
sys.path.append('../classification')
import featureExtraction
In [3]:
lightcurve_path = '../gen_lightcurves/SN2002de_gpsmoothed.json'
with open(lightcurve_path, 'r') as f:
lightcurve = json.load(f)
all_coeffs = featureExtraction.general_wavelet_coeffs('sym2', )
In [ ]: