Git Product home page Git Product logo

subseq's People

Contributors

bluesheeptoken avatar github-louis-fruleux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sandy4321 dan255

subseq's Issues

Sequence Prediction with Co-Occurring Item Groups

One example input of the predictor seems to be model.fit([["A", "B", "C"], ["A", "C"], ["A", "B"]]) , here "A", "B", "C" can be products purchased by three customers and each sublist is a ordered sequence of each customer's purchase history. But your model seems unable to deal with model.fit([["A", {"B", "C"}, "D"], ["A", {"A", "B"} "C"], ["A", "B"]]) where each set is a basket of products that are purchased at the same timestamp. How can I do sequence prediction with the input data that have the form like this: http://philippe-fournier-viger.com/spmf/CPTPlus.php

predict_k feature with subseq

Hi,
Thanks for this package. I was wondering if there was an option to access the top k predictions or least get the probabilities.
thanks !

probability

Hi! Is there any way I can see the probability? Something like:

model = Subseq(1)
model.probability()

installation error on linux

Hi! In fedora 38 and Ubuntu 23.04, an error occurs when installing the package
Python 3.11.2
Снимок экрана от 2023-06-04 01-19-04
P.s. It looks like the problem is due to Python 3.11, in Python 3.10 on the same operating systems, the installation goes without problems.

Model can't be serialized: self.thisptr cannot be converted to a Python object for pickling

Hi!
First of all thank you for this package - model produces great results.
But we faced with problem that the model can't be saved. We can't neither pickle nor dill it as it has non-serializable object 'thisptr'.
Example:

from dill import dumps
from subseq.subseq import Subseq

model = Subseq(1)
model.fit([['hello', 'world']])
dumps(model)

execs with exception

  File "<input>", line 1, in <module>
  File "\lib\site-packages\dill\_dill.py", line 304, in dumps
    dump(obj, file, protocol, byref, fmode, recurse, **kwds)#, strictio)
  File "\lib\site-packages\dill\_dill.py", line 276, in dump
    Pickler(file, protocol, **_kwds).dump(obj)
  File "\lib\site-packages\dill\_dill.py", line 498, in dump
    StockPickler.dump(self, obj)
  File "\lib\pickle.py", line 437, in dump
    self.save(obj)
  File "\lib\pickle.py", line 524, in save
    rv = reduce(self.proto)
  File "stringsource", line 2, in subseq.subseq.Subseq.__reduce_cython__
TypeError: self.thisptr cannot be converted to a Python object for pickling

Do you have any solution how to store the resulting model in storage?

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.