Skip to content

Commit

Permalink
Update lib/scholar/linear/bayesian_ridge_regression.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Krsto Proroković <krstopro@yahoo.com>
  • Loading branch information
JoaquinIglesiasTurina and krstopro authored Apr 5, 2024
1 parent 287eb6a commit 3694a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scholar/linear/bayesian_ridge_regression.ex
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ defmodule Scholar.Linear.BayesianRidgeRegression do

iterations = opts[:iterations]

xt_y = Nx.dot(Nx.transpose(x), y)
xt_y = Nx.dot(x, [0], y, [0])
{u, s, vh} = Nx.LinAlg.svd(x, full_matrices?: false)
eigenvals = Nx.pow(s, 2)
{n_samples, n_features} = Nx.shape(x)
Expand Down

0 comments on commit 3694a0d

Please sign in to comment.