Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error of redis zadd() #16

Open
mohdshoaib04 opened this issue Apr 30, 2019 · 3 comments
Open

Error of redis zadd() #16

mohdshoaib04 opened this issue Apr 30, 2019 · 3 comments

Comments

@mohdshoaib04
Copy link

Hi,
Thanks for sharing such useful content based recommendation engine.

When testing your example i get below error

File "sklearn_tfidf.py", line 74, in _train self._r.zadd(self.SIMKEY % row['id'], *flattened) TypeError: zadd() takes from 3 to 7 positional arguments but 198 were given

Can you please guide me what is going wrong ?
I have latest redis version installed and i am using python3

@iamprageeth
Copy link

iamprageeth commented Dec 16, 2020

If anyone interested in using this great project in 2020, install following requirements.txt with pip
########################
Flask-API==0.6.2
gunicorn==19.1.1
wsgiref==0.1.2
flask==0.10.1
jinja2==2.8
numpy==1.11.0
pandas==0.18.1
redis==2.6.2
requests==2.10.0
scikit-learn==0.17.1
setuptools==20.7.0
six==1.9.0
wheel==0.29.0
scipy

#################

Then to install nomkl type following commands

  • conda config --add channels conda-forge
  • conda config --set channel_priority strict
  • conda install nomkl

Note : Use python 2.7. You can create a python 2.7 environemnt with Anaconda.

@iamprageeth
Copy link

I created a docker-compose file to run this project.

https://hub.docker.com/r/prageethatdocker/groveco_content_engine

RUN docker-compose up

@educatedpolarbear
Copy link

similar_dict = {str(item_id): float(score) for score, item_id in similar_items[1:]}
self._r.zadd(self.SIMKEY % str(row['id']), similar_dict)

If you are still working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants