LIBOL / SOL

Library for Scalable Online Learning
http://sol.stevenhoi.org
Other
97 stars 38 forks source link

Passing Parameters #5

Closed BillyBarbaro closed 7 years ago

BillyBarbaro commented 7 years ago

The wiki provides the example query: sol_train -a ogd --params "eta=0.001;" data/a1a test.model

However, running this results in the following error: sol_train: error: too few arguments

But it does work when I add an equal sign like this: sol_train -a ogd --params="eta=0.001;" data/a1a test.model

yuewu001 commented 7 years ago

are u using python wrappers? The example is for c++ executable. Python wrapper has similar argumetns but with a litter difference. The reason for your case is that "--params" accept multiple parameter arguments. the data path is wrongly regarded as a parameter. Some alternative parameter settings are:

    sol_train data/a1a test.model -a ogd --params "eta=0.001"
    sol_train --params "eta=0.001" -a ogd data/a1a test.model
    sol_train -a ogd --params="eta=0.001" data/a1a test.model