Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DTclassifier Use decision trees functionality is broken #71

Open
simgislab opened this issue Mar 26, 2019 · 2 comments
Open

DTclassifier Use decision trees functionality is broken #71

simgislab opened this issue Mar 26, 2019 · 2 comments
Assignees
Labels

Comments

@simgislab
Copy link
Member

Steps:

  1. Get test data
  2. Add after,tif, presence-poly.shp, absence-poly.shp
  3. Run

DTClassifier crashes, QGIS crashes.

Random forest works well on exactly the same data.

@BishopGIS
Copy link
Member

BishopGIS commented Mar 26, 2019

Stacktrace of crash

0   org.opencv                    	0x0000000124eb8b55 cv::ml::DTreesImpl::calcValue(int, std::__1::vector<int, std::__1::allocator<int> > const&) + 1397
1   org.opencv                    	0x0000000124eb7b18 cv::ml::DTreesImpl::addNodeAndTrySplit(int, std::__1::vector<int, std::__1::allocator<int> > const&) + 1032
2   org.opencv                    	0x0000000124eb6bf3 cv::ml::DTreesImpl::addTree(std::__1::vector<int, std::__1::allocator<int> > const&) + 579
3   org.opencv                    	0x0000000124eb6945 cv::ml::DTreesImpl::train(cv::Ptr<cv::ml::TrainData> const&, int) + 53
4   org.opencv                    	0x0000000124e65f74 cv::ml::StatModel::train(cv::_InputArray const&, int, cv::_InputArray const&) + 132
5   libdtclassifierplugin.so      	0x00000001248e18ad PrepareModel::doWork() + 2269

Potential problem place:

https://github.com/nextgis/nextgisqgis/blob/master/src/plugins/dtclassifier/classifierworker.cpp#L1040-L1046

Docs:
https://docs.opencv.org/3.1.0/d8/d89/classcv_1_1ml_1_1DTrees.html

@BishopGIS
Copy link
Member

Temporary disable at 21f9a80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants