Skip to content

Commit

Permalink
Update lib/scholar/linear/linear_helpers.ex
Browse files Browse the repository at this point in the history
Co-authored-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
JoaquinIglesiasTurina and josevalim authored Jul 28, 2024
1 parent 27e8cc6 commit 55106de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scholar/linear/linear_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defmodule Scholar.Linear.LinearHelpers do

if not is_valid_target? do
message =
"#{module_name} expected y to have shape {n_samples}, got tensor with shape: #{inspect(Nx.shape(y))}"
"#{inspect(module_name)} expected y to have shape {n_samples}, got tensor with shape: #{inspect(Nx.shape(y))}"

raise ArgumentError, message
else
Expand Down

0 comments on commit 55106de

Please sign in to comment.