Skip to content

Commit

Permalink
Merge pull request #244 from nipreps/enh/gp-model-improvements
Browse files Browse the repository at this point in the history
ENH: Improving GP models
  • Loading branch information
oesteban authored Oct 28, 2024
2 parents fa57a64 + 6e6ff4a commit ef91d4f
Show file tree
Hide file tree
Showing 4 changed files with 581 additions and 98 deletions.
360 changes: 338 additions & 22 deletions docs/notebooks/dmri_covariance.ipynb

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions scripts/dwi_gp_estimation_error_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ def main() -> None:
kernel=SphericalKriging(a=a, lambda_s=lambda_s),
alpha=alpha,
optimizer=None,
# optimizer="Nelder-Mead",
# disp=True,
# ftol=1,
# max_iter=2e5,
)

# Use Scikit-learn cross validation
Expand Down
8 changes: 4 additions & 4 deletions src/eddymotion/model/_dipy.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ class GaussianProcessModel(ReconstModel):
def __init__(
self,
kernel_model: str = "spherical",
lambda_s: float = 2.0,
a: float = 0.1,
beta_l: float = 2.0,
beta_a: float = 0.1,
sigma_sq: float = 1.0,
*args,
**kwargs,
Expand Down Expand Up @@ -129,8 +129,8 @@ def __init__(

KernelType = SphericalKriging if kernel_model == "spherical" else ExponentialKriging
self.kernel = KernelType(
a=a,
lambda_s=lambda_s,
beta_a=beta_a,
beta_l=beta_l,
)

def fit(
Expand Down
Loading

0 comments on commit ef91d4f

Please sign in to comment.