e3caa24a93210c2fd6bf68ae8a9d510e3c58a59d,tensorflowonspark/pipeline.py,TFEstimator,_fit,#TFEstimator#Any#,381
Before Change
logging.info("===== 3. train args + params: {0}".format(local_args))
if local_args.input_mode == TFCluster.InputMode.TENSORFLOW:
if dfutil.isLoadedDF(dataset):
// if just a DataFrame loaded from tfrecords, just point to original source path
logging.info("Loaded DataFrame of TFRecord.")
local_args.tfrecord_dir = dfutil.loadedDF[dataset]
else:
// otherwise, save as tfrecords and point to save path
assert local_args.tfrecord_dir, "Please specify --tfrecord_dir to export DataFrame to TFRecord."
if self.getInputMapping():
// if input mapping provided, filter only required columns before exporting
dataset = dataset.select(list(self.getInputMapping()))
logging.info("Exporting DataFrame {} as TFRecord to: {}".format(dataset.dtypes, local_args.tfrecord_dir))
dfutil.saveAsTFRecords(dataset, local_args.tfrecord_dir)
logging.info("Done saving")
tf_args = self.args.argv if self.args.argv else local_args
cluster = TFCluster.run(sc, self.train_fn, tf_args, local_args.cluster_size, local_args.num_ps,
local_args.tensorboard, local_args.input_mode, master_node=local_args.master_node, driver_ps_nodes=local_args.driver_ps_nodes)
if local_args.input_mode == TFCluster.InputMode.SPARK:
After Change
local_args = self.merge_args_params()
logging.info("===== 3. train args + params: {0}".format(local_args))
if local_args.input_mode == TFCluster.InputMode.TENSORFLOW:
raise Exception("InputMode.TENSORFLOW is not supported.")
tf_args = self.args.argv if self.args.argv else local_args
cluster = TFCluster.run(sc, self.train_fn, tf_args, local_args.cluster_size, local_args.num_ps,
local_args.tensorboard, local_args.input_mode, master_node=local_args.master_node, driver_ps_nodes=local_args.driver_ps_nodes)
if local_args.input_mode == TFCluster.InputMode.SPARK:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: yahoo/TensorFlowOnSpark
Commit Name: e3caa24a93210c2fd6bf68ae8a9d510e3c58a59d
Time: 2019-08-16
Author: leewyang@verizonmedia.com
File Name: tensorflowonspark/pipeline.py
Class Name: TFEstimator
Method Name: _fit
Project Name: sahana/eden
Commit Name: d39f65b15ff01c0d08804ff0e59715967ee2c113
Time: 2018-10-11
Author: dominic@nursix.org
File Name: controllers/admin.py
Class Name:
Method Name: user
Project Name: sahana/eden
Commit Name: 2b57cf4db2b4c77b3c7c28b0f899d02282733c72
Time: 2019-06-19
Author: fran@aidiq.com
File Name: modules/templates/IFRC/menus.py
Class Name: S3MainMenu
Method Name: menu_modules