From 3ef070a0dcd4aee0d3164038a3d4b7a020be6a75 Mon Sep 17 00:00:00 2001 From: Alexander Grigorievskiy Date: Wed, 21 Oct 2015 15:47:03 +0300 Subject: [PATCH] FIX: Fixint the bug with matrix exponential computation. --- GPy/models/state_space_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/models/state_space_main.py b/GPy/models/state_space_main.py index 461922d6..e641dce8 100644 --- a/GPy/models/state_space_main.py +++ b/GPy/models/state_space_main.py @@ -3281,7 +3281,7 @@ def matrix_exponent(M): try: Mexp = linalg.expm(M) method = 1 - except (FloatingPointError, ValueError) as e: + except (Exception,) as e: Mexp = linalg.expm3(M) method = 2 finally: