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

run time & memory table to graph ⚙️ #2

Merged
merged 1 commit into from
Oct 28, 2024
Merged

run time & memory table to graph ⚙️ #2

merged 1 commit into from
Oct 28, 2024

Conversation

gaetanbrison
Copy link
Collaborator

Hi Jun,

  • Optimization of the carte table to graph for run time and memory

Best,
Gaëtan

Copy link
Collaborator

@myungkim930 myungkim930 left a comment

Choose a reason for hiding this comment

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

I tried to test the new code on the wina_pl example and I ran into few problems:

  • When I ran the example, I saw that the results were different. When looking at the constructed data (on the wina_pl example) I found that the new code did not include the ABV variable. I think there is a mix up since ABV is being lower-cased.
  • When I ran the example only with numerical variables, it gave me the error.

Thank you!

if num_cat != 0:
data_cat = data_cat.str.replace("\n", " ", regex=True).str.lower()
data_num = X_numerical.iloc[idx]
data_cat = data_cat.dropna().str.lower()
Copy link
Collaborator

Choose a reason for hiding this comment

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

It gives an error here when we only have datasets with numerical features

if self.is_fitted_ == False:
self.is_fitted_ = True
if self.num_col_names:
num_cols_exist = [col for col in self.num_col_names if col in X.columns]
Copy link
Collaborator

Choose a reason for hiding this comment

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

the num_col_exist does not contain the ABV variable (for the wina_pl example), causing different results. I think there is a mix-up between the lower- and upper-cases.

@gaetanbrison gaetanbrison merged commit ffea291 into main Oct 28, 2024
0 of 4 checks passed
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