From 4e7bd86fadc2bb1945ab5c3565b2a5fef95e5a2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorena=20Garc=C3=ADa?= Date: Thu, 3 Sep 2015 05:52:04 +0200 Subject: [PATCH] TrainData doc update Update docs according to PR #5127 --- modules/ml/include/opencv2/ml.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ml/include/opencv2/ml.hpp b/modules/ml/include/opencv2/ml.hpp index fd491e4f6e..3779141063 100644 --- a/modules/ml/include/opencv2/ml.hpp +++ b/modules/ml/include/opencv2/ml.hpp @@ -252,6 +252,8 @@ public: @param missch The character used to specify missing measurements. It should not be a digit. Although it's a non-numerical value, it surely does not affect the decision of whether the variable ordered or categorical. + @note If the dataset only contains input variables and no responses, use responseStartIdx = -2 + and responseEndIdx = 0. The output variables vector will just contain zeros. */ static Ptr loadFromCSV(const String& filename, int headerLineCount,