-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error #1191
Comments
the plot function should be revised. now that the result has been obtained, plotting fig is easy. |
""" This script reads data from df_result_ensemble and df_dji, merges them, and visualizes the comparison. import necessary packagesimport pandas as pd Load df_result_ensemble data from the CSV filedf_result_ensemble = pd.read_csv( load df_dji data from csvdf_dji = pd.read_csv(os.path.join(DATA_SAVE_DIR, "df_dji.csv"), index_col="date") Merge DataFrames on indexresult = pd.merge(df_result_ensemble, df_dji, left_index=True, right_index=True) Save to CSVresult.to_csv(os.path.join(DATA_SAVE_DIR, "result.csv")) Rename columns for clarityresult.columns = ["ensemble", "djia"] Plotting the resultSet the backend to a suitable interactive backendplt.switch_backend("TkAgg") # Use 'TkAgg' backend for Tkinter-based interactive display Display the plot interactivelyplt.show() |
@VishnuRaghavan |
@zhumingpassional I'm running on my local machine I have split the colab file into multiple files the above code is for comparison with DJIA. Also I'm training it on my CUDA NVIDIA GPU. Making a PR would not be the best solution as the file architectures are now different. And yes for me plotting is working fine with this setup. |
I am getting AttributeError: 'Series' object has no attribute 'iteritems'
i tried but not able to fix it, can someone help me with this error??
The text was updated successfully, but these errors were encountered: