2b40f6648331576b82b0b224fa7fbb4fbe936e00,tensorforce/core/explorations/epsilon_anneal.py,EpsilonAnneal,__call__,#EpsilonAnneal#Any#Any#,30

Before Change


        if timestep < self.start_after:
            return self.epsilon

        offset = self.start_after

        self.epsilon = min(self.epsilon, max(
            self.epsilon_final,
            1.0 - (timestep - offset) / (self.epsilon_timesteps - offset)
        ))

        return self.epsilon

After Change


            return self.epsilon_final

        else:
            completed_ratio = (timestep - self.timestep_start) / self.timesteps
            return self.epsilon_start + completed_ratio * (self.epsilon_final - self.epsilon_start)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 7

Instances


Project Name: reinforceio/tensorforce
Commit Name: 2b40f6648331576b82b0b224fa7fbb4fbe936e00
Time: 2017-11-11
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/core/explorations/epsilon_anneal.py
Class Name: EpsilonAnneal
Method Name: __call__


Project Name: pfnet/optuna
Commit Name: 26453d58671e01410b22287a723f76d6bb98803f
Time: 2020-05-11
Author: ytsmiling@gmail.com
File Name: optuna/storages/in_memory.py
Class Name: InMemoryStorage
Method Name: get_all_study_summaries


Project Name: jhfjhfj1/autokeras
Commit Name: 854a2bcc7697f205ed1995c66b425b245b3b9e8d
Time: 2019-03-27
Author: 45730028+yufei-12@users.noreply.github.com
File Name: autokeras/preprocessor.py
Class Name: TextDataTransformer
Method Name: transform_test


Project Name: pfnet/optuna
Commit Name: d5d2a849496362535ceaeef92aff9bec4e2edeba
Time: 2020-04-30
Author: ytsmiling@gmail.com
File Name: optuna/storages/in_memory.py
Class Name: InMemoryStorage
Method Name: get_all_study_summaries