Skip to content

Commit 4e7bd86

Browse files
committed
TrainData doc update
Update docs according to PR opencv#5127
1 parent 9d01818 commit 4e7bd86

File tree

1 file changed

+2
-0
lines changed
  • modules/ml/include/opencv2

1 file changed

+2
-0
lines changed

modules/ml/include/opencv2/ml.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ class CV_EXPORTS_W TrainData
252252
@param missch The character used to specify missing measurements. It should not be a digit.
253253
Although it's a non-numerical value, it surely does not affect the decision of whether the
254254
variable ordered or categorical.
255+
@note If the dataset only contains input variables and no responses, use responseStartIdx = -2
256+
and responseEndIdx = 0. The output variables vector will just contain zeros.
255257
*/
256258
static Ptr<TrainData> loadFromCSV(const String& filename,
257259
int headerLineCount,

0 commit comments

Comments
 (0)