So it looks like Tensor flow has a highlevel API tf.contrib.learn which should be easier than the example I looked at yesterday.
It has a training dataset using IRIS (the flower), whereby data is imported via CSV file. So I’ve formatted a few CSV files, and I’ll see if I can get my first run through.
I’ve formatted them the same as the IRIS data:
It looks like 120 cause its got 120 records, 4 because there are 4 datapoints and then 3 because of the output of three different types of flower.
My data looks like this:
The 8 and the 23 were the highest scoring contracts given that hand for North. (1 diamond and 2spades)
Then I’ll call the sample python script and alter the querry data to see what it things I should make for a contract.
new_samples = np.array(
[[0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,0,1,1,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,0,0,0,0], [0,1,0,1,1,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0]], dtype=float)