fixed compilation of some samples; fixed ANN_MLP::predict
This commit is contained in:
@@ -262,9 +262,9 @@ public:
|
||||
int cols = layer_sizes[j];
|
||||
|
||||
layer_out = Mat(dn, cols, CV_64F, data);
|
||||
Mat w = weights[i].rowRange(0, layer_in.cols);
|
||||
Mat w = weights[j].rowRange(0, layer_in.cols);
|
||||
gemm(layer_in, w, 1, noArray(), 0, layer_out);
|
||||
calc_activ_func( layer_out, weights[i] );
|
||||
calc_activ_func( layer_out, weights[j] );
|
||||
|
||||
layer_in = layer_out;
|
||||
}
|
||||
@@ -682,6 +682,8 @@ public:
|
||||
train_backprop( inputs, outputs, sw, termcrit ) :
|
||||
train_rprop( inputs, outputs, sw, termcrit );
|
||||
|
||||
trained = true;
|
||||
|
||||
return iter;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user