Skip to content

Commit

Permalink
Release v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jan 15, 2025
1 parent 7fdfb7d commit 227858f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/scholar/cluster/optics.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ defmodule Scholar.Cluster.OPTICS do
max_eps: [
type: {:custom, Scholar.Options, :beta, []},
doc: """
The maximum distance between two samples for one to be considered as in the neighborhood of the other.
The maximum distance between two samples for one to be considered as in the neighborhood of the other.
Default value of Nx.Constants.infinity() will identify clusters across all scales.
"""
],
eps: [
type: {:custom, Scholar.Options, :beta, []},
doc: """
The maximum distance between two samples for one to be considered as in the neighborhood of the other.
The maximum distance between two samples for one to be considered as in the neighborhood of the other.
By default it assumes the same value as max_eps.
"""
],
Expand All @@ -58,7 +58,7 @@ defmodule Scholar.Cluster.OPTICS do
@opts_schema NimbleOptions.new!(opts)

@doc """
Perform OPTICS clustering for `x` which is tensor of `{n_samples, n_features} shape.
Perform OPTICS clustering for `x` which is tensor of `{n_samples, n_features}` shape.
## Options
Expand All @@ -67,7 +67,7 @@ defmodule Scholar.Cluster.OPTICS do
## Return Values
The function returns a labels tensor of shape `{n_samples}`.
Cluster labels for each point in the dataset given to fit().
Cluster labels for each point in the dataset given to `fit`.
Noisy samples are labeled as -1.
## Examples
Expand Down
3 changes: 2 additions & 1 deletion lib/scholar/preprocessing.ex
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ defmodule Scholar.Preprocessing do
end

@doc """
It is a shortcut for `Scholar.Preprocessing.OrdinalEncoder.fit_transform/2`.
It is a shortcut for `Scholar.Preprocessing.OrdinalEncoder.fit_transform/1`.
See `Scholar.Preprocessing.OrdinalEncoder` for more information.
## Examples
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Scholar.MixProject do
use Mix.Project

@source_url "https://github.com/elixir-nx/scholar"
@version "0.3.1"
@version "0.4.0"

def project do
[
Expand Down

0 comments on commit 227858f

Please sign in to comment.