3
$\begingroup$

I want to do sequence learning for that I want to find frequent sequential rules ,this rule consider the order of occurrence

$\endgroup$
2
  • $\begingroup$ I don't understand why this question is downvoted. $\endgroup$
    – user122358
    Sep 9, 2017 at 20:44
  • $\begingroup$ 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. $\endgroup$
    – Gary Ong
    Feb 18, 2022 at 6:52

2 Answers 2

1
$\begingroup$

Probably you could try Conditional Random Fields (https://github.com/scrapinghub/python-crfsuite) or a Long Short term Memory RNN (Keras+Tensorflow backend)

$\endgroup$
1
  • $\begingroup$ Thanks for reply .does it has any sequence rule mining algorithm implemented .if no can you help me in understanding the library $\endgroup$
    – vikas ray
    Mar 28, 2017 at 4:57
1
$\begingroup$

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.

GitHub link

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.