Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
fabsig committed Jun 10, 2022
1 parent 701835f commit cb58a7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ plot(b, pred_random_effects, xlab="truth", ylab="predicted",
points(b_random_slope, pred_random_slopes, col=2, pch=2, lwd=1.5)
points(b_crossed, pred_random_effects_crossed, col=4, pch=4, lwd=1.5)

# Random slope model in which a intercept random effect is dropped / not included
# Random slope model in which an intercept random effect is dropped / not included
gp_model <- fitGPModel(group_data = cbind(group,group_crossed), group_rand_coef_data = x,
ind_effect_group_rand_coef = 1, drop_intercept_group_rand_effect = c(TRUE,FALSE),
likelihood = likelihood, y = y_crossed_random_slope, X = X)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def simulate_response_variable(lp, rand_eff, likelihood):
plt.title("Comparison of true and predicted random effects")
plt.show(block=False)

# Random slope model in which a intercept random effect is dropped / not included
# Random slope model in which an intercept random effect is dropped / not included
gp_model = gpb.GPModel(group_data=group_data, group_rand_coef_data=x,
ind_effect_group_rand_coef=[1],
drop_intercept_group_rand_effect=[True,False], likelihood=likelihood)
Expand Down
2 changes: 1 addition & 1 deletion python-package/gpboost/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3968,7 +3968,7 @@ def __init__(self, likelihood="gaussian",
drop_intercept_group_rand_effect : list, numpy 1-D array, pandas Series / one-column DataFrame with bool data or None, optional (default=None)
Indicates whether intercept random effects are dropped (only for random coefficients).
If drop_intercept_group_rand_effect[k] is True, the intercept random effect number k is dropped / not included.
Only random effects with random slopes can be dropped.
Only random effects with random slopes can be dropped
gp_coords : numpy array or pandas DataFrame with numeric data or None, optional (default=None)
Coordinates (= inputs / features) for defining Gaussian processes
gp_rand_coef_data : numpy array or pandas DataFrame with numeric data or None, optional (default=None)
Expand Down

0 comments on commit cb58a7d

Please sign in to comment.