Skip to content

Commit bb1d450

Browse files
committed
rm redundant code in test learner
1 parent 54d04f5 commit bb1d450

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/learners/regression.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ LearnDataFrontEnds.jl.
2828
"""
2929
Ridge(; lambda=0.1) = Ridge(lambda) # LearnAPI.constructor defined later
3030

31-
struct RidgeFitObs{T,M<:AbstractArray{T}}
32-
A::M # p x n
33-
names::Vector{Symbol}
34-
y::Vector{T}
35-
end
36-
3731
struct RidgeFitted{T,F}
3832
learner::Ridge
3933
coefficients::Vector{T}
@@ -43,10 +37,6 @@ end
4337

4438
LearnAPI.learner(model::RidgeFitted) = model.learner
4539

46-
Base.getindex(data::RidgeFitObs, I) =
47-
RidgeFitObs(data.A[:,I], data.names, data.y[I])
48-
Base.length(data::RidgeFitObs) = length(data.y)
49-
5040
# add a canned data front end; `obs` will return objects of type `FrontEnds.Obs`:
5141
const frontend = FrontEnds.Saffron(view=true)
5242
LearnAPI.obs(learner::Ridge, data) = FrontEnds.fitobs(learner, data, frontend)

0 commit comments

Comments
 (0)