c0a4a1f18cfb53b0deeb2c003b8e98ebab19fad8,examples/simple_q_agent.py,SimpleQModel,__init__,#SimpleQModel#Any#Any#,47

Before Change


            self.state = tf.placeholder(tf.float32, [None] + list(self.config.state_shape), name="state")

            // Create neural network
            output_layer = [{"type": "linear", "num_outputs": self.action_count}]

            define_network = NeuralNetwork.layered_network(self.config.network_layers + output_layer)
            self.network = NeuralNetwork(define_network, [self.state], scope=self.scope + "network")
            self.network_out = self.network.output

            // Create operations

After Change


        :param config: Config object or dict
        :param scope: tensorflow scope name
        
        config.default(SimpleQModel.default_config)
        self.action_count = config.actions["action"].num_actions
        self.gamma = config.gamma

        self.random = np.random.RandomState()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: reinforceio/tensorforce
Commit Name: c0a4a1f18cfb53b0deeb2c003b8e98ebab19fad8
Time: 2017-05-29
Author: fricke@elbsilber.de
File Name: examples/simple_q_agent.py
Class Name: SimpleQModel
Method Name: __init__


Project Name: HyperGAN/HyperGAN
Commit Name: e4fd7cb66ca799fcb11af9ec50ac778186d0a9d7
Time: 2017-06-03
Author: martyn@255bits.com
File Name: tests/discriminators/pyramid_discriminator_test.py
Class Name: PyramidDiscriminatorTest
Method Name: test_create


Project Name: HyperGAN/HyperGAN
Commit Name: cf1ec69f7c4290f9959b1d902d35ce6d72c48995
Time: 2020-08-22
Author: martyn@255bits.com
File Name: hypergan/train_hooks/adversarial_norm_train_hook.py
Class Name: AdversarialNormTrainHook
Method Name: __init__