Skip to content

Commit

Permalink
refactor(KDP): splitting into multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrlaczkowski committed Mar 13, 2024
1 parent 10772e9 commit 8472676
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
File renamed without changes.
9 changes: 0 additions & 9 deletions kdp/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,6 @@ def _embedding_size_rule(self, nr_categories: int) -> int:
"""
return min(500, round(1.6 * nr_categories**0.56))

def add_feature_preprocessor(self, feature_name: str, preprocessor: FeaturePreprocessor) -> None:
"""Add a feature preprocessor to the model.
Args:
feature_name: The name of the feature.
preprocessor: The feature preprocessor.
"""
self.preprocessors[feature_name] = preprocessor

def _add_input_column(self, feature_name: str, dtype) -> None:
"""Add an input column to the model.
Expand Down

0 comments on commit 8472676

Please sign in to comment.