e8115b9d2ea60e3d7757f79fb028f778698f00fa,plasma/models/shallow_runner.py,FeatureExtractor,load_shot,#FeatureExtractor#Any#Any#,62
Before Change
Y = []
while(len(X) == 0):
for i in range(length-timesteps+1):
if np.random.rand() < sample_prob:
x,y = self.get_x_y(i,shot)
X.append(x)
Y.append(y)
After Change
np.savez(save_path,X=X,Y=Y,disr=disr)
//print(X.shape,Y.shape)
if sample_prob < 1.0:
indices = np.sort(np.random.choice(np.array(range(len(Y))),int(round(sample_prob*len(Y))),replace=False))
X = X[indices]
Y = Y[indices]
return X,Y,disr
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: PPPLDeepLearning/plasma-python
Commit Name: e8115b9d2ea60e3d7757f79fb028f778698f00fa
Time: 2017-05-31
Author: jk7@tigergpu.princeton.edu
File Name: plasma/models/shallow_runner.py
Class Name: FeatureExtractor
Method Name: load_shot
Project Name: elfi-dev/elfi
Commit Name: c6a451d21452516eb5b6ac17bf3d8310bbea7452
Time: 2016-11-10
Author: antti.kangasraasio@hiit.fi
File Name: tests/unit/test_core.py
Class Name: MockSimulator
Method Name: __call__
Project Name: rusty1s/pytorch_geometric
Commit Name: fab47fcca9887402f7474c80545311fcb952566f
Time: 2018-05-21
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/transform/random_translate.py
Class Name: RandomTranslate
Method Name: __call__
Project Name: dnouri/skorch
Commit Name: a7cd7a15a9baf741f2b4fcd32f3d8055827889b5
Time: 2017-08-08
Author: marian.tietz@ottogroup.com
File Name: examples/word_language_model/predict.py
Class Name:
Method Name: