Lines Matching refs:_inputs
266 float CvANN_MLP::predict( const CvMat* _inputs, CvMat* _outputs ) const
278 if( !CV_IS_MAT(_inputs) || !CV_IS_MAT(_outputs) ||
279 !CV_ARE_TYPES_EQ(_inputs,_outputs) ||
280 CV_MAT_TYPE(_inputs->type) != CV_32FC1 &&
281 CV_MAT_TYPE(_inputs->type) != CV_64FC1 ||
282 _inputs->rows != _outputs->rows )
286 if( _inputs->cols != layer_sizes->data.i[0] )
293 n = dn0 = _inputs->rows;
312 cvGetRows( _inputs, layer_in, i, i + dn );
686 bool CvANN_MLP::prepare_to_train( const CvMat* _inputs, const CvMat* _outputs,
712 if( !CV_IS_MAT(_inputs) || CV_MAT_TYPE(_inputs->type) != CV_32FC1 &&
713 CV_MAT_TYPE(_inputs->type) != CV_64FC1 || _inputs->cols != layer_sizes->data.i[0] )
727 if( _inputs->rows != _outputs->rows )
732 CV_CALL( sample_idx = cvPreprocessIndexArray( _sample_idx, _inputs->rows ));
737 count = _inputs->rows;
749 sw_count != count && sw_count != _inputs->rows )
763 ivecs.type = CV_MAT_TYPE(_inputs->type);
770 ivecs.data.ptr[i] = _inputs->data.ptr + idx*_inputs->step;
816 int CvANN_MLP::train( const CvMat* _inputs, const CvMat* _outputs,
839 CV_CALL( prepare_to_train( _inputs, _outputs, _sample_weights,