Skip to content

csv_weights cannot be set #1135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tigerhawkvok opened this issue Nov 25, 2019 · 1 comment
Open

csv_weights cannot be set #1135

tigerhawkvok opened this issue Nov 25, 2019 · 1 comment
Assignees
Labels

Comments

@tigerhawkvok
Copy link

tigerhawkvok commented Nov 25, 2019

Reference: 0420645671

Please fill out the form below.

System Information

  • Framework (e.g. TensorFlow) / Algorithm (e.g. KMeans): XGBoost
  • Framework Version: 0.90
  • Python Version: 3
  • CPU or GPU:
  • Python SDK Version: Latest
  • Are you using a custom image:

Describe the problem

Can't establish an XGBoost estimator with csv_weights set to 1, as per https://docs.aws.amazon.com/sagemaker/latest/dg/xgboost.html :

To differentiate the importance of labelled data points use Instance Weight Supports

Amazon SageMaker XGBoost allows customers to differentiate the importance of labelled data points by assigning each instance a weight value. For text/libsvm input, customers can assign weight values to data instances by attaching them after the labels. For example, label:weight idx_0:val_0 idx_1:val_1.... For text/csv input, customers need to turn on the csv_weights flag in the parameters and attach weight values in the column after labels. For example: label,weight,val_0,val_1,...).

Now, the docs don't say where the XGBoost class takes the argument, so I tried the obvious locations which all failed.

Minimal repro / logs

As an estimator paramter:

image

As a float in the estimator fitting:

image

As a string in the estimator fitting:

image

As a fit parameter:

image

@ChoiByungWook
Copy link
Contributor

Reference: 0420645671

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants