|
599 | 599 | "source": [ |
600 | 600 | "## How does `hsgp()` work?\n", |
601 | 601 | "\n", |
602 | | - "`hsgp()` is a transformation that is available in the namespace where the model formula is evaluated. In plain english, `hsgp()` is like a function you can use in your model formulas. You don't need to worry about the details, Bambi knows how to handle them.But if still you want to see the actual code, you can have a look at the implementation of the `HSGP` class in [bambi/transformations.py](https://github.com/bambinos/bambi/blob/main/bambi/transformations.py).\n", |
| 602 | + "`hsgp()` is a transformation that is available in the namespace where the model formula is evaluated. In plain English, `hsgp()` is like a function you can use in your model formulas. You don't need to worry about the details, Bambi knows how to handle them. But if still you want to see the actual code, you can have a look at the implementation of the `HSGP` class in [bambi/transformations.py](https://github.com/bambinos/bambi/blob/main/bambi/transformations.py).\n", |
603 | 603 | "\n", |
604 | 604 | "What users do need to care about is the arguments the `hsgp()` transformation support. There are a bunch of arguments that can be passed after the variable number of non-keyword arguments representing the variables of the HSGP contribution. Below is a brief overview of these arguments and their respective descriptions.\n", |
605 | 605 | "\n", |
|
610 | 610 | "* `cov`: This argument specifies the name of the covariance function to be used. The default value is `\"ExpQuad\"`.\n", |
611 | 611 | "* `share_cov`: Determines whether the same covariance function is shared across all groups. This argument is relevant only when by is not `None` and the default value is `True`. \n", |
612 | 612 | "* `scale`: When set to `True`, the predictors are be rescaled such that the largest Euclidean distance between two points is 1. This adjustment often improves the sampling speed and convergence. \n", |
613 | | - "* `iso`: Determines whether to use an isotropic or non-isotropic Gaussian Process. With an isotropic GP, the same level of smoothing is applied to all predictors, while a anisotropic GP allows different levels of smoothing for individual predictors. Note that this argument is ignored if only one predictor is provided. The default value is `True`.\n", |
| 613 | + "* `iso`: Determines whether to use an isotropic or anisotropic (non-isotropic) Gaussian Process. With an isotropic GP, the same level of smoothing is applied to all predictors, while an anisotropic GP allows different levels of smoothing for individual predictors. Note that this argument is ignored if only one predictor is provided. The default value is `True`.\n", |
614 | 614 | "* `drop_first`: Whether to exclude the first basis vector or not. The default value is `False`.\n", |
615 | 615 | "* `centered`: Whether to use the centered or the non-centered parametrization. Defaults to `False`.\n", |
616 | 616 | "\n", |
|
1546 | 1546 | ], |
1547 | 1547 | "metadata": { |
1548 | 1548 | "kernelspec": { |
1549 | | - "display_name": "dev", |
| 1549 | + "display_name": "Python [conda env:base] *", |
1550 | 1550 | "language": "python", |
1551 | | - "name": "python3" |
| 1551 | + "name": "conda-base-py" |
1552 | 1552 | }, |
1553 | 1553 | "language_info": { |
1554 | 1554 | "codemirror_mode": { |
|
1560 | 1560 | "name": "python", |
1561 | 1561 | "nbconvert_exporter": "python", |
1562 | 1562 | "pygments_lexer": "ipython3", |
1563 | | - "version": "3.13.7" |
| 1563 | + "version": "3.11.5" |
1564 | 1564 | } |
1565 | 1565 | }, |
1566 | 1566 | "nbformat": 4, |
|
0 commit comments