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

Add SC-DyNeMo to models. #218

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from
Draft

Add SC-DyNeMo to models. #218

wants to merge 29 commits into from

Conversation

evanr70
Copy link
Contributor

@evanr70 evanr70 commented Jan 25, 2024

Adds DampedOscillatorCovarianceMatricesLayer and a model for single-channel DyNeMo on time-embedded data.

The model is defined by the auto-correlation function of each mode, given by:

$$ R_j (\tau) = A_j e^{- \lambda_j \tau}\cos(2 \pi f_j \tau) $$

where,

  • $\lambda_j$ is the damping factor
  • $f_j$ is the frequency of the oscillator
  • $A_j$ is the amplitude

for the $j$-th mode.

The ACFs form the first row of a symmetric Toeplitz matrix:

$$ \Sigma_j = \begin{bmatrix} R_j(0) & R_j(1) & \dots & R_j(p-1) \\ R_j(1) & R_j(0) & \dots & R_j(p-2) \\ \vdots & \vdots & \ddots & \vdots \\ R_j(p-1) & R_j(p-2) & \dots & R_j(0) \end{bmatrix} $$

where $p$ is the embedding dimension.

@evanr70 evanr70 marked this pull request as draft January 25, 2024 20:43
@cgohil8 cgohil8 self-assigned this Jan 26, 2024
@cgohil8 cgohil8 added the enhancement New feature or request label Jan 26, 2024
@cgohil8
Copy link
Collaborator

cgohil8 commented Jan 26, 2024

I really like the new approach (with a custom class) to handle errors! Let's create a new module in osl_dynamics.utils for errors which we can add to in the future - i'll do this.

@evanr70
Copy link
Contributor Author

evanr70 commented Jan 26, 2024

Failing format check is on files I've not edited. Any idea what that's about? Has changed since yesterday.

@cgohil8
Copy link
Collaborator

cgohil8 commented Jan 26, 2024

Bizarre, no idea. But not a big deal in my opinion, just format the file and commit.

@evanr70 evanr70 marked this pull request as ready for review January 26, 2024 15:30
@evanr70 evanr70 marked this pull request as draft February 1, 2024 11:40
@cgohil8
Copy link
Collaborator

cgohil8 commented May 15, 2024

@evanr70 are you still working on this?

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.

None yet

3 participants