Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

mlpclassifier check weights

GRID = [
    {'scaler': [StandardScaler()],
     'estimator': [MLPClassifier(random_state=RANDOM_SEED)],
     'estimator__solver': ['adam'],
     'estimator__learning_rate_init': [0.0001],
     'estimator__max_iter': [300],
     'estimator__hidden_layer_sizes': [(500, 400, 300, 200, 100), (400, 400, 400, 400, 400), (300, 300, 300, 300, 300), (200, 200, 200, 200, 200)],
     'estimator__activation': ['logistic', 'tanh', 'relu'],
     'estimator__alpha': [0.0001, 0.001, 0.005],
     'estimator__early_stopping': [True, False]
     }
]

PIPELINE = Pipeline([('scaler', None), ('estimator', MLPClassifier())])

grid_search = GridSearchCV(estimator=PIPELINE, param_grid=GRID, 
                            scoring=make_scorer(accuracy_score),# average='macro'), 
                            n_jobs=-1, cv=split, refit=True, verbose=1, 
                            return_train_score=False)

grid_search.fit(X, y)
Comment

PREVIOUS NEXT
Code Example
Python :: change y axis scale python 
Python :: benifits fo nested classes in python 
Python :: stackoverflow Django ForeignKey 
Python :: increase tkinter window resolution 
Python :: python advanced programs time 
Python :: python getting line length using list comprehension 
Python :: python using boolean len comparing with 
Python :: Source Code: Check Armstrong number (for 3 digits) 
Python :: the rest of steps in the link below 
Python :: hash tables in python 
Python :: frequency domain parameter of speech 
Python :: preventing players to make entry in the same block in a python tic tac toe game 
Python :: check two list python not match 
Python :: isat in panadas datframe 
Python :: pygame kreis definition 
Python :: make a copy for parsing dataframe python 
Python :: how to convert csv columns to text python 
Python :: jhon wick 
Python :: pyqt5 messagebox settext 
Python :: even number list generator 
Python :: Access the Response Methods and Attributes in python Show redirections 
Python :: how to print out voice level in python 
Python :: Python Raw string using r prefix 
Python :: encrypt 
Python :: how to save text file content to variable python 
Python :: python scatter matrix with regression line 
Python :: x and y in python 
Python :: how can i get the n values by space separated with condition in python 
Python :: function transformer and feature union 
Python :: pandas to csv if no already present 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =