Skip to content

Commit

Permalink
Renamed CategoricalToNumerical
Browse files Browse the repository at this point in the history
  • Loading branch information
abgese authored and haifeng-jin committed Oct 30, 2020
1 parent 1c24d39 commit 52ea73f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autokeras/preprocessors/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_config(self):
return {"lookback": self.lookback, "batch_size": self.batch_size}


class CategoricalToNumerical(preprocessor.Preprocessor):
class CategoricalToNumericalPreprocessor(preprocessor.Preprocessor):
"""Encode the categorical features to numerical features.
# Arguments
Expand Down
2 changes: 1 addition & 1 deletion tests/autokeras/preprocessors/common_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_time_series_input_transform():

def test_categorical_to_numerical_input_transform():
x_train = np.array([["a", "ab", 2.1], ["b", "bc", 1.0], ["a", "bc", "nan"]])
preprocessor = common.CategoricalToNumerical(
preprocessor = common.CategoricalToNumericalPreprocessor(
column_names=["column_a", "column_b", "column_c"],
column_types={
"column_a": "categorical",
Expand Down

0 comments on commit 52ea73f

Please sign in to comment.