Drop old code from examples
This commit is contained in:
parent
9007c8bc7c
commit
b040bbb7fe
4 changed files with 4 additions and 50 deletions
|
@ -50,19 +50,11 @@ guess = begin
|
|||
)
|
||||
end
|
||||
|
||||
# complete the gram matrix
|
||||
#=
|
||||
L, history = Engine.realize_gram_gradient(gram, guess, scaled_tol = 0.01)
|
||||
L_pol, history_pol = Engine.realize_gram_newton(gram, L)
|
||||
=#
|
||||
# complete the gram matrix using Newton's method with backtracking
|
||||
L, success, history = Engine.realize_gram(gram, guess)
|
||||
completed_gram = L'*Engine.Q*L
|
||||
println("Completed Gram matrix:\n")
|
||||
display(completed_gram)
|
||||
#=
|
||||
println("\nSteps: ", size(history.scaled_loss, 1), " + ", size(history_pol.scaled_loss, 1))
|
||||
println("Loss: ", history_pol.scaled_loss[end], "\n")
|
||||
=#
|
||||
if success
|
||||
println("\nTarget accuracy achieved!")
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue