Skip to content

Commit 32c3867

Browse files
committed
Merge pull request opencv#5294 from LorenaGdL:master
2 parents 6208ab4 + 4e7bd86 commit 32c3867

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)