You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using confusion matrix as a measure in evaluate or in evaluate! I get this error with displaying the aggregated confusion matrix. After checking, I found the result does have the correct confusion matrix. But the full results cannot be displayed, only each individual part separately.
Minimal example
using MLJ
import DataFrames
X = DataFrames.DataFrame(
:x1 => rand(100),
:x2 => rand(100),
);
y = randn(100) .> 0;
y = coerce(y, OrderedFactor);
@load LogisticClassifier pkg=MLJLinearModels
mdl = MLJLinearModels.LogisticClassifier()
cv = CV(nfolds=5)
@show scitype(X) # Table{AbstractVector{Continuous}}
@show aggregation(confusion_matrix) # StatisticalTraits.Sum()
result = evaluate(mdl, X, y, resampling=cv, measures=confusion_matrix)
result.measurement[1] # does hold the confusion matrix
@BenjaminDoran Thanks for reporting. I expect the problem is the attempt to calculate the 95% confidence interval for display purposes (not part of the evaluation object itself) and will investigate.
When using confusion matrix as a measure in
evaluate
or inevaluate!
I get this error with displaying the aggregated confusion matrix. After checking, I found the result does have the correct confusion matrix. But the full results cannot be displayed, only each individual part separately.Minimal example
the last line gives this error:
The text was updated successfully, but these errors were encountered: