|
|
|
"""
|
|
|
|
(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
|
|
|
|
from multiprocessing import Queue
|
|
|
|
|
|
|
|
_args = dict({'ndx':self.ndx,'module':self.name,'table':self.info['from'],'context':_context,'info':_label,**_args})
|
|
|
|
NOT_GENERATING = self.name in ['Trainer','Shuffle']
|
|
|
|
try:
|
|
|
|
super().__init__(**_args)
|
|
|
|
writer.write(self._encoder._map,overwrite=True)
|
|
|
|
writer.close()
|
|
|
|
|
|
|
|
#
|
|
|
|
# @TODO: At this point we need to generate another some other objects
|
|
|
|
#
|
|
|
|
_args = {"network_args":self.network_args,"store":self.store,"info":self.info,"candidates":self.candidates,"data":self._df}
|
|
|
|
class Generator (Learner):
|
|
|
|
_args['gpu'] = self.gpu
|
|
|
|
|
|
|
|
FORMAT = self.info['format'][_name]
|
|
|
|
|
|
|
|
self._df = self._df.loc[_index][_ocolumns]
|
|
|
|
else:
|