f6c7f0d36f5326074f6796386006609e65c1f63f,examples/run.py,,,#,11

Before Change


                    help="The name of the algorithm to run.")
parser.add_argument("--train-episodes", type=int, default=100,
                    help="Number of train episodes.")
parser.add_argument("--test-episodes", type=int, default=10,
                    help="Number of test episodes.")
parser.add_argument("--gamma", type=float, default=0.9, help="Discount factor")
parser.add_argument("--action-regression", action="store_true",
                    help="If true, a separate regressor for each action"
                         "is used.")

After Change


initial_states = np.zeros((289, 2))
cont = 0
for i in range(-8, 9):
    for j in range(-8, 9):
        initial_states[cont, :] = [0.125 * i, 0.375 * j]
        cont += 1
print(np.mean(alg.evaluate(initial_states)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: AIRLab-POLIMI/mushroom
Commit Name: f6c7f0d36f5326074f6796386006609e65c1f63f
Time: 2017-03-15
Author: carlo.deramo@gmail.com
File Name: examples/run.py
Class Name:
Method Name:


Project Name: yahoo/TensorFlowOnSpark
Commit Name: 981e4266d4ea816b08a762193bd52f40cd1a3242
Time: 2019-08-07
Author: leewyang@verizonmedia.com
File Name: examples/mnist/mnist_data_setup.py
Class Name:
Method Name:


Project Name: apache/incubator-mxnet
Commit Name: dfa3d07a74e59297394c624a3373a335f94a64eb
Time: 2019-12-26
Author: xinyu1.chen@intel.com
File Name: example/neural_collaborative_filtering/ncf.py
Class Name:
Method Name: