Skip to content

Commit ae577c3

Browse files
committed
Add scaling of the new parameter in predict method
1 parent ef394a9 commit ae577c3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ezyrb/reducedordermodel.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,12 @@ def predict(self, mu):
9999
:rtype: Database
100100
"""
101101
mu = np.atleast_2d(mu)
102-
102+
103+
for plugin in self.plugins:
104+
if plugin.target == 'parameters':
105+
mu = plugin.scaler.transform(mu)
106+
107+
103108
self._reduced_database = Database(
104109
mu, np.atleast_2d(self.approximation.predict(mu)))
105110

0 commit comments

Comments
 (0)