Skip to content
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

What are out1, out2 etc.. #5

Open
abcnishant007 opened this issue May 10, 2022 · 2 comments
Open

What are out1, out2 etc.. #5

abcnishant007 opened this issue May 10, 2022 · 2 comments

Comments

@abcnishant007
Copy link

Dear Authors,

Congrats on the amazing work! I have two questions about the data format. Any inputs from you are appreciated. Thanks in advance!

  1. About the variables inside the .mat file:

What are the variables out1, out2 and out3

for i in range(5):
out1=np.concatenate((out1,m['out1']),axis=1)
out2=np.concatenate((m['out2'],m['out2']),axis=1)
for i in range(5):
out2=np.concatenate((out2,m['out2']),axis=1)
out3=np.concatenate((m['out3'],m['out3']),axis=1)
for i in range(5):

  1. The csv file EV_Arrivals.csv does not appear to be used anywhere. Is the same file somehow already loaded in the .MAT file?
@wsyCUHK
Copy link
Owner

wsyCUHK commented May 11, 2022

Hi,
The EV_Arrivals is the orignal data, which is preprocessed into the out1, out2, and out3 vectors in the .mat file. Accordingly, the out vectors are the arrivals of different type EVs.

@mfl22
Copy link

mfl22 commented Mar 22, 2024

Could you add some more explanation about data loading:

df=pd.read_excel('../data/Price_CAISO.xlsx')
from scipy.io import loadmat
m = loadmat("../data/testingdata.mat")
import numpy as np
out1=np.concatenate((m['out1'],m['out1']),axis=1)
for i in range(5):
out1=np.concatenate((out1,m['out1']),axis=1)
out2=np.concatenate((m['out2'],m['out2']),axis=1)
for i in range(5):
out2=np.concatenate((out2,m['out2']),axis=1)
out3=np.concatenate((m['out3'],m['out3']),axis=1)
for i in range(5):
out3=np.concatenate((out3,m['out3']),axis=1)
out1=out1.squeeze().astype('int')
out2=out2.squeeze().astype('int')
out3=out3.squeeze().astype('int')
mixed_price=df['Unnamed: 4'].values
ISO_eprice=np.zeros((4000,1))
for i in range(1,1001):
if mixed_price[9*i-6]>1 and mixed_price[9*i-6]<100:
ISO_eprice[15*i-14:15*i]=mixed_price[9*i-6]
elif mixed_price[9*i-6]<100:
ISO_eprice[15*i-14:15*i]=1
else:
ISO_eprice[15*i-14:15*i]=100

Do the timestamps in out1, out2, out3, and ISO_eprice correspond? Also, it is not entirely clear why prices data is loaded in this way. The dimensions of these arrays don't correspond also...

Related, I added an issue about data points used in training: #9 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants