Given a set of data to train from, predict the next round possibility (Two out of Three Possibility)

Job ID: 34815314

Budget: $30 – $250 USD

Please Read the requirement carefully.

The requirement is,
Given a set of data to train from, predict the next round result.

For example:
(data will have much more items within it, but for example lets keep it small and it will only contain either 1, 2 or 3, real data will also only contain 1, 2 or 3)
data = [3, 1, 3, 2, 3, 1, 3, 2, 3, 3, 3, 3, 1, 3, 2, 3, 2, 1, 1, 2, 1, 3, 3]

The script should read that set of Data and predict the next possible outcome:

Actual result: 2 (This we don't know) (But for example I am providing the actual result)

Prediction: {1, 2} {2,3} or {1, 3} <-- it should choose the best possibility from this set of 3

So it will be like: {2,3} (noticed how the actual result is in the prediction)

Even if its wrong, append the actual result to data array and continue the process again

data = [3, 1, 3, 2, 3, 1, 3, 2, 3, 3, 3, 3, 1, 3, 2, 3, 2, 1, 1, 2, 1, 3, 3, 2] (noticed the actual result is at the end now)

Repeat prediction for the next round

Run through example:

data = [3, 1, 3, 2, 3, 1, 3, 2, 3, 3, 3, 3, 1, 3, 2, 3, 2, 1, 1, 2, 1, 3, 3]

Prediction: {1, 3}

(console input)What is the result: 2

comparing: Prediction did not contain 2
data.append(2)

data = [3, 1, 3, 2, 3, 1, 3, 2, 3, 3, 3, 3, 1, 3, 2, 3, 2, 1, 1, 2, 1, 3, 3, 2]

(Prediction runs again)

Prediction: {2, 1}
(console input)What is the result: 1

comparing: Prediction did contain 1
data.append(1)

data = [3, 1, 3, 2, 3, 1, 3, 2, 3, 3, 3, 3, 1, 3, 2, 3, 2, 1, 1, 2, 1, 3, 3, 2, 1]

This repeats until the script is stopped

I would like this to have a 85%+ accuracy rate (timeItPredictedCorrectly / TotalRounds)

If you think you can obtain 85-90% (I have test data under the File section) I will award and payout after testing it myself.

Please bid on the pay, as that is what I will use.
Related categories: PHP Python Machine Learning (ML)