a07d174b57d3be7914fc1ce172c87ea7d487d241,tensorforce/core/optimizers/subsampling_step.py,SubsamplingStep,step,#SubsamplingStep#Any#,56
Before Change
def step(self, arguments, **kwargs):
arguments = arguments.copy()
if "states" in arguments and "horizons" in arguments:
states = arguments.pop("states")
horizons = arguments.pop("horizons")
else:
states = None
After Change
values=(tf.math.cumsum(x=horizons[:, 1], exclusive=True), horizons[:, 1]), axis=1
)
for name, argument in arguments.items():
if states is None or (name != "states" and name != "horizons"):
subsampled_arguments[name] = tf.gather(params=argument, indices=indices)
deltas = self.optimizer.step(arguments=subsampled_arguments, **kwargs)
return deltas
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: reinforceio/tensorforce
Commit Name: a07d174b57d3be7914fc1ce172c87ea7d487d241
Time: 2020-04-20
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/optimizers/subsampling_step.py
Class Name: SubsamplingStep
Method Name: step
Project Name: cesium-ml/cesium
Commit Name: e547a82c24b37c157bc9b40d2724a7b1fd0a7b0f
Time: 2017-04-17
Author: brettnaul@gmail.com
File Name: cesium/featurize.py
Class Name:
Method Name: load_featureset
Project Name: matplotlib/matplotlib
Commit Name: 9c7f926d6d70a994c3710ce570bb9807519ef090
Time: 2019-01-17
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_agg.py
Class Name: FigureCanvasAgg
Method Name: print_png