We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f57af0b commit 9e3e064Copy full SHA for 9e3e064
hypertools/tools/align.py
@@ -25,6 +25,7 @@
25
from .procrustes import procrustes
26
import numpy as np
27
from .._shared.helpers import format_data
28
+from warnings import warn
29
30
##MAIN FUNCTION##
31
def align(data, method='hyper'):
@@ -63,6 +64,11 @@ def align(data, method='hyper'):
63
64
65
data = format_data(data)
66
67
+ if data[0].shape[1]>=data[0].shape[0]:
68
+ warn('The number of features exceeds number of samples. This can lead \
69
+ to overfitting. We recommend reducing the dimensionality to be \
70
+ less than the number of samples prior to hyperalignment.')
71
+
72
if method=='hyper':
73
74
##STEP 0: STANDARDIZE SIZE AND SHAPE##
0 commit comments