Skip to content

Commit

Permalink
Update start.py
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyating3 authored Oct 22, 2021
1 parent f690518 commit ae04e5f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions dqn_3/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,16 +251,8 @@ def train():


if __name__ == '__main__':

# train()
Data = {}
for file in dataset:
Data[file] = pd.read_excel(dataset_path, sheet_name=file)
print('**************shelter**************\n', Data['shelter'])
max_min_scaler = lambda x: (x - np.min(x)) / (np.max(x) - np.min(x))

Data['shelter'] = Data['shelter'][['opencost']].apply(max_min_scaler)
print('**************shelter**************\n', Data['shelter'])
train()

"""
# 用于计算本次训练中最大的准确率以及平均准确率
max_reward = max(episode_reward)
Expand Down

0 comments on commit ae04e5f

Please sign in to comment.