Skip to content

Commit

Permalink
Remove trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jan 23, 2024
1 parent 209040f commit d4f4625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/examples/sensitivity-analysis-ridge.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function fit_ridge(X, Y, alpha = 0.1)
## expression defining approximation error
@expression(model, e[i = 1:N], Y[i] - w * X[i] - b)
## objective minimizing squared error and ridge penalty
@objective(model, Min, 1 / N * dot(e, e) + alpha * (w^2),)
@objective(model, Min, 1 / N * dot(e, e) + alpha * (w^2))
optimize!(model)
return model, w, b # return model & variables
end
Expand Down
2 changes: 1 addition & 1 deletion docs/src/examples/sensitivity-analysis-svm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ MOI.set(model, MOI.Silent(), true)

# Define the objective and solve

@objective(model, Min, λ * LinearAlgebra.dot(w, w) + sum(ξ),)
@objective(model, Min, λ * LinearAlgebra.dot(w, w) + sum(ξ))

optimize!(model)

Expand Down

0 comments on commit d4f4625

Please sign in to comment.