Predict next integer in sequence using ML.NET
Given a lengthy sequence of integers in the range of 0-1
I would like to be able to predict the next likely integer based on the previous sequence.
Example dataset: 1 1 1 0 0 0 0 1 1 0 0 1 0 1 1 0 0 0 1 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 1 0 0 1 0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 0 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 1 1 0 1 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0
A quick look at the above perhaps shows some obvious patterns which may be recognised by an ML model. After a lot of research it seems I'm after a LSTM solution but can't find any tutorials or examples that deal with a patterned sequence such as the above.
I do have other features available in the dataset but I don't think they correlate to the integer result so the prediction should be based purely on the statistical relevance of the supplied integer dataset.
I'm using ML.NET but would also welcome any general pointers on how to approach this using any other framework. Currently researching Keras
in python.
Topic automl lstm keras regression
Category Data Science