Skip to content

improve copy categorical imputer - #741

Merged
solegalli merged 1 commit into
mainfrom
categoricalimputation_seo
Apr 19, 2024
Merged

improve copy categorical imputer#741
solegalli merged 1 commit into
mainfrom
categoricalimputation_seo

Conversation

@solegalli

Copy link
Copy Markdown
Collaborator

No description provided.

values. There are **2 main imputation methods** that are used to replace missing data in
categorical variables. One method consists of replacing the missing values with the most
frequent category. The second method consists of replacing missing values with a dedicated
string, for example, "Missing."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
string, for example, "Missing."
string, for example, "Missing".

Comment on lines +56 to +58
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42)
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)

@solegalli
solegalli merged commit ea4e3f8 into main Apr 19, 2024
@solegalli
solegalli deleted the categoricalimputation_seo branch April 19, 2024 15:04
solegalli added a commit that referenced this pull request May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants