f940ed909b1bb2b4e869abb9239d4f9b742c84a3,docs/api/regressor/alphas.py,,,#,9

Before Change


    y = df[target_name].as_matrix()

    // Create the train and test data
    X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)

    // Instantiate the linear model and visualizer
    lasso = Lasso()

After Change


    y = df[target_name].as_matrix()

    // Instantiate the linear model and visualizer
    alphas = np.logspace(-10, 1, 400)
    visualizer = AlphaSelection(LassoCV(alphas=alphas))

    visualizer.fit(X, y)
    g = visualizer.poof(outpath="images/alpha_selection.png")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: DistrictDataLabs/yellowbrick
Commit Name: f940ed909b1bb2b4e869abb9239d4f9b742c84a3
Time: 2018-03-22
Author: benjamin@bengfort.com
File Name: docs/api/regressor/alphas.py
Class Name:
Method Name:


Project Name: DistrictDataLabs/yellowbrick
Commit Name: 6aec0854756c7a91aee1f30da7a92ddb5e6fa4cb
Time: 2018-03-22
Author: benjamin@bengfort.com
File Name: docs/api/regressor/alphas.py
Class Name:
Method Name:


Project Name: mne-tools/mne-python
Commit Name: 017d156706984b88a524b146ec71415c65b42391
Time: 2019-05-14
Author: w.m.vanvliet@gmail.com
File Name: examples/inverse/plot_dics_source_power.py
Class Name:
Method Name: