-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
private = list( | ||
.transform_dt = function(dt, levels) { | ||
pars = self$param_set$get_values() | ||
filter = pars$filter %??% "la8" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
..
closes: #133
This is a port of the mlr2 implementation, see: https://github.com/mlr-org/mlr/blob/b1e2af9f4d6573aaeaa1e1f5b1bb4782a313226c/R/extractFDAFeaturesMethods.R#L126