例外が発生しました: ValueError
Expected parameter loc (Tensor of shape (1, 1)) of distribution Normal(loc: tensor([[nan]]), scale: tensor([[1.]])) to satisfy the constraint Real(), but found invalid values:
tensor([[nan]])
File "/workspaces/battery-control-by-reinforcement-learning/Battery-Control-By-Reinforcement-Learning/RL_test.py", line 46, in dispatchtest
action, = self.model.predict(obs)
File "/workspaces/battery-control-by-reinforcement-learning/Battery-Control-By-Reinforcement-Learning/RL_main.py", line 49, in
df_test = testModel.dispatch_test(latestModel_name)
ValueError: Expected parameter loc (Tensor of shape (1, 1)) of distribution Normal(loc: tensor([[nan]]), scale: tensor([[1.]])) to satisfy the constraint Real(), but found invalid values:
tensor([[nan]])
変更内容 ・現在日時をcsvに保存し別ファイルで参照(current_data,csv) ・price_predictとpv_predictに0のダミーデータを追加 ・結果csvファイルの生成方法を変更(RL_dateframe_manager.py)
未達成項目 ・4日以上続けて実行すると以下のエラーが出る
例外が発生しました: ValueError Expected parameter loc (Tensor of shape (1, 1)) of distribution Normal(loc: tensor([[nan]]), scale: tensor([[1.]])) to satisfy the constraint Real(), but found invalid values: tensor([[nan]]) File "/workspaces/battery-control-by-reinforcement-learning/Battery-Control-By-Reinforcement-Learning/RL_test.py", line 46, in dispatchtest action, = self.model.predict(obs) File "/workspaces/battery-control-by-reinforcement-learning/Battery-Control-By-Reinforcement-Learning/RL_main.py", line 49, in
df_test = testModel.dispatch_test(latestModel_name)
ValueError: Expected parameter loc (Tensor of shape (1, 1)) of distribution Normal(loc: tensor([[nan]]), scale: tensor([[1.]])) to satisfy the constraint Real(), but found invalid values:
tensor([[nan]])