Vowpal Wabbit:无法从训练有素的--rank模型中检索具有gd_mf_weights的潜在因子

时间:2019-05-08 18:03:44

标签: machine-learning vowpalwabbit matrix-factorization

我在movielens数据上训练了等级40的模型,但是无法使用gd_mf_weights从训练后的模型中检索权重。我正在使用Build a navigation app for Android中的语法,但这给了我错误。请告知。

模型培训电话: vw --rank 40 -q ui --l2 0.1 --learning_rate 0.015 --decay_learning_rate 0.97 --power_t 0 --passes 50 --cache_file movielens.cache -f movielens.reg -d train.vw

权重生成调用: library/gd_mf_weights -I train.vw -O '/data/home/mlteam/notebooks/Recommenders-master/notebooks/Outputs/movielens' --vwparams '-q ui --rank 40 -i movielens.reg'

错误:

WARNING: model file has set of {-q, --cubic, --interactions} settings stored, but they'll be OVERRIDEN by set of {-q, --cubic, --interactions} settings from command line.
creating quadratic features for pairs: ui

finished run
number of examples = 0
weighted example sum = 0
weighted label sum = 0
average loss = -nan
total feature number = 0
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::program_options::multiple_occurrences >'
what(): option '--rank' cannot be specified more than once
Aborted (core dumped)

如果我只运行它而不指定等级和交互变量,则它不会返回相同的训练模型,因为显示的参数与以前不同。

library/gd_mf_weights -I train.vw -O '/data/home/mlteam/notebooks/Recommenders-master/notebooks/Outputs/movielens' --vwparams '-i movielens.reg' 
creating quadratic features for pairs: ui 
Num weight bits = 18 
learning rate = 10 
initial_t = 1 
power_t = 0.5 
using no cache 
Reading datafile = 
num sources = 0 
Segmentation fault (core dumped)

如果我使用整个模型训练参数集运行权重生成,它只会忽略我的额外参数(并且完成速度比50次传递要快得多),并且会从随机发起的等级40模型返回相同的权重。 library/gd_mf_weights -I train.vw -0 '/data/home/mlteam/notebooks/Recommenders-master/notebooks/Outputs/movielens' --vwparams '--rank 40 -q ui --l2 0.1 --learning_rate 0.015 --decay_learning_rate 0.97 --power_t 0 --passes 50 --cache_file movielens.cache -f movielens.reg -d train.vw'

0 个答案:

没有答案