874382bfb96b92dcfdd6326ba83c54ad1e9d42f2,codes/2-basics_in_machine_learning/linear_regression/code/linear_regression.py,,,#,11

Before Change


// read the data from the .xls file.
book = xlrd.open_workbook(DATA_FILE, encoding_override="utf-8")
sheet = book.sheet_by_index(0)
data = np.asarray([sheet.row_values(i) for i in range(1, sheet.nrows)])
num_samples = sheet.nrows - 1

//////////////////////////////////////////////
//// Defining flags //////////

After Change


n = 50
XX = np.arange(n)
rs = check_random_state(0)
YY = rs.randint(-20, 20, size=(n,)) + 2.0 * XX
data = np.stack([XX,YY], axis=1)

//////////////////////////////////////////////
//// Defining flags //////////
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: astorfi/TensorFlow-World
Commit Name: 874382bfb96b92dcfdd6326ba83c54ad1e9d42f2
Time: 2017-06-26
Author: amirsina.torfi@gmail.com
File Name: codes/2-basics_in_machine_learning/linear_regression/code/linear_regression.py
Class Name:
Method Name:


Project Name: chainer/chainer
Commit Name: b85e17830cdbefd3bf70794b27274e9598c2ab74
Time: 2019-09-10
Author: nc.jky0@gmail.com
File Name: chainer/initializers/orthogonal.py
Class Name: Orthogonal
Method Name: __call__


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: d9f9dbe7361286219f77b52f842651c05c23b437
Time: 2020-07-06
Author: killian.levacher@ibm.com
File Name: tests/classifiersFrameworks/test_keras.py
Class Name:
Method Name: test_class_gradient