-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add switch for embed() to return dfs or arrays
we need to return arrays rather than dfs if we have >2d result, for instance if we preserve spatial dimension. However, returning df is a useful default for scenarios where global avgpool is enabled and we just have a 1d feature per sample. So embed() now takes return_dfs flag, if False returns np array but default is True. If avgpool is set to False, overrides return_dfs to be False so that we can return >2d output.
- Loading branch information
Showing
2 changed files
with
68 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters