8000 Simpler more general build_state · Issue #12 · lazyprogrammer/machine_learning_examples · GitHub
[go: up one dir, main page]

Skip to content
Simpler more general build_state #12
Open
@ericmock

Description

@ericmock

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0