ce5dbf57781e10fd0e0367008a76f91521b59651,moabb/evaluations/base.py,BaseEvaluation,__init__,#BaseEvaluation#,15

Before Change


        Init.
        
        if random_state is None:
            self.random_state = np.random.randint(0, 1000, 1)[0]
        self.n_jobs = n_jobs

    @abstractmethod

After Change


        if datasets is None:
            datasets = self.paradigm.datasets

        if not isinstance(datasets, list):
            if isinstance(datasets, BaseDataset):
                datasets = [datasets]
            else:
                raise(ValueError("datasets must be a list or a dataset "
                                 "instance"))

        for dataset in datasets:
            if not(isinstance(dataset, BaseDataset)):
                raise(ValueError("datasets must only contains dataset "
                                 "instance"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NeuroTechX/moabb
Commit Name: ce5dbf57781e10fd0e0367008a76f91521b59651
Time: 2018-03-07
Author: alexandre.barachant@gmail.com
File Name: moabb/evaluations/base.py
Class Name: BaseEvaluation
Method Name: __init__


Project Name: david-abel/simple_rl
Commit Name: 335d758f3348cb2b7a1e03cb8248dfde39f8c439
Time: 2018-08-23
Author: david_abel@brown.edu
File Name: simple_rl/abstraction/state_abs/sa_helpers.py
Class Name:
Method Name: visualize_state_abstr_grid


Project Name: lmcinnes/pynndescent
Commit Name: 56f63e1047d1e88cc0831bd14df519becd72e529
Time: 2020-09-01
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name: NNDescent
Method Name: query