Simpler more general build_state

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Search the repository for the build_state function and inspect the other example referenced in the issue for its base-conversion approach. Verify the generalized state encoding with NUM_BINS set to 20 and confirm existing feature combinations still produce distinct states.

Written by the indexing model from the issue text.

Description

If you want to try more than 10 bins you can use the idea from one of your other examples... convert base NUM_BINS to base 10.

NUM_BINS = 20
def build_state(features):
val = NUM_BINS3 * features[3] + NUM_BINS2 * features[2] + NUM_BINS*features[1]+features[0]

Dominant language
Python
Stars
8.9k
Forks
6.4k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lazyprogrammer/machine_learning_examples

All issues in lazyprogrammer/machine_learning_examples

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.