hjkkkl / machine-learning

0 stars 0 forks source link

112p #1

Open hjkkkl opened 7 hours ago

hjkkkl commented 7 hours 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)