Skip to content

Commit

Permalink
Update lib/scholar/covariance/utils.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Krsto Proroković <[email protected]>
  • Loading branch information
norm4nn and krstopro authored Nov 12, 2024
1 parent 5323af1 commit 34f8574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scholar/covariance/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Scholar.Covariance.Utils do
import Nx.Defn
require Nx

defn center(x, assume_centered \\ false) do
defn center(x, assume_centered? \\ false) do

Check warning on line 6 in lib/scholar/covariance/utils.ex

View workflow job for this annotation

GitHub Actions / main (1.14.5, 26.1)

variable "assume_centered?" is unused (if the variable is not meant to be used, prefix it with an underscore)
x =
case Nx.shape(x) do
{_} -> Nx.new_axis(x, 1)
Expand Down

0 comments on commit 34f8574

Please sign in to comment.