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QxLjkwMiAzOC40MzEtNzAuMzMgMzguMjhDMzYuNjMgMTYyLjM0IDAgMTI1LjY2IDAgODEuNTR6IiBmaWxsPSIjMDA1NkQyIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=)

  1. Discussion Forums

Week 2

Thread: grading problem

[

Week 2

](https://www.coursera.org/learn/automl-datasets-ml-models/discussions/weeks/2?sort=lastActivityAtDesc&page=1&q=)

Abdallahassan’s Post


A
ABDALLAHASSAN

grading problem

AbdallahassanWeek 2 · 2 days ago

I tried to solve ex 1 as shown and it worked

from sagemaker import clarify bias_report_unbalanced_output_path = ‘s3://{}/bias/generated_bias_report/unbalanced’.format(bucket) data_config_unbalanced = clarify.DataConfig( ### BEGIN SOLUTION - DO NOT delete this comment for grading purposes s3_data_input_path=data_s3_uri_unbalanced, # Replace None s3_output_path=bias_report_unbalanced_output_path, # Replace None label=‘sentiment’, # Replace None ### END SOLUTION - DO NOT delete this comment for grading purposes headers=df.columns.to_list(), dataset_type=‘text/csv’ )

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 )

but the grade of the 2 tasks is zero