Open hjkkkl opened 1 month ago
112p
data_home = 'https://github.com/dknife/ML/raw/main/data/' lin_data = pd.read_csv(data_home+'pollution.csv')
x = lin_data['input'].to_numpy() y = lin_data['pollution'].tonumpy() x = x[:, np.newaxis] x = np.c[np.ones((100, 1)), x] print(x)
112p
data_home = 'https://github.com/dknife/ML/raw/main/data/' lin_data = pd.read_csv(data_home+'pollution.csv')
x = lin_data['input'].to_numpy() y = lin_data['pollution'].tonumpy() x = x[:, np.newaxis] x = np.c[np.ones((100, 1)), x] print(x)