Skip to content

Commit d28caa2

Browse files
authored
Merge pull request #19 from JuliaAI/test-cleanup
Test learner cleanup
2 parents 54d04f5 + 4031bb4 commit d28caa2

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LearnTestAPI"
22
uuid = "3111ed91-c4f2-40e7-bb19-7f6c618409b8"
33
authors = ["Anthony D. Blaom <[email protected]>"]
4-
version = "0.2.3"
4+
version = "0.2.4"
55

66
[deps]
77
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"

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)