Skip to content

Commit 7fdfb7d

Browse files
committedJan 15, 2025·
Release v0.4.0
1 parent 32d2541 commit 7fdfb7d

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed
 

‎CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## v0.4.0 (2025-01-15)
4+
5+
* Require Nx `~> 0.9`
6+
* Add batching to regression metrics
7+
* Add `Scholar.Cluster.OPTICS`
8+
* Add `Scholar.Covariance.LedoitWolf`
9+
* Add `Scholar.Covariance.ShrunkCovariance`
10+
* Add `Scholar.CrossDecomposition.PLSSVD`
11+
* Add `Scholar.Decomposition.TruncatedSVD`
12+
* Add `Scholar.Impute.KNNImputter`
13+
* Add `Scholar.NaiveBayes.Bernoulli`
14+
* Add `Scholar.Preprocessing.Binarizer`
15+
* Add `Scholar.Preprocessing.RobustScaler`
16+
* Add `partial_fit/2` and `incremental_fit/2` to PCA
17+
* Split `RNN` into `Scholar.Neighbors.RadiusNNClassifier` and `Scholar.Neighbors.RadiusNNRegressor`
18+
* Unify shape checks across all APIs
19+
320
## v0.3.1 (2024-06-18)
421

522
### Enhancements

‎lib/scholar/covariance/ledoit_wolf.ex

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
defmodule Scholar.Covariance.LedoitWolf do
22
@moduledoc """
3-
Ledoit-Wolf is a particular form of shrinkage covariance estimator, where the shrinkage coefficient is computed using O. Ledoit and M. Wolf’s formula.
3+
Ledoit-Wolf is a particular form of shrinkage covariance estimator,
4+
where the shrinkage coefficient is computed using O. Ledoit and M. Wolf’s formula.
45
56
Ledoit and M. Wolf's formula as
67
described in "A Well-Conditioned Estimator for Large-Dimensional
@@ -67,7 +68,7 @@ defmodule Scholar.Covariance.LedoitWolf do
6768
f32[2]
6869
[0.17184630036354065, 0.3276958167552948]
6970
>
70-
71+
7172
iex> key = Nx.Random.key(0)
7273
iex> {x, _new_key} = Nx.Random.multivariate_normal(key, Nx.tensor([0.0, 0.0, 0.0]), Nx.tensor([[3.0, 2.0, 1.0], [1.0, 2.0, 3.0], [1.3, 1.0, 2.2]]), shape: {10}, type: :f32)
7374
iex> model = Scholar.Covariance.LedoitWolf.fit(x)
@@ -85,7 +86,7 @@ defmodule Scholar.Covariance.LedoitWolf do
8586
f32
8687
0.1908363401889801
8788
>
88-
iex> model.location
89+
iex> model.location
8990
#Nx.Tensor<
9091
f32[3]
9192
[1.1228725910186768, 0.5419300198554993, 0.8678852319717407]

‎lib/scholar/preprocessing/binarizer.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defmodule Scholar.Preprocessing.Binarizer do
22
@moduledoc """
3-
Binarize data according to a threshold.
3+
Binarize data according to a threshold.
44
"""
55
import Nx.Defn
66

‎mix.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"earmark_parser": {:hex, :earmark_parser, "1.4.42", "f23d856f41919f17cd06a493923a722d87a2d684f143a1e663c04a2b93100682", [:mix], [], "hexpm", "6915b6ca369b5f7346636a2f41c6a6d78b5af419d61a611079189233358b8b8b"},
77
"elixir_make": {:hex, :elixir_make, "0.9.0", "6484b3cd8c0cee58f09f05ecaf1a140a8c97670671a6a0e7ab4dc326c3109726", [:mix], [], "hexpm", "db23d4fd8b757462ad02f8aa73431a426fe6671c80b200d9710caf3d1dd0ffdb"},
88
"ex_doc": {:hex, :ex_doc, "0.36.1", "4197d034f93e0b89ec79fac56e226107824adcce8d2dd0a26f5ed3a95efc36b1", [:mix], [{:earmark_parser, "~> 1.4.42", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "d7d26a7cf965dacadcd48f9fa7b5953d7d0cfa3b44fa7a65514427da44eafd89"},
9-
"exla": {:hex, :exla, "0.9.1", "1e8ecd2a6106e86ec1d132fd80cc3992c6c5a8b3b6b1867abd12bf650e6ccd67", [:make, :mix], [{:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}, {:nimble_pool, "~> 1.0", [hex: :nimble_pool, repo: "hexpm", optional: false]}, {:nx, "~> 0.9.0", [hex: :nx, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:xla, "~> 0.8.0", [hex: :xla, repo: "hexpm", optional: false]}], "hexpm", "a44f10f2eafe802dab325b86eaf746ec578a408467731a83f4ddec9b05d50667"},
9+
"exla": {:hex, :exla, "0.9.2", "2b5cb7334f79fedc301502a793ffd10bc1ec8de2c61eebabcabf213fc98ae7e6", [:make, :mix], [{:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}, {:nimble_pool, "~> 1.0", [hex: :nimble_pool, repo: "hexpm", optional: false]}, {:nx, "~> 0.9.0", [hex: :nx, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:xla, "~> 0.8.0", [hex: :xla, repo: "hexpm", optional: false]}], "hexpm", "e51085e196b466d235e93d9f5ea2cbf7d90315d216aa02e996f99bcaaa19c593"},
1010
"jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"},
1111
"makeup": {:hex, :makeup, "1.2.1", "e90ac1c65589ef354378def3ba19d401e739ee7ee06fb47f94c687016e3713d1", [:mix], [{:nimble_parsec, "~> 1.4", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "d36484867b0bae0fea568d10131197a4c2e47056a6fbe84922bf6ba71c8d17ce"},
1212
"makeup_elixir": {:hex, :makeup_elixir, "1.0.1", "e928a4f984e795e41e3abd27bfc09f51db16ab8ba1aebdba2b3a575437efafc2", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "7284900d412a3e5cfd97fdaed4f5ed389b8f2b4cb49efc0eb3bd10e2febf9507"},

0 commit comments

Comments
 (0)
Please sign in to comment.