faa98d0b036c3df399676ba2ffcde2df4c260330,packages/scikit-learn/examples/plot_linear_regression.py,,,#,12

Before Change


from sklearn.linear_model import LinearRegression


a = 0.5
b = 1.0

// x from 0 to 10
x = 30 * np.random.random(20)

// y = a*x + b with noise
y = a * x + b + np.random.normal(size=x.shape)

// create a linear regression classifier
clf = LinearRegression()
clf.fit(x[:, np.newaxis], y)

// predict y from the data
x_new = np.linspace(0, 30, 100)
y_new = clf.predict(x_new[:, np.newaxis])

After Change



// create a linear regression model
model = LinearRegression()
model.fit(x, y)

// predict y from the data
x_new = np.linspace(0, 30, 100)
y_new = model.predict(x_new[:, np.newaxis])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: scipy-lectures/scipy-lecture-notes
Commit Name: faa98d0b036c3df399676ba2ffcde2df4c260330
Time: 2017-09-03
Author: gael.varoquaux@normalesup.org
File Name: packages/scikit-learn/examples/plot_linear_regression.py
Class Name:
Method Name:


Project Name: cesium-ml/cesium
Commit Name: 5ebf7dfa3fb64ab4968ab84ff141705f6fdf7c54
Time: 2016-01-28
Author: a.crellinquick@gmail.com
File Name: mltsp/build_model.py
Class Name:
Method Name: fit_model_optimize_hyperparams


Project Name: hmmlearn/hmmlearn
Commit Name: 0747df111ecd9221b235aa4b970baaa766d44b2d
Time: 2015-04-22
Author: superbobry@gmail.com
File Name: hmmlearn/hmm.py
Class Name: GaussianHMM
Method Name: _init


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: d8472f4242e66f2a9117a131ded0f4b1d2fb7a92
Time: 2019-12-05
Author: g.lemaitre58@gmail.com
File Name: imblearn/ensemble/tests/test_forest.py
Class Name:
Method Name: test_balanced_random_forest_oob