Skip to content

Commit

Permalink
fix: Incorrect preloading of the HardExampleMining module.
Browse files Browse the repository at this point in the history
Signed-off-by: Yu Fan <[email protected]>
  • Loading branch information
FuryMartin committed Sep 6, 2024
1 parent f2352ce commit 8b6c83b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions core/testcasecontroller/algorithm/module/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,14 @@ def get_module_instance(self, module_type):
if self.url:
try:
utils.load_module(self.url)
# pylint: disable=E1134
func = ClassFactory.get_cls(
type_name=class_factory_type, t_cls_name=self.name)(**self.hyperparameters)

if class_factory_type == ClassType.HEM:
func = {"method": self.name, "param":self.hyperparameters}
else:
func = ClassFactory.get_cls(
type_name=class_factory_type,
t_cls_name=self.name
)(**self.hyperparameters)

return func
except Exception as err:
Expand Down

0 comments on commit 8b6c83b

Please sign in to comment.