Skip to content

Commit

Permalink
Remove redundant sorting (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
msluszniak authored Dec 14, 2023
1 parent acb0673 commit 6438349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scholar/naive_bayes/gaussian.ex
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ defmodule Scholar.NaiveBayes.Gaussian do
num_classes = opts[:num_classes]
priors_flag = opts[:priors_flag]

classes = Nx.iota({num_classes}) |> Nx.sort()
classes = Nx.iota({num_classes})

class_priors =
case Nx.shape(class_priors) do
Expand Down

0 comments on commit 6438349

Please sign in to comment.