Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
srzeszut committed Oct 20, 2024
1 parent 642b15e commit 520633a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scholar/impute/knn_imputer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ defmodule Scholar.Impute.KNNImputer do
## Examples
iex> x = Nx.tensor([[40.0, 2.0],[4.0, 5.0],[7.0, :nan],[:nan, 8.0],[11.0, 11.0]])
iex> imputer = Scholar.Impute.KNNImputer.fit(x, strategy: :mean)
iex> imputer = Scholar.Impute.KNNImputer.fit(x, number_of_neighbors: 2)
iex> Scholar.Impute.KNNImputer.transform(imputer, x)
Nx.tensor(
[
Expand Down

0 comments on commit 520633a

Please sign in to comment.