Skip to content

Commit 716c991

Browse files
rahul003jarednielsen
authored andcommitted
Remove compat method (aws#48)
1 parent 312cd66 commit 716c991

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

smdebug/core/hook.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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

smdebug/xgboost/hook.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)