machine_learning_examples icon indicating copy to clipboard operation
machine_learning_examples copied to clipboard

Simpler more general build_state

Open ericmock opened this issue 8 years ago • 0 comments

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]

ericmock avatar Nov 01 '17 02:11 ericmock