Skip to content
Snippets Groups Projects
Commit f3328932 authored by Farid Mohammadi's avatar Farid Mohammadi
Browse files

[surrogate][omp] fix bugs.

parent 29dfbfe7
No related branches found
No related tags found
1 merge request!1Resolve "Justifiability analysis"
...@@ -195,8 +195,9 @@ class OrthogonalMatchingPursuit(LinearModel, RegressorMixin): ...@@ -195,8 +195,9 @@ class OrthogonalMatchingPursuit(LinearModel, RegressorMixin):
r = R / norm_R r = R / norm_R
# Update counters and early-stop criterions # Update counters and early-stop criterions
countinf = max(0, round(count-k*kmax)) countinf = max(0, int(count-k*kmax))
LOOmin = min(LOOmin, LOO[count]) LOOmin = min(LOOmin, LOO[count])
if count == 0: if count == 0:
cond_early = (LOO[0] <= LOOmin) cond_early = (LOO[0] <= LOOmin)
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment