Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Commit

Permalink
final fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen committed Apr 8, 2014
1 parent 72393c8 commit 6171751
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cxxnet/cxxnet_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ namespace cxxnet{
}
if( !strcmp( name, "iter" ) && !strcmp( val, "end" ) ){
utils::Assert( flag != 0, "wrong configuration file" );
if( flag == 1 ){
if( flag == 1 && task != "pred" ){
utils::Assert( itr_train == NULL, "can only have one data" );
itr_train = cxxnet::CreateIterator( itcfg );
}
if( flag == 2 ){
if( flag == 2 && task != "pred" ){
itr_evals.push_back( cxxnet::CreateIterator( itcfg ) );
eval_names.push_back( evname );
}
Expand Down
6 changes: 3 additions & 3 deletions example/MNIST/MNIST.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ num_round = 15
train_eval = 1
random_type = gaussian
## learning parameters
lr:eta = 0.1
lr:momentum = 0.9
lr:wd = 0.0
eta = 0.1
momentum = 0.9
wd = 0.0
# evaluation metric
metric = error
# end of config
6 changes: 3 additions & 3 deletions example/MNIST/MNIST_CONV.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ num_round = 15
train_eval = 1
random_type = gaussian
## learning parameters
lr:eta = 0.1
lr:momentum = 0.9
lr:wd = 0.0
eta = 0.1
momentum = 0.9
wd = 0.0
# evaluation metric
metric = error
eval_train = 1
Expand Down

0 comments on commit 6171751

Please sign in to comment.