Skip to content

feat: support for wavelets pipe op #149

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

Merged
merged 13 commits into from
Jul 2, 2025
Merged

feat: support for wavelets pipe op #149

merged 13 commits into from
Jul 2, 2025

Conversation

m-muecke
Copy link
Member

@m-muecke m-muecke commented Apr 16, 2025

@m-muecke m-muecke added the enhancement New feature or request label Apr 16, 2025
@m-muecke m-muecke requested a review from sebffischer April 16, 2025 12:54
private = list(
.transform_dt = function(dt, levels) {
pars = self$param_set$get_values()
filter = pars$filter %??% "la8"
Copy link
Member

Choose a reason for hiding this comment

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

so this actuall a initial value, not a default?

Copy link
Member Author

Choose a reason for hiding this comment

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

this is the default, I just require the value for the names, hence the nullish coalescing operator here

Copy link
Member

Choose a reason for hiding this comment

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

ok!

tf::tf_evaluations(x),
function(x) {
wt = invoke(wavelets::dwt, X = x, .args = pars)
feats = unlist(c(wt@W, wt@V[[wt@level]]), use.names = FALSE)
Copy link
Member

Choose a reason for hiding this comment

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

can you comment what happens here?

Copy link
Member Author

Choose a reason for hiding this comment

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

it extracts the wavelet coefficients (w@W) at all levels and concatenates the scaling coefficient (wt@V) at the specified level of wavelet decomposition

Copy link
Member

Choose a reason for hiding this comment

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

but these are vectors? What does the t() afterwards do exactly?

Copy link
Member Author

Choose a reason for hiding this comment

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

it transforms each entry into a column instead of having a single column for all entries

Copy link
Member

@sebffischer sebffischer left a comment

Choose a reason for hiding this comment

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

..

@sebffischer sebffischer merged commit f54c6d8 into main Jul 2, 2025
3 checks passed
@sebffischer sebffischer deleted the wavelets branch July 2, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Wavelets feature extraction
2 participants