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

GAM failed with numknot=2 #6907

Closed
exalate-issue-sync bot opened this issue May 11, 2023 · 3 comments
Closed

GAM failed with numknot=2 #6907

exalate-issue-sync bot opened this issue May 11, 2023 · 3 comments
Assignees

Comments

@exalate-issue-sync
Copy link

No description provided.

@exalate-issue-sync
Copy link
Author

Wendy Wong commented: From [~accountid:61953434c510bc006b344b83] , this code is failing:

{noformat}# set the predictor and response columns
y = "wage"
x = ["year","age"]

build the GAM model

h2o_model = H2OGeneralizedAdditiveEstimator(family='gaussian',
bs=[2],
gam_columns=["age"],
scale=[1],
seed=9,
num_knots = [2],
spline_orders = [1])

N+k-2 = (num_knots) + (spline_orders) - 2 = 2 + 1 - 2 = 1

h2o_model.train(x=x, y=y, training_frame=train)

get the model coefficients

h2oCoeffs = h2o_model.coef()
h2oCoeffs{noformat}

@h2o-ops
Copy link
Collaborator

h2o-ops commented May 14, 2023

JIRA Issue Details

Jira Issue: PUBDEV-8865
Assignee: Wendy Wong
Reporter: Wendy Wong
State: Resolved
Fix Version: 3.38.0.3
Attachments: N/A
Development PRs: Available

@h2o-ops
Copy link
Collaborator

h2o-ops commented May 14, 2023

Linked PRs from JIRA

#6385
https://github.com/h2oai/h2oai-serving/pull/1135

@h2o-ops h2o-ops closed this as completed May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants