Skip to content

Commit

Permalink
✨ Move test from pimms to njab (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Webel authored Jun 7, 2024
1 parent da0255b commit 90b57d5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test_sklearn.py
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())

0 comments on commit 90b57d5

Please sign in to comment.