535ca090eb4d780169494c1c17eaaba8005bcecc,catalyst/rl/offpolicy/exploration/exploration.py,ExplorationHandler,__init__,#ExplorationHandler#,7

Before Change


    def __init__(self, **params):
        from catalyst.contrib.registry import Registry

        config_ = params.copy()
        self.strategies: List[ExplorationStrategy] = []
        self.probs = []

        for key, expl in config_.items():

After Change



        for params_ in params:
            exploration_name = params_.pop("exploration")
            probability = params_.pop("probability")
            strategy_fn = EXPLORATION.get(exploration_name)

            if issubclass(strategy_fn, EpsilonGreedy):
                assert isinstance(env.action_space, Discrete)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: Scitator/catalyst
Commit Name: 535ca090eb4d780169494c1c17eaaba8005bcecc
Time: 2019-04-14
Author: scitator@gmail.com
File Name: catalyst/rl/offpolicy/exploration/exploration.py
Class Name: ExplorationHandler
Method Name: __init__


Project Name: deepmipt/DeepPavlov
Commit Name: 0a01df9bdc0bd142eff95a1c878947047194d617
Time: 2018-03-16
Author: ol.gure@gmail.com
File Name: deeppavlov/core/commands/train.py
Class Name:
Method Name: train_model_from_config


Project Name: pantsbuild/pants
Commit Name: a1696c815774552ee14e8df30f5636bb97c2b9e9
Time: 2018-07-13
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/tasks/wrapped_pex.py
Class Name: WrappedPEX
Method Name: run


Project Name: MolSSI/QCEngine
Commit Name: dc8e7be317c72866c265565de064e53983fa895e
Time: 2019-02-26
Author: malorian@me.com
File Name: qcengine/compute.py
Class Name:
Method Name: compute