Skip to content

Commit

Permalink
Update test with deleting extra spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aPovidlo committed Aug 19, 2024
1 parent 91c24a4 commit 313ad8a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/unit/preprocessing/test_preprocessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,24 @@ def data_with_complicated_types():
"""

task = Task(TaskTypesEnum.classification)
features = np.array([[0, np.nan, 1, 1, 1, 'monday', 'a ', 'true', 1, '0', 'a'],
features = np.array([[0, np.nan, 1, 1, 1, 'monday', 'a', 'true', 1, '0', 'a'],
[np.nan, 5, 2, 2, 0, 'tuesday', 'b', np.nan, 0, '1', np.inf],
[2, np.nan, 3, 3, np.nan, 3, 'c', 'false', 1, '?', 'c'],
[3, np.nan, 4, 4, 3.0, 4, ' a ', 'true', 0, 'error', 'd'],
[4, np.nan, 5, 5.0, 0, 5, ' b ', np.nan, 0, '3', 'e'],
[5, np.nan, 6, 6, 0, 6, ' c ', 'false', 0, '4', 'f'],
[6, np.inf, 7, 7, 0, 7, ' a ', 'true', 1, '5', 'g'],
[7, np.inf, 8, 8, 1.0, 1, ' b ', np.nan, 0, '6', 'h'],
[3, np.nan, 4, 4, 3.0, 4, 'a', 'true', 0, 'error', 'd'],
[4, np.nan, 5, 5.0, 0, 5, 'b', np.nan, 0, '3', 'e'],
[5, np.nan, 6, 6, 0, 6, 'c', 'false', 0, '4', 'f'],
[6, np.inf, 7, 7, 0, 7, 'a', 'true', 1, '5', 'g'],
[7, np.inf, 8, 8, 1.0, 1, 'b', np.nan, 0, '6', 'h'],
[np.inf, np.inf, '9', '9', 2, 2, np.nan, 'true', 1, '7', 'i'],
[9, np.inf, '10', '10', 2, 3, ' c ', 'false', 0, '8', 'j'],
[10, np.nan, 11.0, 11.0, 0, 4, 'c ', 'false', 0, '9', 'k'],
[9, np.inf, '10', '10', 2, 3, 'c', 'false', 0, '8', 'j'],
[10, np.nan, 11.0, 11.0, 0, 4, 'c', 'false', 0, '9', 'k'],
[11, np.nan, 12, 12, 2.0, 5, np.nan, 'false', 1, '10', 'l'],
[12, np.nan, 1, 1.0, 1.0, 6, ' b ', 'false', 0, '11', 'm'],
[13, np.nan, 2, 2, 1, 7, ' c ', 'true', np.nan, '12', 'n'],
[12, np.nan, 1, 1.0, 1.0, 6, 'b', 'false', 0, '11', 'm'],
[13, np.nan, 2, 2, 1, 7, 'c', 'true', np.nan, '12', 'n'],
[14, np.nan, 3, 3, 2.0, 1, 'a', 'false', np.nan, 'error', 'o'],
[15, np.nan, 4, 4, 1, 2, 'a ', 'false', np.nan, '13', 'p'],
[16, 2, 5, 12, 0, 3, ' d ', 'true', 1, '?', 'r'],
[17, 3, 6, 13, 0, 4, ' d ', 'false', 0, '17', 's']],
[15, np.nan, 4, 4, 1, 2, 'a', 'false', np.nan, '13', 'p'],
[16, 2, 5, 12, 0, 3, 'd', 'true', 1, '?', 'r'],
[17, 3, 6, 13, 0, 4, 'd', 'false', 0, '17', 's']],
dtype=object)
target = np.array([['no'], ['yes'], ['yes'], ['yes'], ['no'], ['no'], ['no'], ['no'], ['no'],
['yes'], ['yes'], ['yes'], ['yes'], ['yes'], ['no'], ['no'], ['yes'], ['no']])
Expand Down

0 comments on commit 313ad8a

Please sign in to comment.