File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -246,11 +246,6 @@ def create_from_json_file(cls, json_file_path=None):
246246 """
247247 return create_hook_from_json_config (cls , json_config_path = json_file_path )
248248
249- # For compatibility purposes only; do not use
250- @classmethod
251- def hook_from_config (cls , json_config_path = None ):
252- return cls .create_from_json_file (json_file_path = json_config_path )
253-
254249 @abstractmethod
255250 def _get_worker_name (self ):
256251 pass
Original file line number Diff line number Diff line change @@ -140,6 +140,11 @@ def create_from_json_file(cls, json_file_path=None):
140140 cls , json_config_path = json_file_path , default_values = default_values
141141 )
142142
143+ # For compatibility purposes only; do not use
144+ @classmethod
145+ def hook_from_config (cls , json_config_path = None ):
146+ return cls .create_from_json_file (json_file_path = json_config_path )
147+
143148 def _is_last_step (self , env : CallbackEnv ) -> bool :
144149 # env.iteration: current boosting round.
145150 # env.end_iteration: round # when training will end. this is always num_round + 1. # noqa: E501
You can’t perform that action at this time.
0 commit comments