-
Notifications
You must be signed in to change notification settings - Fork 1.2k
error with hyperparameters tuning #224
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
Comments
hi @guilloufre, thanks for trying out the new hyperparameter tuning feature! The error is because you need to pass a list with the |
Thanks, it was actually easy! :) |
Fixed: payload was larger than SageMaker limit
When using the I'm trying to use the high level Python API to get metrics about my created models: from sagemaker import RandomCutForest
from sagemaker.tuner import HyperparameterTuner, IntegerParameter
rcf = RandomCutForest(..., eval_metrics=['accuracy', 'precision_recall_fscore'])
train_set = rcf.record_set(features,
channel='train')
test_set = rcf.record_set(features,
labels=labels,
channel='test')
tuner = HyperparameterTuner(estimator=rcf,
objective_metric_name='test:f1',
hyperparameter_ranges={'num_samples_per_tree': IntegerParameter(32, 512),
'num_trees': IntegerParameter(50, 1000)},
max_jobs=1,
max_parallel_jobs=1)
tuner.fit([train_set, test_set]) When I execute this code, I get the following error in the AWS SageMaker console:
Is there a manual way to create a |
Please fill out the form below.
System Information
Describe the problem
Hello,
I tried to use the newly released hyperparameters tuning described on the aws blog, but some error was thrown, when I launch the following command:
tuner.fit({'train': records_train, 'test': records_val})
This is the error:
Both records_train and records_val are RecordSet objects. For example, this is records_train:
(<class 'sagemaker.amazon.amazon_estimator.RecordSet'>, {'s3_data_type': 'S3Prefix', 'feature_dim': 2229, 'num_records': 7923, 'channel': 'train', 's3_data': 's3://###############'})
The training of the Factorization machine works if I launch:
fm_estimator.fit(records_train, mini_batch_size = 1000)
I also tried by providing direct links to s3 instead of RecordSet object with
tuner.fit({'train': s3_train_data, 'test': s3_val_data})
like in the example on the blog, but it throws the same error.
Thanks for helping me about this issue!
The text was updated successfully, but these errors were encountered: