f4cd388569dca52e0af7b4a0d83cd87072be6c76,examples/neural_networks/plot_mlp_alpha.py,,,#,18

Before Change


// iterate over datasets
for X, y in datasets:
    // preprocess dataset, split into training and test part
    X = StandardScaler().fit_transform(X)
    X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=.4)

    x_min, x_max = X[:, 0].min() - .5, X[:, 0].max() + .5
    y_min, y_max = X[:, 1].min() - .5, X[:, 1].max() + .5

After Change


alphas = np.logspace(-1, 1, 5)

classifiers = []
names = []
for alpha in alphas:
    classifiers.append(make_pipeline(
        StandardScaler(),
        MLPClassifier(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-learn/scikit-learn
Commit Name: f4cd388569dca52e0af7b4a0d83cd87072be6c76
Time: 2020-07-10
Author: g.lemaitre58@gmail.com
File Name: examples/neural_networks/plot_mlp_alpha.py
Class Name:
Method Name:


Project Name: scikit-learn/scikit-learn
Commit Name: 6f33c5ccb42043c28d390f5ff08cff9317060bc8
Time: 2020-05-26
Author: jliu176@gmail.com
File Name: sklearn/neural_network/tests/test_mlp.py
Class Name:
Method Name:


Project Name: glm-tools/pyglmnet
Commit Name: 0ce5a2bed019cd81f88a1c9c4b5eaeff971383e7
Time: 2018-08-27
Author: mainakjas@gmail.com
File Name: tests/test_pyglmnet.py
Class Name:
Method Name: test_glmnet