You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to use CoDaCoRe to "reverse engineer" a balance? With that I mean, say you already have candidate species which you want to test. Can you plug these species in and use CoDaCoRe machinery to test their predictive ability? It may be fat fetched and perhaps easier to do in a different way.
Thanks,
Johannes
The text was updated successfully, but these errors were encountered:
I can think of 3 different ways to interpret your question, here are my thoughts for each:
You have defined a candidate log-ratio ahead of time and want to test it's predictive power. This case is simple: you can just compute the log-ratio, call it x, and then fit a (logistic) regression y~x where y is your (binary) outcome of interest. No codacore needed :)
You have a candidate subset of species known ahead of time, and want to find a predictive log-ratio that is constructed from this subset, but you don't know a priori which species should go into the numerator or denominator. This case is also simple: you can create a reduced dataset where you select the candidate species only (i.e., discard all other species), and pass the reduced dataset to codacore.
You have some particular species that a priori you would like to include in a predictive log-ratio, but you don't know what other species it should be combined with. In other words, how to find a predictive log-ratio, such that species A is included? This is trickier, but I think codacore could be adapted for such cases, though it would require fiddling with the internals. The idea is to change the optimization code to use an initialization that is not completely "neutral" but rather one that favors the selection of species A. Sort of like giving the algorithm a strong prior to select species A. If you wanted to try implementing this, my suggestion would be to edit this line, by changing initializer_zeros() to something like keras_array(custom_initialization) where the you can try passing a vector of zeros, but with a positive value in place of the position of species A.
Hi Elliott,
Would it be possible to use CoDaCoRe to "reverse engineer" a balance? With that I mean, say you already have candidate species which you want to test. Can you plug these species in and use CoDaCoRe machinery to test their predictive ability? It may be fat fetched and perhaps easier to do in a different way.
Thanks,
Johannes
The text was updated successfully, but these errors were encountered: