prices change
This commit is contained in:
parent
36608fb005
commit
c44b12896a
File diff suppressed because it is too large
Load Diff
|
@ -159,7 +159,7 @@ class ESSEnv(gym.Env):
|
||||||
temperature_df = pd.read_csv('data/temper.csv', sep=',')
|
temperature_df = pd.read_csv('data/temper.csv', sep=',')
|
||||||
wind_df = pd.read_csv('data/wind.csv', sep=',')
|
wind_df = pd.read_csv('data/wind.csv', sep=',')
|
||||||
|
|
||||||
price = price_df['price'].to_numpy(dtype=float)
|
price = price_df['Price'].to_numpy(dtype=float)
|
||||||
load = load_df['houseload'].to_numpy(dtype=float)
|
load = load_df['houseload'].to_numpy(dtype=float)
|
||||||
irradiance = irradiance_df['irradiance'].to_numpy(dtype=float)
|
irradiance = irradiance_df['irradiance'].to_numpy(dtype=float)
|
||||||
temperature = temperature_df['t2m'].to_numpy(dtype=float)
|
temperature = temperature_df['t2m'].to_numpy(dtype=float)
|
||||||
|
|
39
test.py
39
test.py
|
@ -21,21 +21,30 @@
|
||||||
|
|
||||||
# print(model)
|
# print(model)
|
||||||
|
|
||||||
import pickle
|
# import pickle
|
||||||
|
#
|
||||||
|
# a = 'DDPG'
|
||||||
|
# b = 'PPO'
|
||||||
|
# c = 'SAC'
|
||||||
|
# d = 'TD3'
|
||||||
|
#
|
||||||
|
# a1 = '/reward_data.pkl'
|
||||||
|
# a2 = '/loss_data.pkl'
|
||||||
|
# a3 = '/test_data.pkl'
|
||||||
|
#
|
||||||
|
# filename = './Agent' + a + a3
|
||||||
|
#
|
||||||
|
# # 使用 'rb' 模式打开文件,读取二进制数据
|
||||||
|
# with open(filename, 'rb') as f:
|
||||||
|
# data = pickle.load(f)
|
||||||
|
#
|
||||||
|
# print(data)
|
||||||
|
|
||||||
a = 'DDPG'
|
import pandas as pd
|
||||||
b = 'PPO'
|
|
||||||
c = 'SAC'
|
|
||||||
d = 'TD3'
|
|
||||||
|
|
||||||
a1 = '/reward_data.pkl'
|
# Load the CSV file
|
||||||
a2 = '/loss_data.pkl'
|
file_path = 'data/prices_m.csv'
|
||||||
a3 = '/test_data.pkl'
|
price_df = pd.read_csv(file_path)
|
||||||
|
# Check the columns
|
||||||
|
print(price_df.columns)
|
||||||
|
|
||||||
filename = './Agent' + a + a3
|
|
||||||
|
|
||||||
# 使用 'rb' 模式打开文件,读取二进制数据
|
|
||||||
with open(filename, 'rb') as f:
|
|
||||||
data = pickle.load(f)
|
|
||||||
|
|
||||||
print(data)
|
|
||||||
|
|
Loading…
Reference in New Issue