@@ -38,9 +38,7 @@ class KGModelExperiment(ModelExperiment[ModelTask, KGFBWorkspace, ModelFBWorkspa
38
38
def __init__ (self , * args , source_feature_size : int = None , ** kwargs ) -> None :
39
39
super ().__init__ (* args , ** kwargs )
40
40
self .experiment_workspace = KGFBWorkspace (
41
- template_folder_path = Path (__file__ ).resolve ()
42
- / Path (KAGGLE_IMPLEMENT_SETTING .template_path ).resolve ()
43
- / KAGGLE_IMPLEMENT_SETTING .competition
41
+ template_folder_path = Path (__file__ ).resolve ().parent / "templates" / KAGGLE_IMPLEMENT_SETTING .competition
44
42
)
45
43
if len (self .based_experiments ) > 0 :
46
44
self .experiment_workspace .inject_files (** self .based_experiments [- 1 ].experiment_workspace .file_dict )
@@ -64,9 +62,7 @@ class KGFactorExperiment(FeatureExperiment[FactorTask, KGFBWorkspace, FactorFBWo
64
62
def __init__ (self , * args , source_feature_size : int = None , ** kwargs ) -> None :
65
63
super ().__init__ (* args , ** kwargs )
66
64
self .experiment_workspace = KGFBWorkspace (
67
- template_folder_path = Path (__file__ ).resolve ()
68
- / Path (KAGGLE_IMPLEMENT_SETTING .template_path ).resolve ()
69
- / KAGGLE_IMPLEMENT_SETTING .competition
65
+ template_folder_path = Path (__file__ ).resolve ().parent / "templates" / KAGGLE_IMPLEMENT_SETTING .competition
70
66
)
71
67
if len (self .based_experiments ) > 0 :
72
68
self .experiment_workspace .inject_files (** self .based_experiments [- 1 ].experiment_workspace .file_dict )
0 commit comments