Comments (2)
Hi @vageeshmaiya,
If you want to try the method in your own data, I suggest to use the NeuralForecast library where we maintain it.
Here is an N-HiTS example .
Regarding your question, our code operates with Y_df
with 'unique_id' and 'ds' columns DataFrame in long format.
- Creates 'unique_id' list from DataFrame columns.
- Fancy and fast wide to long DataFrame transformation
Here is the pandas' stack documentation.
from n-hits.
Thank you @kdgutier for your reply.
I have one more question.
d3.csv
My custom dataset attached above has Voltage, Current, Charge Capacity as parameters.
When I select series_idx = 0 I get the folowing plots:
plot_for_d3_data.pdf
This is the code used to get the plot:
`fig, axs = plt.subplots(nrows=3, ncols=1, figsize=(10, 11))
fig.tight_layout()
series = ['Voltage','Current','Charge Capacity']
series_idx = 0
for idx, w_idx in enumerate([200, 300, 400]):
axs[idx].plot(y_true[w_idx,series_idx,:],label='True')
axs[idx].plot(y_hat[w_idx,series_idx,:],label='Forecast')
axs[idx].grid()
axs[idx].set_ylabel(series[series_idx]+f' window {w_idx}',
fontsize=17)
if idx==2:
axs[idx].set_xlabel('Forecast Horizon', fontsize=17)
plt.legend()
#plt.savefig('plot_for_d3_data.pdf',bbox_inches='tight')
plt.show()
plt.close()`
My understanding is that for series_idx = 0 the plots obtained should be for the parameter voltage. But in this case it is not so.
d3_v.csv
I have also run the code with just Voltage as the parameter (dataset attached above), and have got this plot:
plot_for_d3_v_data.pdf
Could you please provide some insight on the plotting mechanism.
Thank you.
from n-hits.
Related Issues (15)
- About your data processing + final result HOT 2
- Is backcast interpolated?
- About training procedures and doc HOT 2
- different settings (nhits vs. autoformer) HOT 2
- Clarification regarding data normalization
- what is the file 'hyperopt' ? HOT 1
- Clarification regarding implementation HOT 1
- Question on n_time_in HOT 1
- Follow up to "change-in-level" forecast
- I can't see the model's detail in the code HOT 7
- Reproducing Results HOT 3
- I am confuse about this line : n_theta = (input_size + max(h//n_freq_downsample[i], 1) ) HOT 1
- /
- How to make multivariate forecasting?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from n-hits.