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
bf2ee3c5
Commit
bf2ee3c5
authored
Nov 05, 2013
by
Rahul Kavi
Committed by
Maksim Shabunin
Aug 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated prototype for logistic regression classifier
parent
3a6deb3e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
ml.hpp
modules/ml/include/opencv2/ml.hpp
+8
-12
No files found.
modules/ml/include/opencv2/ml.hpp
View file @
bf2ee3c5
...
@@ -581,17 +581,17 @@ struct CV_EXPORTS LogisticRegressionParams
...
@@ -581,17 +581,17 @@ struct CV_EXPORTS LogisticRegressionParams
int
regularized
;
int
regularized
;
int
train_method
;
int
train_method
;
int
mini_batch_size
;
int
mini_batch_size
;
Cv
TermCriteria
term_crit
;
cv
::
TermCriteria
term_crit
;
LogisticRegressionParams
();
LogisticRegressionParams
();
LogisticRegressionParams
(
double
alpha
,
int
num_iters
,
int
norm
,
int
regularized
,
int
train_method
,
int
minbatchsize
);
LogisticRegressionParams
(
double
learning_rate
,
int
iters
,
int
train_method
,
int
normlization
,
int
reg
,
int
mini_batch_size
);
};
};
class
CV_EXPORTS
LogisticRegression
class
CV_EXPORTS
LogisticRegression
{
{
public
:
public
:
LogisticRegression
(
const
LogisticRegressionParams
&
params
);
LogisticRegression
();
LogisticRegression
(
cv
::
InputArray
data_ip
,
cv
::
InputArray
labels_ip
,
const
LogisticRegressionParams
&
params
);
LogisticRegression
(
cv
::
InputArray
data_ip
,
cv
::
InputArray
labels_ip
,
const
LogisticRegressionParams
&
params
);
virtual
~
LogisticRegression
();
virtual
~
LogisticRegression
();
...
@@ -601,10 +601,11 @@ public:
...
@@ -601,10 +601,11 @@ public:
virtual
bool
train
(
cv
::
InputArray
data_ip
,
cv
::
InputArray
label_ip
);
virtual
bool
train
(
cv
::
InputArray
data_ip
,
cv
::
InputArray
label_ip
);
virtual
void
predict
(
cv
::
InputArray
data
,
cv
::
OutputArray
predicted_labels
)
const
;
virtual
void
predict
(
cv
::
InputArray
data
,
cv
::
OutputArray
predicted_labels
)
const
;
virtual
void
save
(
std
::
string
filepath
)
const
;
virtual
void
write
(
FileStorage
&
fs
)
const
;
virtual
void
load
(
const
std
::
string
filepath
);
virtual
void
read
(
const
FileNode
&
fn
);
cv
::
Mat
get_learnt_thetas
()
const
;
const
cv
::
Mat
get_learnt_thetas
()
const
;
virtual
void
clear
();
protected
:
protected
:
...
@@ -623,11 +624,6 @@ protected:
...
@@ -623,11 +624,6 @@ protected:
virtual
cv
::
Mat
compute_mini_batch_gradient
(
const
cv
::
Mat
&
data
,
const
cv
::
Mat
&
labels
,
const
cv
::
Mat
&
init_theta
);
virtual
cv
::
Mat
compute_mini_batch_gradient
(
const
cv
::
Mat
&
data
,
const
cv
::
Mat
&
labels
,
const
cv
::
Mat
&
init_theta
);
virtual
bool
set_label_map
(
const
cv
::
Mat
&
labels
);
virtual
bool
set_label_map
(
const
cv
::
Mat
&
labels
);
static
cv
::
Mat
remap_labels
(
const
cv
::
Mat
&
labels
,
const
std
::
map
<
int
,
int
>&
lmap
);
static
cv
::
Mat
remap_labels
(
const
cv
::
Mat
&
labels
,
const
std
::
map
<
int
,
int
>&
lmap
);
virtual
void
write
(
FileStorage
&
fs
)
const
;
virtual
void
read
(
const
FileNode
&
fn
);
virtual
void
clear
();
};
};
}
// namespace cv
}
// namespace cv
...
...
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