chuanconggao / PrefixSpan-py

The shortest yet efficient Python implementation of the sequential pattern mining algorithm PrefixSpan, closed sequential pattern mining algorithm BIDE, and generator sequential pattern mining algorithm FEAT.
https://git.io/prefixspan
MIT License
414 stars 92 forks source link

more user friendly interfaces #1

Closed Charliechen1 closed 6 years ago

Charliechen1 commented 6 years ago

Hi dude,

During my one fraud modelling competition I found your code quite useful in finding patterns in user action sequences. It efficient and precise. However, I found it a little bit complicated to import your code into my projects. Therefore, I made some tiny modifications and hope it can help your project to be more friendly to one who want to utilize your wonderful contribution.

Best, Charlie Chen 陈家礼

chuanconggao commented 6 years ago

I have been interested in wrapping this into a public library, with importable API, possibly available on PyPi.

The major issue of this pull request is that it completely removes the terminal usage. Arguably, most users (including me) use it as part of the command line workflow.

Charliechen1 commented 6 years ago

Well, thx, then how about alternatively adding a simple interface? Or its sad for API user...

chuanconggao commented 6 years ago

Sure. I will add it. Since I need to put it on PyPi, it may take a few days. I will also close this pull request.

Charliechen1 commented 6 years ago

Thx~

chuanconggao commented 6 years ago

Hi, @Charliechen1 I have added the API. Feel free to leave some feedback.

It is also on PyPi.