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

KNN regression #269

Open
cydcydcyd opened this issue Apr 26, 2019 · 6 comments
Open

KNN regression #269

cydcydcyd opened this issue Apr 26, 2019 · 6 comments

Comments

@cydcydcyd
Copy link

hello, I refer to the example of KNN classification and use KNN for regression.
here is my code:
KDTree<RealVector> tree(data.inputs()); TreeNearestNeighbors<RealVector, RealVector> algo(data, &tree); const unsigned int K = 5; // number of neighbors for kNN NearestNeighborModel<RealVector, RealVector> KNN(&algo, K); Data<RealVector> testInputs = spAver.matToRealVector(fMat); Data<RealVector> pred = KNN(testInputs);

when prediction starts, some thing wrong happened:
Exception thrown at 0x0000000000000274 in cellDemo.exe: 0xC0000005: Access violation executing location 0x0000000000000274.
image

can me help me?thanks!
@Ulfgard

@cydcydcyd
Copy link
Author

cydcydcyd commented Apr 26, 2019

another question.
when I use EpsilonSvmTrainer, I got some errors in SvmProblems.h
image
image
image

@Ulfgard
Copy link
Member

Ulfgard commented Apr 26, 2019 via email

@Ulfgard
Copy link
Member

Ulfgard commented Apr 26, 2019 via email

@cydcydcyd
Copy link
Author

hello,have you fixed it now?

@Ulfgard
Copy link
Member

Ulfgard commented May 3, 2019

I have just pushed a change to 4.1

@cydcydcyd
Copy link
Author

cydcydcyd commented May 5, 2019 via email

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

No branches or pull requests

2 participants