Skip to content

Commit

Permalink
Fix bug: add .h5 file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
xpai committed Jan 10, 2024
1 parent 1f0e793 commit e67c20d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
+ [Edit] Rename FINAL model to FinalNet
+ [Edit] Update RecZoo URLs
+ [Fix] Fix bug #75
+ [Fix] Fix h5 file extenstion issue

**FuxiCTR v2.1.2, 2023-11-01**
+ [Edit] Update H5DataBlockLoader to support dataloader with multiprocessing
Expand Down
3 changes: 2 additions & 1 deletion fuxictr/preprocess/feature_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def fit(self, train_ddf, min_categr_count=1, num_buckets=10, **kwargs):
elif col["type"] == "numeric":
self.fit_numeric_col(col, train_ddf[name].values)
elif col["type"] == "categorical":

self.fit_categorical_col(col, train_ddf[name].values,
min_categr_count=min_categr_count,
num_buckets=num_buckets)
Expand All @@ -130,7 +131,7 @@ def fit(self, train_ddf, min_categr_count=1, num_buckets=10, **kwargs):
if "pretrain_dim" in col:
self.feature_map.features[name]["pretrain_dim"] = col["pretrain_dim"]
shutil.copy(col["pretrained_emb"],
os.path.join(self.data_dir, "pretrained_{}".format(name)))
os.path.join(self.data_dir, "pretrained_{}.h5".format(name)))
self.feature_map.features[name]["pretrained_emb"] = "pretrained_{}.h5".format(name)
self.feature_map.features[name]["freeze_emb"] = col.get("freeze_emb", True)
self.feature_map.features[name]["pretrain_usage"] = col.get("pretrain_usage", "init")
Expand Down

0 comments on commit e67c20d

Please sign in to comment.