ab0f3afc45ae2b53fee03be82f4cbc037f874222,ml/rl/evaluation/policy_evaluator.py,PolicyEvaluator,evaluate_slates,#PolicyEvaluator#Any#Any#Any#Any#,37

Before Change


                action_probabilities[action_selection[slate_index]]
            ips_denominator = baseline_probabilities[slate_index]
            value_sum += ips_numerator / ips_denominator
            logger.debug(
                "DETAILS",
                rewards[slate_index],
                action_probabilities[action_selection[slate_index]],
                ips_denominator,
                value_sum,
            )
        return value_sum / num_examples

After Change


        num_slates = len(slates)
        value_sum = 0.0
        for slate_index, slate in enumerate(slates):
            for name, value in slate.policy_net_features.items():
                workspace.FeedBlob(name, value)
            for model_name, model_input in slate.model_feature_set.items():
                value_input_model_params = self.value_input_models[model_name]
                print(model_input)
                for name, value in model_input.items():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: facebookresearch/Horizon
Commit Name: ab0f3afc45ae2b53fee03be82f4cbc037f874222
Time: 2018-05-09
Author: jjg@fb.com
File Name: ml/rl/evaluation/policy_evaluator.py
Class Name: PolicyEvaluator
Method Name: evaluate_slates


Project Name: home-assistant/home-assistant
Commit Name: 625319846c77b37a9f2a5ffcf8d3be311cd534fe
Time: 2016-10-03
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/homematic.py
Class Name:
Method Name: _get_devices


Project Name: pantsbuild/pants
Commit Name: 91d4af0d59877cdc19b76854f3c90ed0341a367e
Time: 2019-12-10
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/subsystems/pex_build_util.py
Class Name: PexBuilderWrapper
Method Name: add_resolved_requirements