Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
29207968
Commit
29207968
authored
Jun 15, 2011
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor
parent
96503991
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ml.hpp
modules/ml/include/opencv2/ml/ml.hpp
+7
-7
No files found.
modules/ml/include/opencv2/ml/ml.hpp
View file @
29207968
...
...
@@ -2064,18 +2064,18 @@ public:
// 1 - file can not be opened or is not correct
int
read_csv
(
const
char
*
filename
);
const
CvMat
*
get_values
(){
return
values
;
}
;
const
CvMat
*
get_values
(){
return
values
;
}
const
CvMat
*
get_responses
();
const
CvMat
*
get_missing
(){
return
missing
;
}
;
const
CvMat
*
get_missing
(){
return
missing
;
}
void
set_response_idx
(
int
idx
);
// old response become predictors, new response_idx = idx
// if idx < 0 there will be no response
int
get_response_idx
()
{
return
response_idx
;
}
const
CvMat
*
get_train_sample_idx
()
{
return
train_sample_idx
;
}
;
const
CvMat
*
get_test_sample_idx
()
{
return
test_sample_idx
;
}
;
const
CvMat
*
get_train_sample_idx
()
{
return
train_sample_idx
;
}
const
CvMat
*
get_test_sample_idx
()
{
return
test_sample_idx
;
}
void
mix_train_and_test_idx
();
void
set_train_test_split
(
const
CvTrainTestSplit
*
spl
);
...
...
@@ -2083,7 +2083,7 @@ public:
void
chahge_var_idx
(
int
vi
,
bool
state
);
// state == true to set vi-variable as predictor
const
CvMat
*
get_var_types
();
int
get_var_type
(
int
var_idx
)
{
return
var_types
->
data
.
ptr
[
var_idx
];
}
;
int
get_var_type
(
int
var_idx
)
{
return
var_types
->
data
.
ptr
[
var_idx
];
}
// following 2 methods enable to change vars type
// use these methods to assign CV_VAR_CATEGORICAL type for categorical variable
// with numerical labels; in the other cases var types are correctly determined automatically
...
...
@@ -2093,10 +2093,10 @@ public:
void
change_var_type
(
int
var_idx
,
int
type
);
// type in { CV_VAR_ORDERED, CV_VAR_CATEGORICAL }
void
set_delimiter
(
char
ch
);
char
get_delimiter
()
{
return
delimiter
;
}
;
char
get_delimiter
()
{
return
delimiter
;
}
void
set_miss_ch
(
char
ch
);
char
get_miss_ch
()
{
return
miss_ch
;
}
;
char
get_miss_ch
()
{
return
miss_ch
;
}
protected
:
virtual
void
clear
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment