-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Henry
committed
May 2, 2024
1 parent
ef64675
commit 0d3b503
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import numpy as np | ||
import numpy.testing as npt | ||
import pandas as pd | ||
import sklearn.preprocessing as preprocessing | ||
|
||
from njab.sklearn.preprocessing import StandardScaler | ||
|
||
|
||
def test_StandardScaler(): | ||
X = pd.DataFrame(np.array([[2, None], [3, 2], [4, 6]])) | ||
npt.assert_almost_equal(preprocessing.StandardScaler().fit(X).transform(X), | ||
StandardScaler().fit(X).transform(X).to_numpy()) |