Comments (5)
The original design doesn't consider the saving function. The current saving function is later added. In general, the mcmc method is supposed to save the modeling parameters for each iteration. In other words, 100 iterations will save the modeling parameters 100 times, which is quite big if we use a large dimensional dataset. Instead, libfm selects to make the predictions on-the-fly so it won't produce a big modeling file (or occupies too much memory).
Add -learn_rate 0.1 could solve the sgd issue.
from libfm.
thanks!
from libfm.
Could you check your commend line? In my case, -method mcmc won't save model, and the program will be terminated automatically like:
WARNING: -save_model enabled only for SGD and ALS.
I tried using -method als, the model looks good to me.
./bin/libFM -task r -method als -train train.libfm -test train.libfm -iter 10 -dim ‘0,0,1’ -out output.libfm -save_model model.libfm
I can always get a satisfied result that the multiplication of the two is larger than 1, such as:
#pairwise interactions Vj,f
7.79554
0.128279
BTW, there is one trick in libfm that the predictions will be replaced by MAX value when the predictions are larger than MAX.
from libfm.
Thanks for the quick reply!
Switching to -method mcmc works for me! But why does -method mcmc not? I can also save the model with -method mcmc using the command from above:
libFM -task r -method mcmc -train train.libfm -test train.libfm -iter 10 -dim ‘0,0,1’ -out output.libfm -save_model model.libfm
Using -method sgd gives me the following error (i guess this is another problem):
Loading meta data...
Assertion failed: ((lr.size() == 1) || (lr.size() == 3)), function main, file libfm.cpp, line 386.
./run.sh: line 1: 13540 Abort trap: 6 ../libfm/bin/libFM -task r -method sgd -train train.libfm -test train.libfm -iter 10 -dim ‘0,0,1’ -out output.libfm -save_model model.libfm
from libfm.
the result of output is always 0 or 1,but it want the predict value in 0 to 1,how about ?
from libfm.
Related Issues (20)
- it is a great job
- Error while using als method HOT 1
- terminal bash isn't known HOT 2
- 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
- How to implement MCMC HOT 2
- 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
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.