You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/models/MOSVGP.jl
+40-97Lines changed: 40 additions & 97 deletions
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,15 @@
4
4
Multi-Output Sparse Variational Gaussian Process
5
5
6
6
## Arguments
7
-
- `X::AbstractArray` : : Input features, if `X` is a matrix the choice of colwise/rowwise is given by the `obsdim` keyword
8
-
- `y::AbstractVector{<:AbstractVector}` : Output labels, each vector corresponds to one output dimension
9
7
- `kernel::Union{Kernel,AbstractVector{<:Kernel}` : covariance function or vector of covariance functions, can be either a single kernel or a collection of kernels for multiclass and multi-outputs models
10
-
- `likelihood::Union{AbstractLikelihood,Vector{<:Likelihood}` : Likelihood or vector of likelihoods of the model. For compatibilities, see [`Likelihood Types`](@ref likelihood_user)
8
+
- `likelihoods::Union{AbstractLikelihood,Vector{<:Likelihood}` : Likelihood or vector of likelihoods of the model. For compatibilities, see [`Likelihood Types`](@ref likelihood_user)
11
9
- `inference` : Inference for the model, for compatibilities see the [`Compatibility Table`](@ref compat_table))
12
10
- `nLatent::Int` : Number of latent GPs
13
11
- `nInducingPoints` : number of inducing points, or collection of inducing points locations
14
12
15
13
## Keyword arguments
16
14
- `verbose::Int` : How much does the model print (0:nothing, 1:very basic, 2:medium, 3:everything)
17
-
- `optimiser` : Optimiser used for the kernel parameters. Should be an Optimiser object from the [Flux.jl](https://github.com/FluxML/Flux.jl) library, see list here [Optimisers](https://fluxml.ai/Flux.jl/stable/training/optimisers/) and on [this list](https://github.com/theogf/AugmentedGaussianProcesses.jl/tree/master/src/inference/optimisers.jl). Default is `ADAM(0.001)`
15
+
- `optimiser` : Optimiser used for the kernel parameters. Should be an Optimiser object from the [Optimisers.jl](https://github.com/FluxML/Optimisers.jl) library. Default is `ADAM(0.001)`
18
16
- `Zoptimiser` : Optimiser used for the inducing points locations
19
17
- `Aoptimiser` : Optimiser used for the mixing parameters.
20
18
- `atfrequency::Int=1` : Choose how many variational parameters iterations are between hyperparameters optimization
@@ -23,64 +21,46 @@ Multi-Output Sparse Variational Gaussian Process
23
21
"""
24
22
mutable struct MOSVGP{
25
23
T<:Real,
26
-
TLikelihood<:AbstractLikelihood,
24
+
TLikelihood,
27
25
TInference<:AbstractInference,
28
-
TData<:AbstractDataContainer,
29
-
N,
30
-
Q,
31
-
} <:AbstractGPModel{T,TLikelihood,TInference,N}
32
-
data::TData
33
-
nFeatures::Vector{Int64}# Number of features of the GP (equal to number of points)
"The size of mini-batch $(nMinibatch(inference)) is incorrect (negative or bigger than number of samples), please set nMinibatch correctly in the inference object",
0 commit comments