Skip to content

Commit

Permalink
Fromat
Browse files Browse the repository at this point in the history
  • Loading branch information
msluszniak committed Nov 3, 2023
1 parent a3b2a82 commit b231377
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/scholar/linear/isotonic_regression.ex
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ defmodule Scholar.Linear.IsotonicRegression do
false ->
Nx.u8(0)
end

# increasing = Nx.u8(1)

fit_n(x, y, sample_weights, increasing, opts)
Expand Down
4 changes: 2 additions & 2 deletions lib/scholar/manifold/mds.ex
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ defmodule Scholar.Manifold.MDS do
dissimilarities = Distance.pairwise_euclidean(dissimilarities)

{{best, best_stress, best_iter}, _} =
while {{best = x, best_stress = Nx.Constants.infinity(type),
best_iter = 0}, {n_init, dissimilarities, x, i = 0}},
while {{best = x, best_stress = Nx.Constants.infinity(type), best_iter = 0},
{n_init, dissimilarities, x, i = 0}},
i < n_init do
{temp, stress, iter} = smacof(dissimilarities, x, opts[:max_iter], opts)

Expand Down

0 comments on commit b231377

Please sign in to comment.