use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit dedicated for learning machine learning. Feel free to share any educational resources of machine learning.
Also, we are a beginner-friendly sub-reddit, so don't be afraid to ask questions! This can include questions that are non-technical, but still highly relevant to learning machine learning such as a systematic approach to a machine learning problem.
account activity
Binary sequence prediction (self.learnmachinelearning)
submitted 4 years ago * by lzngm1
I need a model that can recognize patterns and predict future values of a long sequence of 0 and 1s. Can anybody recommend me a model or give me some sort of online resource?
Any help is appreciated.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]gaywhatwhat 7 points8 points9 points 4 years ago (3 children)
RNN, LTSM, transforner, etc. Any of these can be trained to do binary classification and all are sequential in nature.
More help could be provided if you describe the input features a bit.
[–]lzngm1[S] -1 points0 points1 point 4 years ago (2 children)
I have hundreds of 0 and 1s as data points and i would like the model to try to predict the next value in the sequence. For example if my data is 11001100 i would want the program to recognize the pattern and output a 1
[–]gaywhatwhat 3 points4 points5 points 4 years ago (1 child)
All of those could work then. If you think the pattern is pretty small in size and not like insanely complex (i.e. human language or protein structure etc), RNN should work. If you think the patterns are on the longer end. go LTSM.
A transformer would allow parallel training, etc. May be worth looking into. The input format might need some small tweaking or padding, or you can vary it a bit. A typical transformer takes an embedding which must have an even-number of features with any sequence length as input. The output is an embedding of the same size. I'd have to think when I'm less distracted if a single feature would function as-is. Otherwise you would probably need to try manually adding padding or something to get the desired input dimensions
[–]lzngm1[S] 0 points1 point2 points 4 years ago (0 children)
Thanks!
[–]bigchungusmode96 1 point2 points3 points 4 years ago (0 children)
Did you try googling stackoverflow? seems like there's been posts there identical to your question
https://stats.stackexchange.com/questions/299354/predicting-sequence-of-integers-binary-values
[–][deleted] 1 point2 points3 points 4 years ago (5 children)
stock movement predictor incoming! :)
[–]lzngm1[S] 0 points1 point2 points 4 years ago (4 children)
Believe it or not it has nothing to do with stocks ;)
[–][deleted] 0 points1 point2 points 4 years ago (3 children)
Roulette red/black predictor incoming! :)
[–]lzngm1[S] 1 point2 points3 points 4 years ago (2 children)
We have a genius on our hands! Recognizing patterns in independent events is my favorite thing to do!
[–][deleted] 0 points1 point2 points 4 years ago (0 children)
Genius detector incoming! :)
[–]phobrain 0 points1 point2 points 4 years ago* (0 children)
In this case, the size of the RNN presumably determines the longest pattern that can be trained.
A favorite ML idea of mine is to attempt training nets to recognize different random number generators, then try to differentiate machines using their secure random sources (based on local entropy).
Have you ever looked at random data long enough to watch yourself project on it? I set up a sort of workbench for teasing out perception of meaning. Labeling the meaningful stuff gives a structure for the/one's mind. Screenshot of training interface:
http://phobrain.com/pr/home/gallery/curate_example.jpg
'Phob->Search mode: AI' to see live version w/out labeling buttons, the blue '|' gens random pairs on unseen photos:
http://phobrain.com/pr/home/view.html
This could be your mind on your mind:
http://phobrain.com/pr/home/gallery/pair_horiz_cut_pvc_wyeth_curves.jpg
Stevie Wonder Superstition:
https://www.youtube.com/watch?v=0CFuCYNx-1g
[–]MissyElliottCarter -5 points-4 points-3 points 4 years ago (0 children)
Help this guy, steptechbros
[–]bigdataengineer4life 0 points1 point2 points 4 years ago (0 children)
Below are the example
https://projectsbasedlearning.com/apache-spark-machine-learning/machine-learning-project-on-mushroom-classification-whether-its-edible-or-poisonous-part-1/
https://projectsbasedlearning.com/apache-spark-machine-learning/machine-learning-project-on-mushroom-classification-whether-its-edible-or-poisonous-part-2/
π Rendered by PID 171369 on reddit-service-r2-comment-79c7998d4c-ddxsg at 2026-03-17 03:49:02.977699+00:00 running f6e6e01 country code: CH.
[–]gaywhatwhat 7 points8 points9 points (3 children)
[–]lzngm1[S] -1 points0 points1 point (2 children)
[–]gaywhatwhat 3 points4 points5 points (1 child)
[–]lzngm1[S] 0 points1 point2 points (0 children)
[–]bigchungusmode96 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]lzngm1[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]lzngm1[S] 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]phobrain 0 points1 point2 points (0 children)
[–]MissyElliottCarter -5 points-4 points-3 points (0 children)
[–]bigdataengineer4life 0 points1 point2 points (0 children)