def test_get_params():
 kwargs = {'population_size': 500, 'generations': 1000, 'verbosity': 1}
 tpot_obj = TPOTClassifier(**kwargs)
 initializer = inspect.getargspec(TPOTBase.__init__)
 default_kwargs = dict(zip(initializer.args[1:], initializer.defaults))
 default_kwargs.update(kwargs)
 assert (tpot_obj.get_params() == default_kwargs)

def test_get_params ( ) : kwargs = { 'population_size' : 500 , 'generations' : 1000 , 'verbosity' : 1 } tpot_obj = TPOTClassifier ( ** kwargs ) initializer = inspect . getargspec ( TPOTBase . __init__ ) default_kwargs = dict ( zip ( initializer . args [ 1 : ] , initializer . defaults ) ) default_kwargs . update ( kwargs ) assert ( tpot_obj . get_params ( ) == default_kwargs )
assert that get_params returns the exact dictionary of parameters used by tpot .