Skip to content

Commit

Permalink
minor upgrades in wavelets
Browse files Browse the repository at this point in the history
  • Loading branch information
v1docq committed Oct 21, 2024
1 parent 25f5497 commit df16eef
Show file tree
Hide file tree
Showing 3 changed files with 714 additions and 11 deletions.

Large diffs are not rendered by default.

Empty file.
4 changes: 3 additions & 1 deletion fedot_ind/core/operation/transformation/basis/wavelet.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def __init__(self, params: Optional[OperationParameters] = None):
super().__init__(params)
self.n_components = params.get('n_components')
self.wavelet = params.get('wavelet')
self.use_low_freq = params.get('low_freq', False)
self.basis = None
self.discrete_wavelets = DISCRETE_WAVELETS
self.continuous_wavelets = CONTINUOUS_WAVELETS
Expand Down Expand Up @@ -66,7 +67,8 @@ def threshold(Monoid): return ListMonad([Monoid[0][

basis = Either.insert(data).then(decompose).then(threshold).value[0]
basis = np.concatenate(basis)
return basis

return basis[-1, :] if self.use_low_freq else basis

def _get_multidim_basis(self, data):
def decompose(multidim_signal):
Expand Down

0 comments on commit df16eef

Please sign in to comment.