mquad / recsys-course-2016-pub Goto Github PK
View Code? Open in Web Editor NEWCourse on Recommender Systems 2016 - Politecnico di Milano
License: MIT License
Course on Recommender Systems 2016 - Politecnico di Milano
License: MIT License
Ciao, il multithreadSLIM mi da un errore quando viene chiamata la .fit :
PicklingError: Can't pickle <type 'instancemethod'>: attribute lookup __builtin__.instancemethod failed
Il codice che sto tentando di eseguire e' :
recommender = MultiThreadSLIM(l1_penalty=0.1,l2_penalty=0.01)
train_size = int(data.shape[0] * 0.8)
# split data according to the shuffled index and the holdout size
train_split = data[:train_size]
test_split = data[train_size:]
recommender.fit(train_split)
Dove data e' una matrice in formato csc.
Qualcuno sa la causa di questo errore?
Grazie :)
When executing install.sh I get the following error:
/home/s/software/miniconda3/envs/recsys-env/lib/python3.5/site-packages/Cython/Distutils/old_build_ext.py:30: UserWarning: Cython.Distutils.old_build_ext does not properly handle dependencies and is deprecated.
"Cython.Distutils.old_build_ext does not properly handle dependencies "
running build_ext
building 'recpy.cython._similarity' extension
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DCYTHON_TRACE=1 -I/home/s/software/miniconda3/envs/recsys-env/lib/python3.5/site-packages/numpy/core/include -I/home/s/software/miniconda3/envs/recsys-env/include/python3.5m -c recpy/cython/_similarity.c -o build/temp.linux-x86_64-3.5/recpy/cython/_similarity.o
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/syslimits.h:7:0,
from /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:34,
from /home/s/software/miniconda3/envs/recsys-env/include/python3.5m/Python.h:11,
from recpy/cython/_similarity.c:19:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:168:61: fatal error: limits.h: Aucun fichier ou dossier de ce type
#include_next <limits.h> /* recurse down to the real one */
^
compilation terminated.
error: command 'gcc' failed with exit status 1
/home/s/software/miniconda3/envs/recsys-env/lib/python3.5/site-packages/Cython/Distutils/old_build_ext.py:30: UserWarning: Cython.Distutils.old_build_ext does not properly handle dependencies and is deprecated.
"Cython.Distutils.old_build_ext does not properly handle dependencies "
running install
running bdist_egg
running egg_info
writing dependency_links to recpy.egg-info/dependency_links.txt
writing requirements to recpy.egg-info/requires.txt
writing top-level names to recpy.egg-info/top_level.txt
writing recpy.egg-info/PKG-INFO
reading manifest file 'recpy.egg-info/SOURCES.txt'
writing manifest file 'recpy.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'recpy.cython._similarity' extension
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DCYTHON_TRACE=1 -I/home/s/software/miniconda3/envs/recsys-env/lib/python3.5/site-packages/numpy/core/include -I/home/s/software/miniconda3/envs/recsys-env/include/python3.5m -c recpy/cython/_similarity.c -o build/temp.linux-x86_64-3.5/recpy/cython/_similarity.o
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/syslimits.h:7:0,
from /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:34,
from /home/s/software/miniconda3/envs/recsys-env/include/python3.5m/Python.h:11,
from recpy/cython/_similarity.c:19:
/usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed/limits.h:168:61: fatal error: limits.h: Aucun fichier ou dossier de ce type
#include_next <limits.h> /* recurse down to the real one */
^
compilation terminated.
error: command 'gcc' failed with exit status 1
I am running Linux Mint 17.3 64-bit. gcc version 4.8.4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.