Skip to content

Commit

Permalink
Cleanup RMS error computation function import (SMTorg#513)
Browse files Browse the repository at this point in the history
* clean utils init file and fix RMS function import
  • Loading branch information
Paul-Saves authored Feb 20, 2024
1 parent d1018b8 commit a647148
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion smt/applications/tests/test_mfk.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from smt.utils.sm_test_case import SMTestCase
from smt.utils.silence import Silence
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error
from smt.surrogate_models import LS, QP, KPLS, KRG, KPLSK, GEKPLS, GENN
from smt.applications.mfk import MFK, NestedLHS
from copy import deepcopy
Expand Down
2 changes: 1 addition & 1 deletion smt/applications/tests/test_mfk_1fidelity.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from smt.utils.sm_test_case import SMTestCase
from smt.utils.silence import Silence
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error
from smt.applications.mfk import MFK

print_output = False
Expand Down
2 changes: 1 addition & 1 deletion smt/applications/tests/test_mfkpls.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

from smt.utils.sm_test_case import SMTestCase
from smt.utils.silence import Silence
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error
from smt.surrogate_models import LS, QP, KPLS, KRG, KPLSK, GEKPLS, GENN
from smt.applications.mfk import MFK, NestedLHS
from smt.applications.mfkpls import MFKPLS
Expand Down
2 changes: 1 addition & 1 deletion smt/applications/tests/test_mfkplsk.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

from smt.utils.sm_test_case import SMTestCase
from smt.utils.silence import Silence
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error
from smt.surrogate_models import LS, QP, KPLS, KRG, KPLSK, GEKPLS, GENN
from smt.applications.mfk import MFK, NestedLHS
from smt.applications.mfkplsk import MFKPLSK
Expand Down
1 change: 0 additions & 1 deletion smt/applications/tests/test_vfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import numpy as np
from scipy import linalg
from smt.utils.sm_test_case import SMTestCase
from smt.utils import compute_rms_error
from smt.utils.silence import Silence

from smt.problems import WaterFlowLFidelity, WaterFlow
Expand Down
2 changes: 1 addition & 1 deletion smt/examples/run_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import numpy as np
from scipy import linalg
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error

from smt.problems import Sphere, NdimRobotArm
from smt.sampling_methods import LHS
Expand Down
2 changes: 1 addition & 1 deletion smt/surrogate_models/tests/test_krg_het_noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from smt.surrogate_models import KRG
from smt.utils.sm_test_case import SMTestCase
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error


class Test(SMTestCase):
Expand Down
2 changes: 1 addition & 1 deletion smt/surrogate_models/tests/test_rmts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from smt.utils.silence import Silence
from smt.utils.sm_test_case import SMTestCase
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error
from smt.surrogate_models import RMTB


Expand Down
2 changes: 1 addition & 1 deletion smt/tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from smt.utils.sm_test_case import SMTestCase
from smt.utils.silence import Silence
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error
from smt.surrogate_models import (
LS,
QP,
Expand Down
2 changes: 1 addition & 1 deletion smt/tests/test_derivs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from smt.utils.sm_test_case import SMTestCase
from smt.utils.silence import Silence
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error
from smt.utils.design_space import DesignSpace

from smt.applications import MFK
Expand Down
2 changes: 1 addition & 1 deletion smt/tests/test_high_dim.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from smt.utils.sm_test_case import SMTestCase
from smt.utils.silence import Silence
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error
from smt.surrogate_models import LS, QP, KPLS, KRG

try:
Expand Down
2 changes: 1 addition & 1 deletion smt/tests/test_kpls_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from smt.utils.sm_test_case import SMTestCase
from smt.utils.silence import Silence
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error
from smt.surrogate_models import KPLS


Expand Down
2 changes: 1 addition & 1 deletion smt/tests/test_low_dim.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from smt.utils.sm_test_case import SMTestCase
from smt.utils.silence import Silence
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error
from smt.surrogate_models import LS, QP, KPLS, KRG

try:
Expand Down
2 changes: 1 addition & 1 deletion smt/tests/test_output_derivs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from smt.sampling_methods import FullFactorial
from smt.utils.sm_test_case import SMTestCase
from smt.utils.silence import Silence
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error

try:
from smt.surrogate_models import IDW, RBF, RMTC, RMTB
Expand Down
2 changes: 1 addition & 1 deletion smt/tests/test_training_derivs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from smt.utils.sm_test_case import SMTestCase
from smt.utils.silence import Silence
from smt.utils import compute_rms_error
from smt.utils.misc import compute_rms_error

try:
from smt.surrogate_models import IDW, RBF, RMTC, RMTB
Expand Down
1 change: 0 additions & 1 deletion smt/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from .misc import compute_rms_error

0 comments on commit a647148

Please sign in to comment.