Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions smdebug/core/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,6 @@ def create_from_json_file(cls, json_file_path=None):
"""
return create_hook_from_json_config(cls, json_config_path=json_file_path)

# For compatibility purposes only; do not use
@classmethod
def hook_from_config(cls, json_config_path=None):
return cls.create_from_json_file(json_file_path=json_config_path)

@abstractmethod
def _get_worker_name(self):
pass
Expand Down
5 changes: 5 additions & 0 deletions smdebug/xgboost/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ def create_from_json_file(cls, json_file_path=None):
cls, json_config_path=json_file_path, default_values=default_values
)

# For compatibility purposes only; do not use
@classmethod
def hook_from_config(cls, json_config_path=None):
return cls.create_from_json_file(json_file_path=json_config_path)

def _is_last_step(self, env: CallbackEnv) -> bool:
# env.iteration: current boosting round.
# env.end_iteration: round # when training will end. this is always num_round + 1. # noqa: E501
Expand Down