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 when Running Librec #58

Closed
VioletViolet opened this issue Oct 14, 2016 · 7 comments
Closed

Error when Running Librec #58

VioletViolet opened this issue Oct 14, 2016 · 7 comments

Comments

@VioletViolet
Copy link

Hi. I have copied all the classes in my netbeans but when I want to run this library it says null pointer exception error. Any ideas what I should do?
1

@guoguibing
Copy link
Owner

Try to git the latest source codes from GitHub

@guoguibing
Copy link
Owner

And make sure that you have properly configered a ".conf" file before your run an algorithm.

@guoguibing
Copy link
Owner

The default configuration file is "librec.conf"

@8-chems
Copy link

8-chems commented Jan 10, 2017

I am facing the same problem, the example userKNN doesn't work with the default librec conf file.

@FotisSp
Copy link

FotisSp commented Dec 18, 2017

I am facing the same problem! userKNN doesn't work with the default librec conf file and i also used my own conf file but i received Null Pointer Exception

rec.similarity.class=pcc
rec.neighbors.knn.number=50
rec.recommender.class=userknn
rec.recommender.similarities=user
rec.recommender.isranking=false
rec.recommender.ranking.topn=10
rec.filter.class=generic
rec.similarity.shrinkage=10

@allenjack
Copy link
Collaborator

allenjack commented Dec 18, 2017 via email

@FotisSp
Copy link

FotisSp commented Dec 18, 2017

yes the stack trace is :

Exception in thread "main" java.lang.NullPointerException at net.librec.recommender.cf.UserKNNRecommender.setup(UserKNNRecommender.java:52) at net.librec.recommender.AbstractRecommender.recommend(AbstractRecommender.java:216) at Thesis.Recomendation.Recommendation.main(Recommendation.java:56)

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

5 participants