Comments (4)
I met the same problem, and I tune the learning rate smaller to resolve the math range error
from bpr.
What is the input data for bpr.py code?? can u provide a sample input
from bpr.
sampling 9993 <user,item i,item j> triples...
initial loss = 5242.5237869
starting iteration 0
Traceback (most recent call last):
File "testTopK.py", line 303, in
model.train(data,sampler,num_iters)
File "testTopK.py", line 52, in train
self.update_factors(u,i,j)
File "testTopK.py", line 80, in update_factors
z = 1.0/(1.0+exp(x))
OverflowError: math range error
Same problem, Any ideas?
from bpr.
Hi, please try this to fix
try:
z = 1.0/(1.0+exp(x))
except OverflowError:
z = float('inf')
from bpr.
Related Issues (12)
- Can anyone give me a input data demo?
- Please help me,why xrange is not defined HOT 1
- Could you please provide a small sample of dataset? HOT 1
- How to calculate the final AUC metric?
- Does input needs to be deduplicated?
- Calling sample_negative_item() issue HOT 1
- import toydoop
- BPR optimization criteria HOT 1
- IndexError: @ random.choice(self.data[u].indices) HOT 1
- How to use this code?
- What is the dataset format? I didn't try it successfully with csv file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpr.