Skip to content

Commit

Permalink
Update examples.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
akabla authored Jul 24, 2024
1 parent a93e865 commit ae5b6b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/src/examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ extracted_data = extractfitdata(data)

# Determine which model fits best by comparing errors
best_model = ""
error = Inf
min_error = Inf

for (model_name, fitdata) in extracted_data
error = fitdata.info.error
err = fitdata[1].info.error

println("Model: $model_name, Total Error: $error")
println("Model: $model_name, Total Error: $err")

if error < min_error
min_error = error
if err < min_error
min_error = err
best_model = model_name
end
end
Expand Down

0 comments on commit ae5b6b2

Please sign in to comment.