Skip to content

feat: implement StateBuilder class for state vector construction - #45

Merged
belarusian merged 1 commit into
mainfrom
build14/state-builder
Aug 14, 2026
Merged

feat: implement StateBuilder class for state vector construction#45
belarusian merged 1 commit into
mainfrom
build14/state-builder

Conversation

@belarusian

Copy link
Copy Markdown
Owner

Changes

  • Add StateBuilder class with configurable hourly/daily/weekly windows
  • Add build_state() returning numpy array shape (1, N)
  • Add _normalize_window() — divide by last price minus 1
  • Add _pad_window() — pad if insufficient history
  • Add 35 tests for StateBuilder construction, state building, normalization, padding

Verification

  • 446 tests pass
  • ruff clean
  • mypy clean

- Add StateBuilder class with configurable hourly/daily/weekly windows
- Add build_state() returning numpy array shape (1, N)
- Add _normalize_window() — divide by last price minus 1
- Add _pad_window() — pad if insufficient history
- Add 35 tests for StateBuilder construction, state building, normalization, padding
- All 446 tests pass, ruff clean, mypy clean
@belarusian
belarusian merged commit cc321e0 into main Aug 14, 2026
1 check passed
@belarusian
belarusian deleted the build14/state-builder branch August 14, 2026 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant