Received Error while executing Module1 week2 Assignment Notebook section 2.4. Run the Amazon SageMaker Clarify processing job as per instruction in Module1

kindly help me to resolve the below errors.

Code :

clarify_processor_unbalanced.run_pre_training_bias(
### BEGIN SOLUTION - DO NOT delete this comment for grading purposes
data_config=‘data_config_unbalanced’, # Replace None
data_bias_config=‘bias_config_unbalanced’, # Replace None
### END SOLUTION - DO NOT delete this comment for grading purposes
methods=[“CI”, “DPL”, “KL”, “JS”, “LP”, “TVD”, “KS”],
wait=False,
logs=False
)

Error :

---------------------------------------------------------------------------AttributeError Traceback (most recent call last)
in 6 methods=[“CI”, “DPL”, “KL”, “JS”, “LP”, “TVD”, “KS”], 7 wait=False,----> 8 logs=False 9 )

/opt/conda/lib/python3.7/site-packages/sagemaker/clarify.py in run_pre_training_bias(self, data_config, data_bias_config, methods, wait, logs, job_name, kms_key) 489 user code file (default: None). 490 “”"
→ 491 analysis_config = data_config.get_config() 492 analysis_config.update(data_bias_config.get_config()) 493 analysis_config[“methods”] = {“pre_training_bias”: {“methods”: methods}}

AttributeError: ‘str’ object has no attribute ‘get_config’

Hi @nagarajans,

You are passing strings rather than the variables, that’s why your output is producing errors. Happy learning.

Best Regards,
A. Sriharsha

Thanks Sriharsha. it is working now.