Skip to content

Conversation

@AvanishSalunke
Copy link
Contributor

@AvanishSalunke AvanishSalunke commented Dec 18, 2025

Added compatibility for string and categorical arrays, including handling of missing and undefined values to match MATLAB behavior.

Standardized the filtering of invalid data (NaNs, empty strings) across all types and added strict type/length checks for inputs.

Added more BISTs

Closes #341

@AvanishSalunke AvanishSalunke changed the title String and Categorial arrays, handling of missing values. String and Categorial arrays, handling of missing values in confusionmat.m Dec 18, 2025
%! [C, order] = confusionmat (g, gh);
%! assert (C, 3);
%! assert (order, 1);
%!error
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have specific error messages added too?
thanks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is resolved, ignore, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Categorial and String Arrays in confusionmat.m

2 participants