Ý nghĩa của lớp ParamGrid trong module ml Opencv?

Hello
Mình đang tìm hiểu module svm trong opencv. Module này có sử dụng 1 class liên quan là ParamGrid được định nghĩa như sau
Tài liệu đặc tả class:
https://docs.opencv.org/3.4.1/d6/dca/classcv_1_1ml_1_1ParamGrid.html

Mã nguồn file *.hpp khai báo class từ dòng 107 đến 134:
https://github.com/opencv/opencv/blob/master/modules/ml/include/opencv2/ml.hpp.

Mã nguồn file *.cpp định nghĩa class:
https://github.com/opencv/opencv/blob/master/modules/ml/src/inner_functions.cpp.

Mình không hiểu ý nghĩa của class này lắm
Mô tả trên trang chủ là

ParamGrid là lớp thể hiện phạm vi lưới logarit của các tham số StatModel (StatModel là lớp cở sở của tất cả các lớp định nghĩa thuật toán trong module ml, lớp này kế thừa từ lớp Algorithm, và SVM kế thừa từ lớp này). Dùng để tối ưu độ chính xác của model bằng cách thay đổi các tham số rồi ước tính độ tính xác dựa vào việc kiểm tra chéo

Các thuộc tính

  • double logStep
    Logarithmic step for iterating the statmodel parameter.

The grid determines the following iteration sequence of the statmodel parameter values:

(minVal,minVal∗step,minVal∗step2,…,minVal∗logStepn),
where n is the maximal index satisfying

minVal∗logStepn<maxVal
The grid is logarithmic, so logStep must always be greater then 1. Default value is 1…

  • double maxVal
    Maximum value of the statmodel parameter. Default value is 0. More…

  • double minVal
    Minimum value of the statmodel parameter. Default value is 0

Thank you

Đọc cái này đi em https://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf
Còn nếu chưa hiểu thì đọc sách này (OpenCV chỉ qua đây :smiley: ) https://www.amazon.com/Elements-Statistical-Learning-Prediction-Statistics/dp/0387848576/ref=sr_1_1?ie=UTF8&qid=1522841543&sr=8-1&keywords=elements+of+statistical+learning

2 Likes
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?