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

similarity filtering seems to select "clones" of existing species #1

Open
amynang opened this issue Apr 25, 2022 · 1 comment
Open

Comments

@amynang
Copy link
Collaborator

amynang commented Apr 25, 2022

Hey,
similarity filtering behaves strangely, selecting groups of species that are really similar but dissimilar from other groups. I suspect the reason is that the algorithm is trying to minimize the sum of similarity not the average?

example

@amynang
Copy link
Collaborator Author

amynang commented Apr 25, 2022

I think it is (at least partly) an artifact of the fact that, with an allometric model for interactions, each species eats everything that falls within a range (which is not realistic). If you add

N <- 5e+05 # the number of random values to replace
inds <- round ( runif(N, 1, length(L)) ) # draw random values from [1, length(L)]
L[inds] <- 0 # use the random values as indicies to L, for which to replace

after line 18 in the example, average of non-zero similarities is lower after filtering.

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

No branches or pull requests

1 participant