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):
246
246
"""
247
247
return create_hook_from_json_config (cls , json_config_path = json_file_path )
248
248
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
-
254
249
@abstractmethod
255
250
def _get_worker_name (self ):
256
251
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):
140
140
cls , json_config_path = json_file_path , default_values = default_values
141
141
)
142
142
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
+
143
148
def _is_last_step (self , env : CallbackEnv ) -> bool :
144
149
# env.iteration: current boosting round.
145
150
# 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