Skip to content

Commit

Permalink
delete solvers_pycall.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
wcwitt committed Jun 22, 2023
1 parent f3e6efe commit 9f4e744
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 28 deletions.
3 changes: 0 additions & 3 deletions src/ACEfit.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
module ACEfit


include("solvers_pycall.jl")

include("bayesianlinear.jl")
include("data.jl")
include("assemble.jl")
Expand Down
27 changes: 27 additions & 0 deletions src/solvers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,30 @@ end
function solve(solver::BLR, A, y)
return bayesian_linear_regression(A, y; solver.kwargs...)
end

@doc raw"""
SKLEARN_BRR
"""
struct SKLEARN_BRR
tol::Number
n_iter::Integer
end

SKLEARN_BRR(; tol = 1e-3, n_iter = 300) = SKLEARN_BRR(tol, n_iter)

# solve(solver::SKLEARN_BRR, ...) is implemented in ext/

@doc raw"""
SKLEARN_ARD
"""
struct SKLEARN_ARD
n_iter::Integer
tol::Number
threshold_lambda::Number
end

function SKLEARN_ARD(; n_iter = 300, tol = 1e-3, threshold_lambda = 10000)
SKLEARN_ARD(n_iter, tol, threshold_lambda)
end

# solve(solver::SKLEARN_ARD, ...) is implemented in ext/
25 changes: 0 additions & 25 deletions src/solvers_pycall.jl

This file was deleted.

0 comments on commit 9f4e744

Please sign in to comment.