Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ print(ddsol, Val{true})
```
Explicit Result
Solution with 3 equations and 7 parameters.
Returncode: sucess
Returncode: success
Sparsity: 7.0
L2 Norm Error: 26.7343984476783
AICC: 1.0013570199499398
Expand Down
6 changes: 3 additions & 3 deletions src/solution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function build_solution(prob::DataDrivenProblem, Ξ::AbstractMatrix, opt::Optimi
sparsity = norm(Ξ, 0)
sparsities = map(i->norm(i, 0), eachcol(Ξ))

retcode = size(Ξ, 2) == size(prob.DX, 1) ? :sucess : :incomplete
retcode = size(Ξ, 2) == size(prob.DX, 1) ? :success : :incomplete
pnew = !isempty(parameters(b)) ? [prob.p; ps] : ps
X = get_target(prob)
Y = res_(prob.X, pnew, prob.t, prob.U)
Expand Down Expand Up @@ -252,7 +252,7 @@ function build_solution(prob::DataDrivenProblem, Ξ::AbstractMatrix, opt::Optimi
sparsity = norm(Ξ, 0)
sparsities = map(i->norm(i, 0), eachcol(Ξ))

retcode = size(Ξ, 2) == size(prob.DX, 1) ? :sucess : :incomplete
retcode = size(Ξ, 2) == size(prob.DX, 1) ? :success : :incomplete
pnew = !isempty(parameters(b)) ? [prob.p; ps] : ps
Y = res_([prob.X; prob.DX], pnew, prob.t, prob.U)

Expand Down Expand Up @@ -335,7 +335,7 @@ function build_solution(prob::DataDrivenProblem, k, C, B, Q, P, inds, b::Abstrac
K = k, C = C, Q = Q, P = P, lift = b.f,
eval_expression = eval_expression)

retcode = :sucess
retcode = :success
X = get_target(prob)
X_, p_, t, U = get_oop_args(prob)

Expand Down
2 changes: 1 addition & 1 deletion src/symbolic_regression/occamnet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ function build_solution(prob::DataDrivenProblem, net::OccamNet, o::OccamSR, opt;
# Build the metrics
pb = exp(sum(logprobability(net, route)))
pbs = probability(net, route)
retcode = pb > 0.5 ? :sucess : :unlikely
retcode = pb > 0.5 ? :success : :unlikely

error = norm(X-Y, 2)
k = free_parameters(res_)
Expand Down
2 changes: 1 addition & 1 deletion src/symbolic_regression/symbolic_regression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function build_solution(prob::AbstractDataDrivenProblem, alg::EQSearch, doms; ev
# Build the metrics
complexities = map(x->countNodes(x[end].tree), doms)
complexity = sum(complexities)
retcode = :sucess
retcode = :success

error = norm(X-Y, 2)
k = free_parameters(res_)
Expand Down