Closed mortonjt closed 4 years ago
@fedarko / @lisa55asil , thank you for your comments earlier. This is a minor change, but could help with diagnosing model fit. Feel free to comment - I'm hoping to merge this in tomorrow.
Having an explanation for this is nice! I know you already merged this in (sorry for the response delay), but here are my thoughts:
_Q<sup>2</sup>_
) when referring to this value, since otherwise I think people might confuse this for "Explaining QIIME 2"...could become something like (dependent on where you end up putting the q2 value explanations in the README)
if q2 is not None:
index_f.write(
'<p><strong><a href="https://github.com/biocore/songbird#43-explaining-q2">Pseudo Q-squared:</a></strong> %f</p>\n' % q2
)
None of this is super critical, but I think these would be useful complementary changes. I can write this up in a GitHub issue or something if you'd like. (don't really have time at present to dive back into editing the docs for this, sorry...)
These are good ideas - let me wrap up a PR for this tomorrow.
Addresses #82 . Also removing the table arguments as suggested by @fedarko
We're simplifying the computation of the q2. Namely it is Q2=1 - model/baseline
where
model = average model error
baseline = average baseline error
Its similar to the Q2 statistic - but we are using mean absolute error instead of sum of squares error here. See reference below
https://stats.stackexchange.com/questions/292673/validation-metrics-r2-and-q2-for-partial-least-squares-pls-regression https://inf.ethz.ch/personal/mcbrian/pdfs/press_paper_V2.pdf