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

//////////////////////////////////////////////

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: 5

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: scikit-optimize/scikit-optimize
Commit Name: ab34a307714c29f891382586224074d1f4ba7f9a
Time: 2020-02-01
Author: holgernahrstaedt@gmx.de
File Name: skopt/tests/test_space.py
Class Name:
Method Name: test_normalize


Project Name: nl8590687/ASRT_SpeechRecognition
Commit Name: c621c0aeb96002bfc53e98eaad07af29532e1c55
Time: 2017-09-07
Author: 3210346136@qq.com
File Name: readdata.py
Class Name: DataSpeech
Method Name: data_genetator