anantgupta129 / Solar-Power-Generation-Forecasting

Prediction of Solar Power Generated by a power plant using artificial neural networks
Apache License 2.0
63 stars 28 forks source link

Unknown variable #2

Closed BabuKumaranNalini closed 3 years ago

BabuKumaranNalini commented 3 years ago

Could you please explain what is data in corr = data.corr() in line 234 in solarpower_generation_forecasting_ann.py?

anantgupta129 commented 3 years ago

data.corr() computes the correlation matrix in a data frame check out https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.corr.html for reference

BabuKumaranNalini commented 3 years ago

No, actually you do not have a variable named "data". If you run your code it is throwing an error at line 234 as the "data" variable is missing since you have not assinged it. I think it should have been "results.corr()" but then it is not showing the same heatmap plot as shown in your Github.

anantgupta129 commented 3 years ago

It's actually the original dataset it should be dts.corr() I might have renamed the variable and plotted it without noticing. I will update the code

BabuKumaranNalini commented 3 years ago

Thanks for helping. dts.corr() it is.