Skip to content

Commit 6e2bc8d

Browse files
authored
Fix ambiguity for singleton matrix
1 parent b9bc74e commit 6e2bc8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/20_Optimisation/02_CrossValidation/01_Base_CrossValidation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ end
9797
struct SingletonVector{T} <: AbstractVector{T} end
9898
Base.length(::SingletonVector) = 1
9999
Base.getindex(::SingletonVector, args...) = 1
100-
Base.:*(M::AbstractMatrix, ::SingletonVector) = dropdims(M; dims = 2)
100+
Base.:*(M::Matrix, ::SingletonVector) = dropdims(M; dims = 2)
101101
Base.size(::SingletonVector) = (1,)
102102
function expected_risk(pred::PredictionResult{<:Any,
103103
<:PredictionReturnsResult{<:Any, <:VecNum}},

0 commit comments

Comments
 (0)