Alexander Smorkalov
daa8f7dfc6
Partially back-port #25075 to 4.x
1 year ago
Yulv-git
15ac54d5d6
Fix some typos in modules/.
3 years ago
Alexander Alekhin
7664e6d090
ml: use OpenCV license header for logistic regression
4 years ago
Alexander Alekhin
fef7fc343e
ml: add checks of empty train data
6 years ago
Alexander Alekhin
4d0dd3e509
ml: apply CV_OVERRIDE/CV_FINAL
7 years ago
Maksim Shabunin
248e2c7d47
Fixed some issues found by static analysis
8 years ago
Alexander Alekhin
006966e629
trace: initial support for code trace
8 years ago
David Carlier
bacc210606
fixing segfaults occuring when launching those unit tests
8 years ago
chrizandr
519fbdb8ab
Wrappers for load methods of EM, LR, SVMSGD and Normal Bayes Classifier
8 years ago
berak
89a740a62f
Merge pull request #8019 from berak:patch-2
...
ml: fix small typo in lr.cpp (#8019 )
8 years ago
BadrinathS
d1f727191f
Resolving issue #7924
8 years ago
mvukad
695e33b25b
Fix missing format when writing Algorithm-based objects
...
Added a writeFormat() method to Algorithm which must be called by the
write() method of derived classes.
9 years ago
Eugene Khvedchenya
ee92a36123
Added parallel implementation of compute_gradient method.
9 years ago
Amro
542f2b2e3c
clean up code for train and predict methods of LR
9 years ago
Amro
e67178c696
fix LR predict with raw output in 2-class case
...
In case of binary class, pred_m is initialized as zero vector and later
returned when raw outputs are requested, but it is never filled.
9 years ago
Abe Friesen
9c6ff4d955
- LogisticRegressionImpl::predict() was changed to return the predicted value and to only write to the OutputArray results if specified (no longer segfaults).
...
- Refactored batch and mini_batch training to use a common gradient computation function (removed duplicate code).
- Altered the cost computation so that NAN is not computed unnecessarily.
- Greatly simplified (and sped up) the code that appends a column of 1s to the data.
- Minor code cleanup.
Removed unused variables.
Added cast to float to remove warning
10 years ago
Abe Friesen
d367e159c1
Added cast to float to remove warning
10 years ago
Abe Friesen
db78fcd11a
Removed unused variables.
10 years ago
Abe Friesen
dc1b01e002
- LogisticRegressionImpl::predict() was changed to return the predicted value and to only write to the OutputArray results if specified (no longer segfaults).
...
- Refactored batch and mini_batch training to use a common gradient computation function (removed duplicate code).
- Altered the cost computation so that NAN is not computed unnecessarily.
- Greatly simplified (and sped up) the code that appends a column of 1s to the data.
- Minor code cleanup.
10 years ago
Vadim Pisarevsky
052593c760
1. Input/OutputArray optimizations;
...
2. Algorithm::load/save added (moved from StatModel)
3. copyrights updated; added copyright/licensing info for ffmpeg
4. some warnings from Xcode 6.x are fixed
10 years ago
ippei ito
518fd59a10
fixed whitespace error
10 years ago
ippei ito
49b38fe793
Fixed compile error build with VisualStudio2013 on windows.
...
REG_NONE defined in ml.hpp conflicts with defined in Winnt.h
10 years ago
Maksim Shabunin
79e8f0680c
Updated ml module interfaces and documentation
10 years ago
Julien Nabet
2d5e3b57ea
Fix cppcheck reports warnings:
...
(performance) Possible inefficient checking for 'lmap' emptiness
(warning) Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
(style) Array index '<xxx>' is used before limits check
10 years ago
Maksim Shabunin
108caae216
Modified logistic regression module according to comments
...
- Reworked documentation to reflect actual code
- Removed some unused variables
- Removed unnecessary 'cv::' modifiers
11 years ago
Maksim Shabunin
4667e18831
Updated logistic regression example
...
- Extracted common operations to separate functions.
- Activated first parameters set.
- Some output formatting.
- Fixed loop break condition in mini_batch_gradient function.
11 years ago
Maksim Shabunin
3e26086f82
Reworked ML logistic regression implementation, initial version
11 years ago
Maksim Shabunin
71770eb790
Fixed ML module build after merge
11 years ago
Rahul Kavi
a23836231f
fixed warnings in type conversions
...
fixed warnings in type conversions from size_t to int (in getting size of number of unique classes in a training problem).
11 years ago
Rahul Kavi
d20b2a5a97
removed extra comments in train method
11 years ago
Rahul Kavi
ae02ecec60
removed a couple of unnecessary comments in Logistic Regression training method
11 years ago
Rahul Kavi
65eb52a247
removed default value from LogisticRegression constructor function definition
11 years ago
Rahul Kavi
8995921cc5
fixed white space in logistic regression classifier
11 years ago
Rahul Kavi
b3b4e83aed
updated logistic regression definition
11 years ago
Rahul Kavi
5bb43f69ab
removed trailing whitespaces from predict function
11 years ago
Rahul Kavi
0e13f33193
rewrote the code to update API, removed inheritance from CvStatModel.
11 years ago
Rahul Kavi
6c74439d56
fixed trailing white-space in logistic regression class
11 years ago
Rahul Kavi
6ae43a2243
added logistic regression classifier
11 years ago