Skip to content

Commit

Permalink
Update lib/scholar/covariance/ledoit_wolf.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Paulo Valente <[email protected]>
  • Loading branch information
norm4nn and polvalente authored Oct 31, 2024
1 parent 6efc807 commit 08285ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/scholar/covariance/ledoit_wolf.ex
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ defmodule Scholar.Covariance.LedoitWolf do
x2 = Nx.pow(x, 2)
emp_cov_trace = Nx.sum(x2, axes: [0]) / n_samples
mu = Nx.sum(emp_cov_trace) / n_features
beta = Nx.tensor(0.0, type: {:f, size})
delta = Nx.tensor(0.0, type: {:f, size})
delta = beta = Nx.tensor(0.0, type: {:f, size})
i = Nx.tensor(0)
block = Nx.iota({block_size})

Expand Down

0 comments on commit 08285ae

Please sign in to comment.