Keras example saves .keras ObjectStore keys but searches for keys without the extension
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Algorithm.Python/KerasNeuralNetworkAlgorithm.py から始めてください。initialize(34-40 行目あたり)は ObjectStore のキーを f'{symbol}_model' と比較し、on_end_of_algorithm(58-64 行目あたり)は f'{symbol}_model.keras' を保存します。キーの規約を 1 つ選び、両方の経路でそれを使うようにしてください。ある実行で保存されたモデルが再起動時に見つかり、keras.models.load_model で読み込まれること、およびラウンドトリップテストがその契約をカバーしていることが完了条件です。
索引モデルが issue の本文から書いたものです。
説明
Problem
KerasNeuralNetworkAlgorithm saves models under keys that its initialization never accepts:
initializecompares each ObjectStore key withf'{symbol}_model'.on_end_of_algorithmsavesf'{symbol}_model.keras'.
Consequently, restarting with models saved by the example skips keras.models.load_model for every saved model. The extension was added to the saving path in #8658, but not to the loading comparison.
Reproduction and evidence
- Run the example until it trains and saves a model.
- Restart with the same ObjectStore.
- The saved
SPY_model.keraskey does not equal the expectedSPY_model, so initialization continues without restoring it.
Evaluating the actual key-assignment AST expressions from the current source with symbol='SPY' produces:
initialize: SPY_model
on_end_of_algorithm: SPY_model.keras
This verifies the key mismatch independently of TensorFlow execution; a complete training/restart run was not performed.
Required result
A model saved by the example must be discovered and restored on the next run, using a compatible Keras filename and preserving its trained weights. Add a round-trip regression test for the save/load key contract.
- 主要言語
- C#
- スター
- 22.6k
- フォーク
- 5.4k
- 平均マージ
- 11時間 39分
- マージ済み PR(30日)
- 104
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
QuantConnect/Lean のほかの issue
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
QuantConnect/Lean#10206 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
QuantConnect/Lean#10199 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
QuantConnect/Lean#10198 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
QuantConnect/Lean#10197 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
QuantConnect/Lean#10191 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
QuantConnect/Lean の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
dotnet-outdated/dotnet-outdated#871 ·
メンテナーはふだん 1 日以内に返信
-
triage/untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
unoplatform/uno#26676 ·
メンテナーはふだん 1 日以内に返信
-
.NET bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jhaizhou-ops/S2Arm#2177 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
area-CodeGen-coreclr untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dotnet/runtime#138181 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信