From c86dc25b790d11f02405c8c6ac44cb107c4800fd Mon Sep 17 00:00:00 2001 From: "pasquale c." <343guiltyspark@outlook.it> Date: Sun, 30 Jun 2024 23:04:19 +0200 Subject: [PATCH] fixed small error in pred_avg --- src/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.jl b/src/utils.jl index b4f08f6..d2377a7 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -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])) #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])) end end #return the tuple