Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor fixes. update helper, autoencoder and main.py #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

siddheshtv
Copy link

Problem 1:

preprocessing.OneHotEncoder() function throws error message that the argument categorical_features is unexpected

Fix 1:

# Ensure categorical columns are properly encoded using OneHotEncoder
one_hot_encoder = preprocessing.OneHotEncoder(categories='auto', sparse=False, handle_unknown='ignore')
one_hot_encoded_cols = one_hot_encoder.fit_transform(dataset[:, categorical_cols])

Problem 2:

np.bool is depracated. Throws an error when running main.py

Fix 2:

Replace np.bool with bool

Problem 3:

When running with default model: autoencoder
accuracy function from autoencoder.py throws error:

temp = K.ones(K.shape(mse)) seems to be causing an out-of-scope error.

Fix 3:

Replace temp = K.ones(K.shape(mse)) with temp = K.ones_like(mse)

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.

1 participant