de00082780be884fc90e0113d323bfd63006ffba,main.py,Model,train,#Model#Any#Any#,428

Before Change


            cli_report = OrderedDict()
            for i_batch, data_pt in enumerate(dataset.epoch(
                    "train", hparams.BATCH_SIZE * hparams.MAX_N_SIGNAL, shuffle=True)):
                max_len = max(map(len, data_pt[0]))
                spectra = np.stack(
                    [np.pad(x, [(0, (-len(x))%max_len), (0,0)], mode="constant") for x in data_pt[0]])
                spectra = np.reshape(
                    spectra,
                    [hparams.BATCH_SIZE, hparams.MAX_N_SIGNAL, max_len, hparams.FEATURE_SIZE])
                to_feed = dict(

After Change


                    hparams.BATCH_SIZE * hparams.MAX_N_SIGNAL, shuffle=True)):
                to_feed = dict(
                    zip(self.train_feed_keys, (
                        np.reshape(data_pt[0], [hparams.BATCH_SIZE, hparams.MAX_N_SIGNAL, -1, hparams.FEATURE_SIZE]),
                        hparams.DROPOUT_KEEP_PROB)))
                step_summary, step_fetch = g_sess.run(
                    self.train_fetches, to_feed)[:2]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: khaotik/DaNet-Tensorflow
Commit Name: de00082780be884fc90e0113d323bfd63006ffba
Time: 2017-08-07
Author: junkkhaotik@gmail.com
File Name: main.py
Class Name: Model
Method Name: train


Project Name: reinforceio/tensorforce
Commit Name: 208e5d91d7f88cc1ab10ab1a4bfdd856b2691671
Time: 2017-05-22
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/models/trpo_model.py
Class Name: FlatVarHelper
Method Name: __init__


Project Name: instacart/lore
Commit Name: 8d8d007fa2ffdf2a7f8f0a5ea596db84f942339e
Time: 2017-12-12
Author: montanalow@users.noreply.github.com
File Name: lore/encoders.py
Class Name: Token
Method Name: transform


Project Name: dask/dask-ml
Commit Name: bb122b846da894c1797e8c98cd510c0f940aeb43
Time: 2018-12-17
Author: ryan.deak@zefr.com
File Name: tests/compose/test_column_transformer.py
Class Name:
Method Name: test_column_transformer_unk_chunksize