Skip to content

HyperparameterTuner object doesn't provide a method of "create_model()" with best params for deployment?  #642

@sam-zen-dev

Description

@sam-zen-dev

Please fill out the form below.

System Information

  • Framework (e.g. TensorFlow) / Algorithm (e.g. KMeans): XGBoost, HyperparameterTuner
  • Framework Version:
  • Python Version: 3.6
  • CPU or GPU:
  • Python SDK Version:
  • Are you using a custom image: No. using xgboost container.

Describe the problem

I am using the xgboost(sagemaker) to tune the model and it provided the best tuning job when all jobs are done. It seems sagemaker only provides the console button to create_model and deploy it.

what if i just want to use HyperparameterTuner object with best params tuned to create a model object first and combine it with other models into a pipeline model.

the only way i found out is to copy the best params(tuned) and re-fit the model again then use create_model() method to init the xgboost model for pipelinemodel.... which is very inconvenient...

I double checked the source code and didn't find related methods....any idea?

Minimal repro / logs

Please provide any logs and a bare minimum reproducible test case, as this will be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

  • Exact command to reproduce:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions