prices change
This commit is contained in:
parent
c44b12896a
commit
879f01c22e
8761
data/prices_m.csv
8761
data/prices_m.csv
File diff suppressed because it is too large
Load Diff
41
test.py
41
test.py
|
@ -19,32 +19,23 @@
|
||||||
# model = YourModelClass() # 实例化你的模型
|
# model = YourModelClass() # 实例化你的模型
|
||||||
# model.load_state_dict(checkpoint)
|
# model.load_state_dict(checkpoint)
|
||||||
|
|
||||||
# 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)
|
|
||||||
|
|
||||||
import pandas as pd
|
a = 'DDPG'
|
||||||
|
b = 'PPO'
|
||||||
|
c = 'SAC'
|
||||||
|
d = 'TD3'
|
||||||
|
|
||||||
# Load the CSV file
|
a1 = '/reward_data.pkl'
|
||||||
file_path = 'data/prices_m.csv'
|
a2 = '/loss_data.pkl'
|
||||||
price_df = pd.read_csv(file_path)
|
a3 = '/test_data.pkl'
|
||||||
# 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