Comments (2)
Did you trace the code in libfm?
from libfm.
您是否在libfm中跟踪了代码?
I read the code in libfm and coded refer to the file fm_learn_mcmc.h, I found the draw_ function is a little different to the pseudo code. For example:
double w0_sigma_sqr;
double w0_mean = 0;
for (uint i = 0; i < train.num_cases; i++) {
w0_mean += cache[i].e - w0;
}
w0_sigma_sqr = (double) 1.0 / (reg + alpha * train.num_cases);
w0_mean = - w0_sigma_sqr * (alpha * w0_mean - w0_mean_0 * reg);
// update w0
double w0_old = w0;
In the pseudo code it was described as:
I coded it as :
w0_mean = w0_sigma_sqr * (alpha * w0_mean + w0_mean_0 * reg + mu_w0 * lambda_w0)
And can I use numpy.random.gamma
instead of ran_gaussian
?
from libfm.
Related Issues (20)
- Error while using als method HOT 1
- terminal bash isn't known HOT 2
- Strange results on hello world example HOT 5
- Factorization Machines Query HOT 6
- Does the Block Structure Extension work for method=SGD? HOT 1
- Can I load model from file to predict new items without training? HOT 2
- Load/save for other models than SGD/ALS HOT 2
- Checking the weights of the model HOT 7
- 自适应部分权重是否进行了二次更新
- Custom loss functions
- some confusion HOT 2
- feature design and test set values: "Other Movies Rated" HOT 1
- save_model parameter not found
- Is there any way to load training data from HDFS?
- Convert Data with mixed datatypes to LibSVM format
- Kitty Terminal Emulator
- can it be used in python? HOT 1
- umm... so i reported
- CPU Usage multiple threading
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 libfm.