chanelcolgate / hydroelectric-project

0 stars 0 forks source link

Thuy van du bao - Feature engineering #5

Open chanelcolgate opened 3 years ago

chanelcolgate commented 3 years ago

Description

df['Day sin'] = np.sin(timestamp_s (2 np.pi / day)) df['Day cos'] = np.cos(timestamp_s (2 np.pi / day)) df['Year sin'] = np.sin(timestamp_s (2 np.pi / year)) df['Year cos'] = np.cos(timestamp_s (2 np.pi / year))

#### Estimate
#### Tests
- Đối với thời gian
```python
plt.plot(np.array(df['Day sin'])[:25])
plt.plot(np.array(df['Day cos'])[:25])
plt.xlabel('Time [h]')
plt.title('Time of day signal')

image