Skip to content

Commit fef70b8

Browse files
committed
Passed all tests
1 parent 5a5ec6e commit fef70b8

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

examples/classification_SXGPC.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Plots
2-
using GradDescent
32
pyplot()
43
#unicodeplots()
54
using Distributions
@@ -49,7 +48,7 @@ Ninducingpoints = 20
4948
tic()
5049
# model = DAM.BatchXGPC(X,y;Kernels=kerns,Autotuning=true,optimizer=StandardGD(α=0.1),AutotuningFrequency=1,verbose=2,ϵ=1e-4,nEpochs=100)
5150
Profile.clear()
52-
@profile model = SparseXGPC(X,y;optimizer=Adam=0.5),OptimizeIndPoints=true,
51+
@profile model = SparseXGPC(X,y;OptimizeIndPoints=true,
5352
Stochastic=false=1e-4,nEpochs=MaxIter,SmoothingWindow=10,Kernels=kerns,Autotuning=false,AutotuningFrequency=2,
5453
verbose=2,AdaptiveLearningRate=true,batchsize=batchsize,m=Ninducingpoints)
5554
ProfileView.view()

src/OMGP.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ abstract type FullBatchModel <: NonLinearModel end
2727

2828
export GPModel, OnlineGPModel, OfflineGPModel, SparseModel, NonLinearModel, LinearModel, FullBatchModel, GPMOdelType
2929

30+
include("graddescent/GradDescent.jl")
3031
include("kernels/KernelModule.jl")
3132
include("kmeans/KMeansModule.jl")
3233
include("functions/PGSampler.jl")
3334
include("functions/PerturbativeCorrection.jl")
3435
include("functions/GPAnalysisTools.jl")
3536
include("functions/IO_model.jl")
36-
include("graddescent/GradDescent.jl")
3737
#Custom modules
3838
using .KernelModule
3939
using .KMeansModule

src/functions/IO_model.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ using JLD2, FileIO
44
# using OMGP
55
import OMGP.KernelModule
66
import OMGP.KernelModule.HyperParametersModule#: HyperParameter, OpenBound, NullBound, Interval
7-
import GradDescent
87
export save_trained_model, save_model,load_trained_model,load_model
98
#Needs to be redefined
109
function save_model(filename::String,model::GPModel)

src/kernels/hyperparameters/HyperParametersModule.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module HyperParametersModule
2-
using GradDescent
2+
using OMGP.GradDescent
33
import Base: convert, eltype, promote_type, show, string, ==, *, /, +, -, ^, isless;
44

55
export

0 commit comments

Comments
 (0)