Skip to content
Snippets Groups Projects
Commit e68e8a16 authored by Thomas Purcell's avatar Thomas Purcell
Browse files

Bug Fix For proejection scores

When a feature was constant across one task but not all it lead to an issue
This is now fixed by ignoring all scores with a score not between 0.0 and 1.0
parent d752a544
No related branches found
No related tags found
No related merge requests found
......@@ -426,6 +426,10 @@ void FeatureSpace::project_generated(double* prop, int size, std::vector<node_pt
std::vector<int> inds = util_funcs::argsort(scores);
int ii = 0;
while(_scores[inds[ii]] < -1.0)
++ii;
while((ii < inds.size()) && (scores[inds[ii]] < worst_score))
{
double cur_score = scores[inds[ii]];
......@@ -526,6 +530,9 @@ void FeatureSpace::sis(std::vector<double>& prop)
int cur_feat_local = 0;
double cur_score = 0.0;
while(_scores[inds[ii]] < -1.0)
++ii;
std::vector<double> scores_prev_sel;
if(node_value_arrs::N_SELECTED > _n_sis_select)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment