Skip to content

Commit

Permalink
Change error message to warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yanwenwang24 committed Nov 11, 2024
1 parent f989ce9 commit 84e898c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ function check_identifiability(n_items::Int, n_classes::Int, n_categories::Vecto
required_items = 2 * ceil(Int, log(min_cat, n_classes)) + 1

if n_items < required_items
throw(ArgumentError(
@warn(
"Model may not be identifiable. " *
"With $n_classes classes and minimum of $min_cat categories, " *
"need at least $required_items items (got $n_items). "
))
"need ideally $required_items items (got $n_items)."
)
end
return true
end
Expand Down

0 comments on commit 84e898c

Please sign in to comment.