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

fix default kernel inconcsistency #125

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
4 changes: 2 additions & 2 deletions brainspace/gradient/gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class GradientMaps(BaseEstimator):
Kernel function to build the affinity matrix. Possible options:
{'pearson', 'spearman', 'cosine', 'normalized_angle', 'gaussian'}.
If callable, must receive a 2D array and return a 2D square array.
If None, use input matrix. Default is None.
If None, use input matrix. Default is 'normalized_angle'.
alignment : {'procrustes', 'joint'}, object or None
Alignment approach. Only used when two or more datasets are provided.
If None, no alignment is performed. If `object`, it accepts an instance
Expand All @@ -110,7 +110,7 @@ class GradientMaps(BaseEstimator):
is used.
"""

def __init__(self, n_components=10, approach='dm', kernel=None,
def __init__(self, n_components=10, approach='dm', kernel='normalized_angle',
alignment=None, random_state=None):
self.n_components = n_components
self.approach = approach
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ numpy>=1.11.0
scipy>=0.17.0
scikit-learn>=0.22.0
matplotlib>=2.0.0
vtk>=8.1.0
vtk>=9.1.0
nibabel
nilearn

Loading