2c7a2997c28d0be732e4157e924dce87bcf56236,ml/rl/training/ml_trainer.py,MLTrainer,build_predictor,#MLTrainer#Any#Any#Any#,207

Before Change


                workspace.FeedBlob(weight_name, weights)

    def build_predictor(self, model, input_blob, output_blob) -> List[str]:
        MakeForwardPassOps(
            model,
            "predictor",
            input_blob,
            output_blob,
            self.weights,
            self.biases,
            self.activations,
            self.layers,
            self.dropout_ratio,
            is_test=True
        )
        return self.weights + self.biases

After Change


            build_sgd(model, self.learning_rate)

    def build_predictor(self, model, input_blob, output_blob) -> List[str]:
        self.make_forward_pass_ops(model, input_blob, output_blob, is_test=True)
        return self.weights + self.biases
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: facebookresearch/Horizon
Commit Name: 2c7a2997c28d0be732e4157e924dce87bcf56236
Time: 2018-04-16
Author: jjg@fb.com
File Name: ml/rl/training/ml_trainer.py
Class Name: MLTrainer
Method Name: build_predictor


Project Name: facebookresearch/Horizon
Commit Name: 2c7a2997c28d0be732e4157e924dce87bcf56236
Time: 2018-04-16
Author: jjg@fb.com
File Name: ml/rl/training/discrete_action_trainer.py
Class Name: DiscreteActionTrainer
Method Name: update_model


Project Name: facebookresearch/Horizon
Commit Name: 2c7a2997c28d0be732e4157e924dce87bcf56236
Time: 2018-04-16
Author: jjg@fb.com
File Name: ml/rl/training/discrete_action_trainer.py
Class Name: DiscreteActionTrainer
Method Name: get_q_values_all_actions