I want to do sequence learning for that I want to find frequent sequential rules ,this rule consider the order of occurrence
Asked
Active
Viewed 4,496 times
3
-
I don't understand why this question is downvoted. – user122358 Sep 09 '17 at 20:44
-
a simple method would be just to count them. If that does not satisfy you, you can use hidden markov model, conditional random fields, or even lstms. – Gary Ong Feb 18 '22 at 06:52
2 Answers
0
Probably you could try Conditional Random Fields (https://github.com/scrapinghub/python-crfsuite) or a Long Short term Memory RNN (Keras+Tensorflow backend)
pgalilea
- 514
- 3
- 7
-
Thanks for reply .does it has any sequence rule mining algorithm implemented .if no can you help me in understanding the library – vikas ray Mar 28 '17 at 04:57
0
I know this is possible with the SPMF Java library.
I created a Python wrapper for this recently. Handling sequential rules mining might require some adaption in the wrapper, since I use it mainly for sequential patterns mining, but it's certainly possible.
Lorenz Leitner
- 111
- 3