Skip to content

Instantly share code, notes, and snippets.

function ∇tSTE(X::Array{Float64,2},
no_objects::Int64,
no_dims::Int64,
no_triplets::Int64,
triplets::Array{Int64,2},
λ::Float64,
α::Float64)
P::Float64 = 0.0
C::Float64 = 0.0 + λ * sum(X.^2) # Initialize cost including l2 regularization cost