Skip to content

FelixBenning/IncrementalGRF.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IncrementalGRF.jl

using IncrementalGRF

rf = GaussianRandomFunction(Kernels.SquaredExponential{Float64, 2}(1))
rf([0., 0.])
rf.([
  [1., 0.]
  [0., 1.]
])

# Gradient Descent on Random Function
dim=10
diff_rf = DifferentiableGRF(Kernels.SquaredExponential{Float64, dim}(1))

steps=20
position = zeros(dim) # start at [0,...0]

lr = 0.1 # learning rate

for step in 1:steps
    val, grad = diff_rf(position) # incrementally evaluate RF at new position
    position -= lr*grad # update position
end

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages