Skip to content

What is the difference between 2 types of xgboost usage? #1946

@bilative

Description

@bilative

Hi,

I have a question like this:
What is the difference between

from sagemaker.amazon.amazon_estimator import get_image_uri
container = get_image_uri(region, 'xgboost', '1.0-1')

and this

from sagemaker.xgboost.estimator import XGBoost
estimator = XGBoost(entry_point = "your_xgboost_abalone_script.py", 
                    framework_version='1.0-1',
                    hyperparameters=hyperparameters,
                    role=sagemaker.get_execution_role(),
                    train_instance_count=1,
                    train_instance_type='ml.m5.2xlarge',
                    output_path=output_path)

What is the 2 type of usage difference?
Actually i mostly used sklearn until nowadays. And Sagemaker's logic little push me hard.
Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions