Code Monkey home page Code Monkey logo

Comments (6)

takojunior avatar takojunior commented on August 17, 2024

Thanks @Wwwwei for your interests. To your question, I don't see a way by applying currently available constraints to limit the minimum length of patterns. The span constraint you used above is actually requiring MAX(att_order) - MIN(att_order) of a pattern to be within the range [5, 10], which doesn't necessarily limit the minimum length of pattern. Besides, it may not find patterns satisfying the constraint since the maximum span of pattern would be 3, that is falling outside of the specified range.

The easiest way for now would be a post-processing step. What we shall do is to get patterns without limiting the minimum length first, then we select the patterns that can pass the desired requirement. I hope this can help to solve the problem.

from seq2pat.

Sandy4321 avatar Sandy4321 commented on August 17, 2024

yes
good question

from seq2pat.

Wwwwei avatar Wwwwei commented on August 17, 2024

Thanks @Wwwwei for your interests. To your question, I don't see a way by applying currently available constraints to limit the minimum length of patterns. The span constraint you used above is actually requiring MAX(att_order) - MIN(att_order) of a pattern to be within the range [5, 10], which doesn't necessarily limit the minimum length of pattern. Besides, it may not find patterns satisfying the constraint since the maximum span of pattern would be 3, that is falling outside of the specified range.

The easiest way for now would be a post-processing step. What we shall do is to get patterns without limiting the minimum length first, then we select the patterns that can pass the desired requirement. I hope this can help to solve the problem.

Thanks for your prompt reply. I will try post-processing.
By the way, is there any way to speed up and reduce memory? I am suffering from high time and memory consumption in a big dataset.
Thank you very much.

from seq2pat.

Sandy4321 avatar Sandy4321 commented on August 17, 2024

Cool

from seq2pat.

takojunior avatar takojunior commented on August 17, 2024

Thanks @Wwwwei for your interests. To your question, I don't see a way by applying currently available constraints to limit the minimum length of patterns. The span constraint you used above is actually requiring MAX(att_order) - MIN(att_order) of a pattern to be within the range [5, 10], which doesn't necessarily limit the minimum length of pattern. Besides, it may not find patterns satisfying the constraint since the maximum span of pattern would be 3, that is falling outside of the specified range.
The easiest way for now would be a post-processing step. What we shall do is to get patterns without limiting the minimum length first, then we select the patterns that can pass the desired requirement. I hope this can help to solve the problem.

Thanks for your prompt reply. I will try post-processing. By the way, is there any way to speed up and reduce memory? I am suffering from high time and memory consumption in a big dataset. Thank you very much.

We are working on a batch processing feature for seq2pat, in order to improve the speed and memory performance. We will have a new release once this capability gets ready and tested well. Meanwhile, you might also try to add stronger constraints to further reduce the search space or consider a smaller sampling of data, e.g. a sampling of sequences in your case, to speed up the mining on large data set.

from seq2pat.

Wwwwei avatar Wwwwei commented on August 17, 2024

Thanks. Looking forward to the new feature.

from seq2pat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.