Random Search

With Random Search PHOTONAI optimizes randomly over the full hyperparameter space with only considering type and limit of the hyperparmeter. The search ends after defined time or n_configurations each outer fold.

To enable Random Search in your Hyperpipe just add it as shown here:

       
my_pipe = Hyperpipe('RS_pipeline',
                    optimizer='random_search',
                    optimizer_params={'n_configurations': 25,
                                      'limit_in_minutes': 30
                                     },
                    ...
                    )

       

Set: optimizer = 'random_search'

Parameter Type Description
n_configurations int Number of configurations to test in every outer_fold. Default is set to 25.
limit_in_minutes number Time in minutes to test configurations each outer_fold. Default is set to 60.