Description
Hello!
I'm trying to run through the "sagemaker_fraud_detection" notebook and I'm running into an issue when trying to set the 'content_type' and 'accept' attributes for the different predictors (Random Cut Forest, SMOTE).
Specifically, the commands with the issue:
rcf_predictor.content_type = 'text/csv'
rcf_predictor.serializer = csv_serializer
rcf_predictor.accept = 'application/json'
rcf_predictor.deserializer = json_deserializer
smote_predictor.content_type = 'text/csv'
smote_predictor.serializer = csv_serializer
smote_predictor.deserializer = None
Here is the error that I'm seeing:
AttributeError Traceback (most recent call last)
in
4
5 # Specify input and output formats.
----> 6 smote_predictor.content_type = 'text/csv'
7 smote_predictor.serializer = csv_serializer
8 smote_predictor.deserializer = None
AttributeError: can't set attribute
This issue seems to resolve itself with the random cut forest model but not with the SMOTE model.
Thanks in advance for any insights into this issue, and my apologies if I'm not doing something correctly.
Thanks!