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

Regularization #52

Merged
merged 3 commits into from
Jul 26, 2020
Merged

Regularization #52

merged 3 commits into from
Jul 26, 2020

Conversation

MaximilianPi
Copy link
Member

Changes:

  • importance function:
    old: rowSums( cov2cor(covariance)^2 ) / sqrt(ncol(covariance ))
    new: abs( rowSums( covariance ) - diag(covariance ) ) / ncol(covariance)
    • absolute: negative values don't work with the 0-1scaling
    • /ncol(sp): biotic part would scale still unfavorably with the number of species
    • using only covariances because we are interested in the biotic contributions
  • Anova/sjSDM_cv/sjSDM, default sampling was increased to 1000. In the tuning function we are comparing a lot of different models with only small differences. Without a sufficient number of samples for the MC approximation, the model differences are lost in the MC approximation variations.
  • regularization on the inverse covariance matrix works now properly

@MaximilianPi MaximilianPi merged commit c2875a8 into master Jul 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant