Skip to content

Commit

Permalink
sphynx docs: adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
jumutc committed Aug 19, 2015
1 parent 27a3d85 commit 9618734
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/classification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Knowledge agnostic usage
srand(1234)
ripley = matread(joinpath(Pkg.dir("SALSA"),"data","ripley.mat"))
model = salsa(ripley["X"],ripley["Y"],ripley["Xt"]) # --> SALSAModel(...)
@test_approx_eq_eps mean(ripley["Yt"] .== model.output.Ytest) 0.89 0.01
Expand All @@ -46,6 +47,7 @@ Knowledge agnostic usage
srand(1234)
ripley = matread(joinpath(Pkg.dir("SALSA"),"data","ripley.mat"))
model = salsa(LINEAR,PEGASOS,HINGE,ripley["X"],ripley["Y"],ripley["Xt"])
@test_approx_eq_eps mean(ripley["Yt"] .== model.output.Ytest) 0.89 0.01
Expand Down Expand Up @@ -93,6 +95,7 @@ Model-based usage
srand(1234)
ripley = matread(joinpath(Pkg.dir("SALSA"),"data","ripley.mat"))
model = SALSAModel(NONLINEAR,R_L1RDA(),HINGE,global_opt=CSA())
model = salsa(ripley["X"],ripley["Y"],model,ripley["Xt"])
@test_approx_eq_eps mean(ripley["Yt"] .== model.output.Ytest) 0.895 0.01

0 comments on commit 9618734

Please sign in to comment.