Git Product home page Git Product logo

Comments (2)

kdgutier avatar kdgutier commented on July 26, 2024

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 Open In Colab .

Regarding your question, our code operates with Y_df with 'unique_id' and 'ds' columns DataFrame in long format.

Here is the pandas' stack documentation.

from n-hits.

vageeshmaiya avatar vageeshmaiya commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.