Skip to content

Commit

Permalink
fixed small error in pred_avg
Browse files Browse the repository at this point in the history
  • Loading branch information
pasq-cat committed Jun 30, 2024
1 parent 3258618 commit c86dc25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function empirical_frequency_binary_classification(
#compute the empirical average and saved it in emp_avg in the j-th position
push!(emp_avg, 1 / num_p_per_interval[j] * sum(y_binary[indices]))

Check warning on line 138 in src/utils.jl

View check run for this annotation

Codecov / codecov/patch

src/utils.jl#L138

Added line #L138 was not covered by tests
#TO DO: maybe substitute to bin_Centers?
push!(pred_avg, 1 / num_p_per_interval[j] * sum(class_probs[1, indices]))
push!(pred_avg, 1 / num_p_per_interval[j] * sum(class_probs[ indices]))

Check warning on line 140 in src/utils.jl

View check run for this annotation

Codecov / codecov/patch

src/utils.jl#L140

Added line #L140 was not covered by tests
end
end

Check warning on line 142 in src/utils.jl

View check run for this annotation

Codecov / codecov/patch

src/utils.jl#L142

Added line #L142 was not covered by tests
#return the tuple
Expand Down

0 comments on commit c86dc25

Please sign in to comment.