In [5]:
import numpy as np
import pickle
import sys
sys.path.append('../classification')
import featureExtraction
import feature_store
sys.path.append('../gen_lightcurves')
import json
import numpy as np
import rpy2
import pywt
from rpy2.robjects.packages import importr
from importlib import reload
In [2]:
with open('../gen_lightcurves/des_sn.p', 'rb') as f:
lightcurves = pickle.load(f)
test_key = np.random.permutation(list(lightcurves))[0]
test_lightcurve = lightcurves[test_key]
In [15]:
reload(feature_store)
hp = {'wavelet_type': 'sym2', 'wavelet_level': 1, 'num_band_coeffs': 10}
feature_store.generate_decomposition(hp)
In [ ]:
get_pywt_wav_coeffs(test_lightcurve, 'sym2', 1);
In [ ]:
In [ ]: