From ac2a70554fccc4ccf296180057af28f49aab3974 Mon Sep 17 00:00:00 2001 From: Trent Lukaczyk Date: Wed, 3 Jun 2015 23:49:46 -0700 Subject: [PATCH] fix gpr training scaling for CovYI --- trunk/VyPy/regression/gpr/scaling/Linear.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/VyPy/regression/gpr/scaling/Linear.py b/trunk/VyPy/regression/gpr/scaling/Linear.py index 02b65f1..bc2c903 100644 --- a/trunk/VyPy/regression/gpr/scaling/Linear.py +++ b/trunk/VyPy/regression/gpr/scaling/Linear.py @@ -36,6 +36,7 @@ def calc_scaling(self,Train): X_scaling = LinearFunction( Xref[None,0,:] , Xref[None,1,:] ) Y_scaling = LinearFunction( Yref[0], Yref[1] ) DY_scaling = LinearFunction( DYref[None,0,:] ) + CovYI_scaling = LinearFunction( Yref[0] ) # set scaling data keys self['XB'] = XB_scaling @@ -45,7 +46,7 @@ def calc_scaling(self,Train): self['XI'] = X_scaling self['YI'] = Y_scaling self['DYI'] = DY_scaling - self['CovYI'] = Y_scaling + self['CovYI'] = CovYI_scaling self['CovDYI'] = DY_scaling return