You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@assertcheck_dims(K,X,Y,feature_dim(obsdim),obsdim) "Dimensions $(size(K)) of the target array K are not consistent with X ($(size(X))) and Y ($(size(Y)))"
32
+
if!check_dims(K,X,Y,feature_dim(obsdim),obsdim)
33
+
throw(DimensionMismatch("Dimensions $(size(K)) of the target array K are not consistent with X ($(size(X))) and Y ($(size(Y)))"))
@assertcheck_dims(X,Y,feature_dim(obsdim),obsdim) "X ($(size(X))) and Y ($(size(Y))) do not have the same number of features on the dimension obsdim : $(feature_dim(obsdim))"
89
+
if!check_dims(X,Y,feature_dim(obsdim),obsdim)
90
+
throw(DimensionMismatch("X ($(size(X))) and Y ($(size(Y))) do not have the same number of features on the dimension obsdim : $(feature_dim(obsdim))"))
91
+
end
86
92
K =map(x->kappa(κ,x),pairwise(metric(κ),transform(κ,X,obsdim),transform(κ,Y,obsdim),dims=obsdim))
87
93
return K
88
94
end
@@ -113,6 +119,9 @@ function kerneldiagmatrix!(
113
119
X::AbstractMatrix{T₂};
114
120
obsdim::Int= defaultobs
115
121
) where {T,T₁,T₂}
122
+
iflength(K) !=size(X,obsdim)
123
+
throw(DimensionMismatch("Dimensions of the target array K $(size(K)) are not consistent with X $(size(X))"))
0 commit comments