#NEWLINE# def fit( self , X , y = None ) : #NEWLINE# #INDENT# 'Run fit on the estimator with randomly drawn parameters.\n\n        Parameters\n        ----------\n        X : array-like, shape = [n_samples, n_features]\n            Training vector, where n_samples in the number of samples and\n            n_features is the number of features.\n\n        y : array-like, shape = [n_samples] or [n_samples, n_output], optional\n            Target relative to X for classification or regression;\n            None for unsupervised learning.\n\n        ' #NEWLINE# sampled_params = ParameterSampler ( self . param_distributions , self . n_iter , random_state = self . random_state ) #NEWLINE# return self . _fit ( X , y , sampled_params )