mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-06 02:24:17 +02:00
FIX: SDE inference. Couple of bug fixes and minor syntactic madifications.
This commit is contained in:
parent
3ef070a0dc
commit
529ac15cdf
12 changed files with 199 additions and 180 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright (c) 2015, Alex Grigorevskiy, Arno Solin
|
||||||
|
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||||
"""
|
"""
|
||||||
Classes in this module enhance Brownian motion covariance function with the
|
Classes in this module enhance Brownian motion covariance function with the
|
||||||
Stochastic Differential Equation (SDE) functionality.
|
Stochastic Differential Equation (SDE) functionality.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright (c) 2015, Alex Grigorevskiy, Arno Solin
|
||||||
|
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||||
"""
|
"""
|
||||||
Classes in this module enhance Linear covariance function with the
|
Classes in this module enhance Linear covariance function with the
|
||||||
Stochastic Differential Equation (SDE) functionality.
|
Stochastic Differential Equation (SDE) functionality.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright (c) 2015, Alex Grigorevskiy, Arno Solin
|
||||||
|
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||||
"""
|
"""
|
||||||
Classes in this module enhance Matern covariance functions with the
|
Classes in this module enhance Matern covariance functions with the
|
||||||
Stochastic Differential Equation (SDE) functionality.
|
Stochastic Differential Equation (SDE) functionality.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright (c) 2015, Alex Grigorevskiy, Arno Solin
|
||||||
|
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||||
"""
|
"""
|
||||||
Classes in this module enhance Matern covariance functions with the
|
Classes in this module enhance Matern covariance functions with the
|
||||||
Stochastic Differential Equation (SDE) functionality.
|
Stochastic Differential Equation (SDE) functionality.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright (c) 2015, Alex Grigorevskiy, Arno Solin
|
||||||
|
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||||
"""
|
"""
|
||||||
Classes in this module enhance Static covariance functions with the
|
Classes in this module enhance Static covariance functions with the
|
||||||
Stochastic Differential Equation (SDE) functionality.
|
Stochastic Differential Equation (SDE) functionality.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright (c) 2015, Alex Grigorevskiy, Arno Solin
|
||||||
|
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||||
"""
|
"""
|
||||||
Classes in this module enhance several stationary covariance functions with the
|
Classes in this module enhance several stationary covariance functions with the
|
||||||
Stochastic Differential Equation (SDE) functionality.
|
Stochastic Differential Equation (SDE) functionality.
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,8 +1,8 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright (c) 2015, Alex Grigorevskiy
|
||||||
|
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||||
"""
|
"""
|
||||||
Created on Thu Feb 19 12:32:32 2015
|
Main functionality for state-space inference.
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import collections # for cheking whether a variable is iterable
|
import collections # for cheking whether a variable is iterable
|
||||||
|
|
@ -771,7 +771,7 @@ class DescreteStateSpace(object):
|
||||||
# m - vector for calculating matrices. Required for EKF. Not used here.
|
# m - vector for calculating matrices. Required for EKF. Not used here.
|
||||||
|
|
||||||
c_p_A = p_A.copy() # create a copy because this object is passed to the smoother
|
c_p_A = p_A.copy() # create a copy because this object is passed to the smoother
|
||||||
c_p_Q = p_A.copy() # create a copy because this object is passed to the smoother
|
c_p_Q = p_Q.copy() # create a copy because this object is passed to the smoother
|
||||||
c_index = index.copy() # create a copy because this object is passed to the smoother
|
c_index = index.copy() # create a copy because this object is passed to the smoother
|
||||||
|
|
||||||
if calc_grad_log_likelihood:
|
if calc_grad_log_likelihood:
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,10 @@ class StateSpace(Model):
|
||||||
|
|
||||||
# Default kernel
|
# Default kernel
|
||||||
if kernel is None:
|
if kernel is None:
|
||||||
self.kern = kern.Matern32(1)
|
raise ValueError("State-Space Model: the kernel must be provided.")
|
||||||
else:
|
else:
|
||||||
self.kern = kernel
|
self.kern = kernel
|
||||||
|
|
||||||
self.link_parameter(self.kern)
|
self.link_parameter(self.kern)
|
||||||
self.link_parameter(self.likelihood)
|
self.link_parameter(self.likelihood)
|
||||||
self.posterior = None
|
self.posterior = None
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright (c) 2015, Alex Grigorevskiy
|
||||||
|
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||||
"""
|
"""
|
||||||
This module is intended for the setup of state_space_main module.
|
This module is intended for the setup of state_space_main module.
|
||||||
The need of this module appeared because of the way state_space_main module
|
The need of this module appeared because of the way state_space_main module
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright (c) 2015, Alex Grigorevskiy
|
||||||
|
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||||
"""
|
"""
|
||||||
Testing state space related functions.
|
Testing state space related functions.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright (c) 2015, Alex Grigorevskiy
|
||||||
|
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||||
"""
|
"""
|
||||||
Test module for state_space_main.py
|
Test module for state_space_main.py
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue