Skip to content

Commit

Permalink
minor style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jrzaurin committed Feb 16, 2024
1 parent 3901e07 commit 11ad157
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pytorch_widedeep/preprocessing/wide_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def inverse_transform(self, encoded: np.ndarray) -> pd.DataFrame:
"""
decoded = pd.DataFrame(encoded, columns=self.wide_crossed_cols)

if pd.__version__ >= '2.1.0':
if pd.__version__ >= "2.1.0":
decoded = decoded.map(lambda x: self.inverse_encoding_dict[x])
else:
decoded = decoded.applymap(lambda x: self.inverse_encoding_dict[x])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import string
from random import choices

import torch
import numpy as np
import torch
import pandas as pd
import pytest

Expand Down
2 changes: 1 addition & 1 deletion tests/test_tab2vec/test_t2v.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import string
from random import choices

import torch
import numpy as np
import torch
import pandas as pd
import pytest

Expand Down

0 comments on commit 11ad157

Please sign in to comment.