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
H2O version, Operating System and Environment
H2O: v3.42.0.1, Mac OS w/ M1 chip, R v4.3.1, no containers.
Actual behavior
h2o.r2() is very different from manually computed R2 (when used on automl). e.g. for iris: R^2 (reported by H2O): 0.9868298, R^2 (manually computed): -1.779279
Additional context
I used nfolds=0 to ensure that there was no cross-validation or train/test sets.
Then I reproduced R^2 manually using entire (iris) dataset.
The text was updated successfully, but these errors were encountered:
@profPlum There's a bug in the manual $R^2$ computation - the first value of the R's numeric vector gets broadcasted with the operation across the h2o column.
NOTE: Even with this you might notice that the manually calculated $R^2$ and H2O's $R^2$ differ. I believe that this is caused by train/test split that is used in AutoML when nfolds=0 (e.g. for early stopping). (difference between manual R^2 & H2O reported R^2: 0.0005075975).
NOTE 2: The as.numeric is probably unnecessary but I kept it there just in case you need it for your data.
H2O version, Operating System and Environment
H2O: v3.42.0.1, Mac OS w/ M1 chip, R v4.3.1, no containers.
Actual behavior
h2o.r2() is very different from manually computed R2 (when used on automl).
e.g. for iris: R^2 (reported by H2O): 0.9868298, R^2 (manually computed): -1.779279
Expected behavior
They should match ofc.
Steps to reproduce
See my SO question
Screenshots
N/A, use code to reproduce.
Additional context
I used nfolds=0 to ensure that there was no cross-validation or train/test sets.
Then I reproduced R^2 manually using entire (iris) dataset.
The text was updated successfully, but these errors were encountered: