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

Replace resolve_features with TemporalFeatureFormatter #59

Merged
merged 4 commits into from
Jun 3, 2022

Conversation

juanmc2005
Copy link
Owner

This PR addresses issue #48

Changelog

  • Add diart.features module to help in supporting different types of input features: SlidingWindowFeature, numpy.ndarray and torch.Tensor
  • Remove resolve_features()
  • Add TemporalFeatureFormatter
  • Add TemporalFeatureFormatter.cast() that can transform any feature to the expected input type with the expected shape
  • Add TemporalFeatureFormatter.restore_type() that can transform the given (output) features to the corresponding format depending on the type that was originally given as input

@juanmc2005 juanmc2005 added the refactoring Internal design improvements that don't change the API label May 31, 2022
@juanmc2005 juanmc2005 added this to the Version 0.4 milestone May 31, 2022
@juanmc2005 juanmc2005 self-assigned this May 31, 2022
@juanmc2005 juanmc2005 merged commit 3f8bd6b into develop Jun 3, 2022
@juanmc2005 juanmc2005 deleted the refactoring/features branch June 3, 2022 08:39
@juanmc2005 juanmc2005 mentioned this pull request Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Internal design improvements that don't change the API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant