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

why the features devided by max_radio_radius_ #38

Open
shekmun opened this issue Mar 30, 2020 · 0 comments
Open

why the features devided by max_radio_radius_ #38

shekmun opened this issue Mar 30, 2020 · 0 comments

Comments

@shekmun
Copy link

shekmun commented Mar 30, 2020

feat[0] =candidate_pixel_locations(max_id,0)/max_radio_radius_; is divided by max_radio_radius_.

When the random forest is training, the candidated position is calculated with the array candidate_pixel_locations.
double project_x1 = rotation(0,0) * candidate_pixel_locations(j,0) + rotation(0,1) * candidate_pixel_locations(j,1);----(1)

But when calculating the binary features, the stored feature (which is divided by max_radio_radius_) is used.
double x1 = rand_forest[iter].nodes_[currnode].feat[0];
...
double project_x1 = rotation(0,0) * x1 + rotation(0,1) * y1;
----(2)

which meas that the above code (1) and (2) is not using the same candidate_pixel_locations.

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

1 participant