|
|
|
"""
|
|
|
|
(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
|
|
|
|
|
|
|
|
}
|
|
|
|
else:
|
|
|
|
self.network_args = _args['network_args']
|
|
|
|
self._encoder = None
|
|
|
|
self._map = None
|
|
|
|
self._df = _args['data'] if 'data' in _args else None
|
|
|
|
self.logger.write(_args)
|
|
|
|
if hasattr(caller,'_queue') :
|
|
|
|
writer = transport.factory.instance(provider=transport.providers.FILE,context='write',path=os.sep.join([gTrain.out_dir,'map.json']))
|
|
|
|
|
|
|
|
if os.path.exists(filename):
|
|
|
|
return _df
|
|
|
|
r = {}
|
|
|
|
if _item['type'] in ['DATETIME','TIMESTAMP']:
|
|
|
|
writer.write(_df,table=self.info['from'])
|
|
|
|
_log = {'action':'io-data','input':{'candidates':1,'rows':int(self._df.shape[0])}}
|