f97790bcf4aba7b4efc713af567bbd5e6f1af57e,poutyne/framework/experiment.py,Experiment,test,#Experiment#Any#,340

Before Change


        if seed is not None:
            // Make training deterministic.
            random.seed(seed)
            np.random.seed(seed)
            torch.manual_seed(seed)

        best_epoch_stats = None
        if load_best_checkpoint:

After Change


        Returns:
            dict sorting of all the test metrics values by their names.
        
        set_seeds(seed)

        best_epoch_stats = self.load_checkpoint(checkpoint)

        test_loss, test_metrics = self.model.evaluate_generator(test_generator, steps=steps)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GRAAL-Research/pytoune
Commit Name: f97790bcf4aba7b4efc713af567bbd5e6f1af57e
Time: 2019-09-27
Author: 39306007+TortillasAlfred@users.noreply.github.com
File Name: poutyne/framework/experiment.py
Class Name: Experiment
Method Name: test


Project Name: bethgelab/foolbox
Commit Name: fa60aa14ce6b8253649aaf3535c3471b887be13d
Time: 2018-10-23
Author: git@jonasrauber.de
File Name: foolbox/tests/test_model_wrappers.py
Class Name:
Method Name: test_estimate_gradient_wrapper


Project Name: GRAAL-Research/pytoune
Commit Name: f97790bcf4aba7b4efc713af567bbd5e6f1af57e
Time: 2019-09-27
Author: 39306007+TortillasAlfred@users.noreply.github.com
File Name: poutyne/framework/experiment.py
Class Name: Experiment
Method Name: train