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
stopifnot("GLM wasn't trained with control variables or with remove offset effects." = !is.null(model@params$actual[["control_variables"]]) || isTRUE(model@params$actual[["remove_offset_effects"]]))
stop("GLM wasn't trained with both control variables and with remove offset effects feature set, the control_variables_enabled and remove_offset_effects_enabled features cannot be used.")
88
+
}
89
+
if ((!is.null(model@params$actual[["control_variables"]]) || isTRUE(model@params$actual[["remove_offset_effects"]]))
raiseH2OValueError("GLM wasn't trained with control variables or with remove offset effects.")
344
+
if (self.actual_params["control_variables"] isNoneornot(self.actual_params["remove_offset_effects"])) and (control_variables_enabledorremove_offset_effects_enabled):
345
+
raiseH2OValueError("GLM wasn't trained with both control variables and with remove offset effects feature set, the control_variables_enabled and remove_offset_effects_enabled features cannot be used.")
346
+
ifself.actual_params["control_variables"] isnotNoneandself.actual_params["remove_offset_effects"] and (control_variables_enabledandremove_offset_effects_enabled):
347
+
raiseH2OValueError("The control_variables_enabled and remove_offset_effects_enabled feature cannot be used together. It produces the same model as the main model.")
raiseH2OValueError("GLM wasn't trained with control variables or with remove offset effects.")
2857
+
if (self.actual_params["control_variables"] isNoneornot(self.actual_params["remove_offset_effects"])) and (control_variables_enabledorremove_offset_effects_enabled):
2858
+
raiseH2OValueError("GLM wasn't trained with both control variables and with remove offset effects feature set, the control_variables_enabled and remove_offset_effects_enabled features cannot be used.")
2859
+
ifself.actual_params["control_variables"] isnotNoneandself.actual_params["remove_offset_effects"] and (control_variables_enabledandremove_offset_effects_enabled):
2860
+
raiseH2OValueError("The control_variables_enabled and remove_offset_effects_enabled feature cannot be used together. It produces the same model as the main model.")
pyunit_utils.assert_not_equal(predictions.iloc[i, 1], predictions_cv.iloc[i, 1], f"Predictions at position {i} should differ but they don't!")
123
-
pyunit_utils.assert_not_equal(predictions.iloc[i, 1], predictions_ro.iloc[i, 1], f"Predictions at position {i} should differ but they don't!")
124
-
pyunit_utils.assert_not_equal(predictions.iloc[i, 1], predictions_cv_ro.iloc[i, 1], f"Predictions at position {i} should differ but they don't!")
125
-
pyunit_utils.assert_not_equal(predictions_unrestricted_cv_false_ro_true.iloc[i, 1], predictions_unrestricted_cv_true_ro_false.iloc[i, 1], f"Predictions at position {i} should differ but they don't!")
assert"GLM wasn't trained with both control variables and with remove offset effects feature set, the control_variables_enabled and remove_offset_effects_enabled features cannot be used."intemp, \
assert"The control_variables_enabled and remove_offset_effects_enabled feature cannot be used together. It produces the same model as the main model."intemp, \
stopifnot("GLM wasn't trained with control variables or with remove offset effects."=!is.null(model@params$actual[["control_variables"]]) || isTRUE(model@params$actual[["remove_offset_effects"]]))
stop("GLM wasn't trained with both control variables and with remove offset effects feature set, the control_variables_enabled and remove_offset_effects_enabled features cannot be used.")
851
+
}
852
+
if ((!is.null(model@params$actual[["control_variables"]]) || isTRUE(model@params$actual[["remove_offset_effects"]]))
0 commit comments