You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
"""
|
|
|
|
(c) 2019 Data Maker, hiplab.mc.vanderbilt.edu
|
|
|
|
version 1.0.0
|
|
|
|
|
|
|
|
This package serves as a proxy to the overall usage of the framework.
|
|
|
|
This package is designed to generate synthetic data from a dataset from an original dataset using deep learning techniques
|
|
|
|
|
|
|
|
@TODO:
|
|
|
|
- Make configurable GPU, EPOCHS
|
|
|
|
"""
|
|
|
|
import pandas as pd
|
|
|
|
import numpy as np
|
|
|
|
BOUNDS = ContinuousToDiscrete.bounds(X,BIN_SIZE)
|
|
|
|
|
|
|
|
values = []
|
|
|
|
_BINARY= ContinuousToDiscrete.binary(X,BIN_SIZE)
|
|
|
|
# # print (BOUNDS)
|
|
|
|
|
|
|
|
# values = []
|
|
|
|
for row in _BINARY :
|
|
|
|
# ubound = BOUNDS[row.index(1)]
|
|
|
|
index = np.where(row == 1)[0][0]
|
|
|
|
|
|
|
|
ubound = BOUNDS[ index ].right
|
|
|
|
lbound = BOUNDS[ index ].left
|
|
|
|
|
|
|
|
args['context'] = col
|
|
|
|
BIN_SIZE = 4 if 'bin_size' not in args else int(args['bin_size'])
|