Module Expr Str Import alias Import alias Import alias identifier ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore ListLoad Str Str Str Assign NameStore Call NameLoad keyword Num Assign NameStore Call AttributeLoad Call NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore Call NameLoad keyword Num Assign NameStore Call AttributeLoad Call NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore ListLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore SubscriptLoad Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr Slice Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num FunctionDef arguments args defaults body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num For NameStore Call NameLoad BinOpSub Call NameLoad NameLoad Num body Assert Call AttributeLoad CompareGt SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword Str keyword Num keyword Num keyword Num keyword Num Assign AttributeStore NameLoad attr BinOpMult ListLoad Num Num Assign AttributeStore NameLoad attr BinOpMult ListLoad Num Num Assign AttributeStore NameLoad attr ListLoad Num Num Assign AttributeStore NameLoad attr Num Assign SubscriptStore AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num Assign SubscriptStore AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr ListLoad Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr ListLoad Num Assign AttributeStore NameLoad attr BinOpMult ListLoad Num Assign AttributeStore NameLoad attr BinOpMult ListLoad Num Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr BinOpMult ListLoad Num BinOpSub AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpMult ListLoad Num BinOpSub AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword ListLoad Num Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num keyword Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num keyword Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr ListLoad Num Num keyword Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr Num keyword Num Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num keyword Num decorator_list FunctionDef arguments args defaults body For NameStore ListLoad Num Num body Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Assign NameStore BinOpAdd Num Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr NameLoad Num NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Str keyword Num keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Num ListLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad BinOpSub AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Assign ListStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body Assign NameStore BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpDiv BinOpSub SubscriptLoad Call NameLoad BinOpAdd NameLoad NameLoad Index Num SubscriptLoad Call NameLoad BinOpSub NameLoad NameLoad Index Num BinOpMult NameLoad Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body For TupleStore NameStore NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Num Expr Call NameLoad TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore NameLoad Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore ListLoad Num Num Num Num For NameStore ListLoad Str Str body Assign NameStore Call NameLoad keyword Str keyword Num keyword NameLoad keyword Num keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad Str body Expr Call NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call NameLoad BinOpDiv AttributeLoad NameLoad attr Call NameLoad BinOpAdd Num Num AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword Num keyword Num keyword Str keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword Num keyword Str keyword Num keyword Num For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword ListLoad Num Num Num Num Num Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num Assign NameStore ListLoad Num Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword ListLoad Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad keyword ListLoad Num Num decorator_list FunctionDef arguments args defaults body For TupleStore NameStore NameStore NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword Num For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore NameLoad Assign NameStore NameLoad For NameStore ListLoad Num Num body Assign NameStore Call NameLoad keyword Str keyword Num keyword Str keyword Num keyword Num keyword SubscriptLoad AttributeLoad NameLoad attr Index Num keyword NameLoad With Call AttributeLoad NameLoad attr keyword NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword Str keyword Str keyword Num keyword Num keyword SubscriptLoad AttributeLoad NameLoad attr Index Num keyword NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore ListLoad Num Num Expr Call NameLoad NameLoad AttributeLoad Call NameLoad keyword Str attr NameLoad NameLoad keyword ListLoad Num Expr Call NameLoad Call NameLoad Call NameLoad keyword Str Str decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore ListLoad Num Num Assign NameStore NameLoad Expr Call NameLoad NameLoad AttributeLoad Call NameLoad keyword Num attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad Call NameLoad keyword Num attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad Call NameLoad keyword Str attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad Call NameLoad keyword Num attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad Call NameLoad keyword Num attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad Call NameLoad keyword Str attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad Call NameLoad keyword Str attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad Call NameLoad keyword Str attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore ListLoad Num Num Assign NameStore Call NameLoad keyword Num keyword Num keyword Str keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore ListLoad Num Num Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword Num Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assert CompareIn Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad NameLoad NameLoad Expr Call NameLoad BinOpAdd NameLoad NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad BinOpAdd NameLoad NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore ListLoad Num Num Assign NameStore Call NameLoad keyword Num keyword Num keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list
N/A N/A 
Testing for Multi-layer Perceptron module (sklearn.neural_network)
 N/A sys N/A warnings N/A numpy np numpy.testing assert_almost_equal assert_array_equal sklearn.datasets load_digits load_boston sklearn.datasets make_regression make_multilabel_classification sklearn.externals.six.moves cStringIO StringIO sklearn.metrics roc_auc_score sklearn.neural_network MLPClassifier sklearn.neural_network MLPRegressor sklearn.preprocessing LabelBinarizer sklearn.preprocessing StandardScaler MinMaxScaler scipy.sparse csr_matrix sklearn.utils.testing assert_raises assert_greater assert_equal assert_false N/A N/A N/A np seterr all warn N/A ACTIVATION_TYPES N/A logistic tanh relu N/A digits_dataset_multi N/A load_digits n_class 3 N/A X_digits_multi N/A N/A N/A MinMaxScaler fit_transform N/A N/A digits_dataset_multi data N/A 200 N/A y_digits_multi N/A N/A digits_dataset_multi target N/A 200 N/A digits_dataset_binary N/A load_digits n_class 2 N/A X_digits_binary N/A N/A N/A MinMaxScaler fit_transform N/A N/A digits_dataset_binary data N/A 200 N/A y_digits_binary N/A N/A digits_dataset_binary target N/A 200 N/A classification_datasets N/A N/A X_digits_multi y_digits_multi N/A X_digits_binary y_digits_binary N/A boston N/A load_boston N/A Xboston N/A N/A N/A N/A StandardScaler fit_transform N/A boston data N/A 200 N/A yboston N/A N/A boston target N/A 200 test_alpha N/A N/A N/A N/A N/A X N/A X_digits_binary N/A 100 N/A y N/A y_digits_binary N/A 100 N/A alpha_vectors N/A N/A alpha_values N/A N/A np arange 2 N/A absolute_sum N/A N/A N/A x N/A N/A N/A np sum N/A N/A np abs x N/A alpha alpha_values N/A N/A mlp N/A MLPClassifier hidden_layer_sizes 10 alpha alpha random_state 1 N/A N/A N/A mlp fit X y N/A N/A N/A alpha_vectors append N/A N/A np array N/A N/A absolute_sum N/A N/A mlp coefs_ N/A 0 N/A absolute_sum N/A N/A mlp coefs_ N/A 1 N/A i N/A range N/A N/A len alpha_values 1 N/A N/A N/A N/A N/A N/A alpha_vectors N/A i N/A alpha_vectors N/A N/A i 1 all N/A test_fit N/A N/A N/A N/A N/A X N/A N/A np array N/A N/A 0.6 0.8 0.7 N/A y N/A N/A np array N/A 0 N/A mlp N/A MLPClassifier algorithm sgd learning_rate_init 0.1 alpha 0.1 activation logistic random_state 1 max_iter 1 hidden_layer_sizes 2 momentum 0 N/A N/A mlp coefs_ N/A N/A 0 2 N/A N/A mlp intercepts_ N/A N/A 0 2 N/A N/A mlp classes_ N/A 0 1 N/A N/A mlp n_outputs_ 1 N/A N/A N/A mlp coefs_ N/A 0 N/A N/A np array N/A N/A 0.1 0.2 N/A 0.3 0.1 N/A 0.5 0 N/A N/A N/A mlp coefs_ N/A 1 N/A N/A np array N/A N/A 0.1 N/A 0.2 N/A N/A N/A mlp intercepts_ N/A 0 N/A N/A np array N/A 0.1 0.1 N/A N/A N/A mlp intercepts_ N/A 1 N/A N/A np array N/A 1.0 N/A N/A mlp _coef_grads N/A N/A 2 N/A N/A mlp _intercept_grads N/A N/A 2 N/A N/A N/A mlp label_binarizer_ y_type_ binary N/A N/A mlp n_iter_ 0 N/A N/A mlp learning_rate_ 0.1 N/A N/A mlp n_layers_ 3 N/A N/A mlp _coef_grads N/A N/A 0 N/A N/A mlp n_layers_ 1 N/A N/A mlp _intercept_grads N/A N/A 0 N/A N/A mlp n_layers_ 1 N/A N/A mlp out_activation_ logistic N/A N/A mlp t_ 0 N/A N/A mlp best_loss_ N/A np inf N/A N/A mlp loss_curve_ N/A N/A N/A mlp _no_improvement_count 0 N/A N/A mlp _intercept_velocity N/A N/A N/A np zeros_like intercepts N/A intercepts N/A mlp intercepts_ N/A N/A mlp _coef_velocity N/A N/A N/A np zeros_like coefs N/A coefs N/A mlp coefs_ N/A N/A N/A mlp partial_fit X y classes N/A 0 1 N/A N/A assert_almost_equal N/A N/A mlp coefs_ N/A 0 N/A N/A np array N/A N/A 0.098 0.195756 N/A 0.2956664 0.096008 N/A 0.4939998 -0.002244 decimal 3 N/A N/A assert_almost_equal N/A N/A mlp coefs_ N/A 1 N/A N/A np array N/A N/A 0.04706 N/A 0.154089 decimal 3 N/A N/A assert_almost_equal N/A N/A mlp intercepts_ N/A 0 N/A N/A np array N/A 0.098333 0.09626 decimal 3 N/A N/A assert_almost_equal N/A N/A mlp intercepts_ N/A 1 N/A N/A np array 0.9235 decimal 3 N/A N/A assert_almost_equal N/A N/A mlp decision_function X 1.043 decimal 3 N/A test_gradient N/A N/A N/A N/A N/A n_labels N/A 2 3 N/A N/A n_samples 5 N/A n_features 10 N/A X N/A N/A N/A np random random N/A n_samples n_features N/A y N/A 1 N/A N/A np mod N/A N/A N/A np arange n_samples 1 n_labels N/A Y N/A N/A N/A LabelBinarizer fit_transform y N/A activation ACTIVATION_TYPES N/A N/A mlp N/A MLPClassifier activation activation hidden_layer_sizes 10 algorithm l-bfgs alpha 1e-05 learning_rate_init 0.2 max_iter 1 random_state 1 N/A N/A N/A mlp fit X y N/A theta N/A N/A np hstack N/A N/A N/A l ravel N/A l N/A N/A mlp coefs_ N/A mlp intercepts_ N/A layer_units N/A N/A N/A N/A N/A X shape N/A 1 N/A N/A mlp hidden_layer_sizes N/A N/A mlp n_outputs_ N/A activations N/A N/A deltas N/A N/A coef_grads N/A N/A intercept_grads N/A N/A N/A N/A activations append X N/A i N/A range N/A N/A mlp n_layers_ 1 N/A N/A N/A N/A activations append N/A N/A np empty N/A N/A N/A X shape N/A 0 N/A layer_units N/A N/A i 1 N/A N/A N/A deltas append N/A N/A np empty N/A N/A N/A X shape N/A 0 N/A layer_units N/A N/A i 1 N/A fan_in N/A layer_units N/A i N/A fan_out N/A layer_units N/A N/A i 1 N/A N/A N/A coef_grads append N/A N/A np empty N/A fan_in fan_out N/A N/A N/A intercept_grads append N/A N/A np empty fan_out loss_grad_fun N/A N/A t N/A N/A N/A N/A N/A mlp _loss_grad_lbfgs t X Y activations deltas coef_grads intercept_grads N/A N/A N/A value grad N/A loss_grad_fun theta N/A numgrad N/A N/A np zeros N/A N/A np size theta N/A n N/A N/A np size theta 0 N/A E N/A N/A np eye n N/A epsilon 1e-05 N/A i N/A range n N/A N/A dtheta N/A N/A E N/A N/A N/A i epsilon N/A N/A numgrad N/A i N/A N/A N/A N/A loss_grad_fun N/A theta dtheta N/A 0 N/A N/A loss_grad_fun N/A theta dtheta N/A 0 N/A epsilon 2.0 N/A N/A assert_almost_equal numgrad grad N/A test_lbfgs_classification N/A N/A N/A N/A N/A N/A X y classification_datasets N/A N/A X_train N/A X N/A 150 N/A y_train N/A y N/A 150 N/A X_test N/A X N/A 150 N/A expected_shape_dtype N/A N/A N/A X_test shape N/A 0 N/A N/A y_train dtype kind N/A activation ACTIVATION_TYPES N/A N/A mlp N/A MLPClassifier algorithm l-bfgs hidden_layer_sizes 50 max_iter 150 shuffle True random_state 1 activation activation N/A N/A N/A mlp fit X_train y_train N/A y_predict N/A N/A mlp predict X_test N/A N/A assert_greater N/A N/A mlp score X_train y_train 0.95 N/A N/A assert_equal N/A N/A N/A y_predict shape N/A 0 N/A N/A y_predict dtype kind expected_shape_dtype N/A test_lbfgs_regression N/A N/A N/A N/A N/A X Xboston N/A y yboston N/A activation ACTIVATION_TYPES N/A N/A mlp N/A MLPRegressor algorithm l-bfgs hidden_layer_sizes 50 max_iter 150 shuffle True random_state 1 activation activation N/A N/A N/A mlp fit X y N/A N/A assert_greater N/A N/A mlp score X y 0.95 N/A test_learning_rate_warmstart N/A N/A N/A N/A N/A X N/A N/A 3 2 N/A 1 6 N/A 5 6 N/A -2 -4 N/A y N/A 1 1 1 0 N/A learning_rate N/A invscaling constant N/A N/A mlp N/A MLPClassifier algorithm sgd hidden_layer_sizes 4 learning_rate learning_rate max_iter 1 power_t 0.25 warm_start True N/A N/A N/A mlp fit X y N/A prev_eta N/A N/A mlp _optimizer learning_rate N/A N/A N/A mlp fit X y N/A post_eta N/A N/A mlp _optimizer learning_rate N/A N/A learning_rate constant N/A N/A N/A assert_equal prev_eta post_eta N/A N/A N/A learning_rate invscaling N/A N/A N/A assert_equal N/A N/A mlp learning_rate_init N/A pow N/A 8 1 N/A mlp power_t post_eta N/A test_multilabel_classification N/A N/A N/A N/A N/A N/A X y N/A make_multilabel_classification n_samples 50 random_state 0 return_indicator True N/A mlp N/A MLPClassifier algorithm l-bfgs hidden_layer_sizes 50 alpha 1e-05 max_iter 150 random_state 0 activation logistic learning_rate_init 0.2 N/A N/A N/A mlp fit X y N/A N/A assert_equal N/A N/A mlp score X y 1 N/A mlp N/A MLPClassifier algorithm sgd hidden_layer_sizes 50 max_iter 150 random_state 0 activation logistic alpha 1e-05 learning_rate_init 0.2 N/A i N/A range 100 N/A N/A N/A N/A mlp partial_fit X y classes N/A 0 1 2 3 4 N/A N/A assert_greater N/A N/A mlp score X y 0.9 N/A test_multioutput_regression N/A N/A N/A N/A N/A N/A X y N/A make_regression n_samples 200 n_targets 5 N/A mlp N/A MLPRegressor algorithm l-bfgs hidden_layer_sizes 50 max_iter 200 random_state 1 N/A N/A N/A mlp fit X y N/A N/A assert_greater N/A N/A mlp score X y 0.9 N/A test_partial_fit_classes_error N/A N/A N/A N/A N/A X N/A N/A 3 2 N/A y N/A 0 N/A clf N/A MLPClassifier algorithm sgd N/A N/A N/A clf partial_fit X y classes N/A 0 1 N/A N/A assert_raises ValueError N/A clf partial_fit X y classes N/A 1 2 N/A test_partial_fit_classification N/A N/A N/A N/A N/A N/A X y classification_datasets N/A N/A X X N/A y y N/A mlp N/A MLPClassifier algorithm sgd max_iter 100 random_state 1 tol 0 alpha 1e-05 learning_rate_init 0.2 N/A N/A N/A mlp fit X y N/A pred1 N/A N/A mlp predict X N/A mlp N/A MLPClassifier algorithm sgd random_state 1 alpha 1e-05 learning_rate_init 0.2 N/A i N/A range 100 N/A N/A N/A N/A mlp partial_fit X y classes N/A N/A np unique y N/A pred2 N/A N/A mlp predict X N/A N/A assert_array_equal pred1 pred2 N/A N/A assert_greater N/A N/A mlp score X y 0.95 N/A test_partial_fit_regression N/A N/A N/A N/A N/A X Xboston N/A y yboston N/A momentum N/A 0 0.9 N/A N/A mlp N/A MLPRegressor algorithm sgd max_iter 100 activation relu random_state 1 learning_rate_init 0.01 batch_size N/A N/A X shape N/A 0 momentum momentum N/A N/A N/A warnings catch_warnings record True N/A N/A N/A N/A mlp fit X y N/A pred1 N/A N/A mlp predict X N/A mlp N/A MLPRegressor algorithm sgd activation relu learning_rate_init 0.01 random_state 1 batch_size N/A N/A X shape N/A 0 momentum momentum N/A i N/A range 100 N/A N/A N/A N/A mlp partial_fit X y N/A pred2 N/A N/A mlp predict X N/A N/A assert_almost_equal pred1 pred2 decimal 2 N/A score N/A N/A mlp score X y N/A N/A assert_greater score 0.75 N/A test_partial_fit_errors N/A N/A N/A N/A N/A X N/A N/A 3 2 N/A 1 6 N/A y N/A 1 0 N/A N/A assert_raises ValueError N/A N/A MLPClassifier algorithm sgd partial_fit X y classes N/A 2 N/A N/A assert_false N/A hasattr N/A MLPClassifier algorithm l-bfgs partial_fit N/A test_params_errors N/A N/A N/A N/A N/A X N/A N/A 3 2 N/A 1 6 N/A y N/A 1 0 N/A clf MLPClassifier N/A N/A assert_raises ValueError N/A N/A clf hidden_layer_sizes -1 fit X y N/A N/A assert_raises ValueError N/A N/A clf max_iter -1 fit X y N/A N/A assert_raises ValueError N/A N/A clf shuffle true fit X y N/A N/A assert_raises ValueError N/A N/A clf alpha -1 fit X y N/A N/A assert_raises ValueError N/A N/A clf learning_rate_init -1 fit X y N/A N/A assert_raises ValueError N/A N/A clf algorithm hadoken fit X y N/A N/A assert_raises ValueError N/A N/A clf learning_rate converge fit X y N/A N/A assert_raises ValueError N/A N/A clf activation cloak fit X y N/A test_predict_proba_binary N/A N/A N/A N/A N/A X N/A X_digits_binary N/A 50 N/A y N/A y_digits_binary N/A 50 N/A clf N/A MLPClassifier hidden_layer_sizes 5 N/A N/A N/A clf fit X y N/A y_proba N/A N/A clf predict_proba X N/A y_log_proba N/A N/A clf predict_log_proba X N/A N/A n_samples n_classes N/A N/A N/A y shape N/A 0 2 N/A proba_max N/A N/A y_proba argmax axis 1 N/A proba_log_max N/A N/A y_log_proba argmax axis 1 N/A N/A assert_equal N/A y_proba shape N/A n_samples n_classes N/A N/A assert_array_equal proba_max proba_log_max N/A N/A assert_array_equal y_log_proba N/A N/A np log y_proba N/A N/A assert_equal N/A roc_auc_score y N/A y_proba N/A N/A N/A 1 1.0 N/A test_predict_proba_multi N/A N/A N/A N/A N/A X N/A X_digits_multi N/A 10 N/A y N/A y_digits_multi N/A 10 N/A clf N/A MLPClassifier hidden_layer_sizes 5 N/A N/A N/A clf fit X y N/A y_proba N/A N/A clf predict_proba X N/A y_log_proba N/A N/A clf predict_log_proba X N/A N/A n_samples n_classes N/A N/A N/A y shape N/A 0 N/A N/A N/A np unique y size N/A proba_max N/A N/A y_proba argmax axis 1 N/A proba_log_max N/A N/A y_log_proba argmax axis 1 N/A N/A assert_equal N/A y_proba shape N/A n_samples n_classes N/A N/A assert_array_equal proba_max proba_log_max N/A N/A assert_array_equal y_log_proba N/A N/A np log y_proba N/A test_sparse_matrices N/A N/A N/A N/A N/A X N/A X_digits_binary N/A 50 N/A y N/A y_digits_binary N/A 50 N/A X_sparse N/A csr_matrix X N/A mlp N/A MLPClassifier random_state 1 hidden_layer_sizes 15 N/A N/A N/A mlp fit X y N/A pred1 N/A N/A mlp decision_function X N/A N/A N/A mlp fit X_sparse y N/A pred2 N/A N/A mlp decision_function X_sparse N/A N/A assert_almost_equal pred1 pred2 N/A pred1 N/A N/A mlp predict X N/A pred2 N/A N/A mlp predict X_sparse N/A N/A assert_array_equal pred1 pred2 N/A test_tolerance N/A N/A N/A N/A N/A X N/A N/A 3 2 N/A 1 6 N/A y N/A 1 0 N/A clf N/A MLPClassifier tol 0.5 max_iter 3000 algorithm sgd verbose 10 N/A N/A N/A clf fit X y N/A N/A assert_greater N/A clf max_iter N/A clf n_iter_ N/A test_verbose_sgd N/A N/A N/A N/A N/A X N/A N/A 3 2 N/A 1 6 N/A y N/A 1 0 N/A clf N/A MLPClassifier algorithm sgd max_iter 2 verbose 10 hidden_layer_sizes 2 N/A old_stdout N/A sys stdout N/A N/A sys stdout output N/A StringIO N/A N/A N/A clf fit X y N/A N/A N/A clf partial_fit X y N/A N/A sys stdout old_stdout N/A N/A Iteration N/A N/A output getvalue N/A test_early_stopping N/A N/A N/A N/A N/A X N/A X_digits_binary N/A 100 N/A y N/A y_digits_binary N/A 100 N/A tol 0.2 N/A clf N/A MLPClassifier tol tol max_iter 3000 algorithm sgd early_stopping True N/A N/A N/A clf fit X y N/A N/A assert_greater N/A clf max_iter N/A clf n_iter_ N/A valid_scores N/A clf validation_scores_ N/A best_valid_score N/A clf best_validation_score_ N/A N/A assert_equal N/A max valid_scores best_valid_score N/A N/A assert_greater N/A best_valid_score tol N/A valid_scores N/A -2 N/A N/A assert_greater N/A best_valid_score tol N/A valid_scores N/A -1 N/A test_adaptive_learning_rate N/A N/A N/A N/A N/A X N/A N/A 3 2 N/A 1 6 N/A y N/A 1 0 N/A clf N/A MLPClassifier tol 0.5 max_iter 3000 algorithm sgd learning_rate adaptive verbose 10 N/A N/A N/A clf fit X y N/A N/A assert_greater N/A clf max_iter N/A clf n_iter_ N/A N/A assert_greater 1e-06 N/A N/A clf _optimizer learning_rate N/A