Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

ENH: Improving GP models #244

Merged
merged 8 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading