W2: Type Error in Pre Training Bias

I am getting a type error while passing the data config and bias config. Any solutions?


Hi @sai_ram,

Welcome to PDS, Since you are passing only two parameters to the function. I believe based on the error one of the two objects is not JSON serializable. Can you also provide the screenshot of the Exercise 1 since bias_config_unbalanced is provided Beforehand? Happy learning.

Best Regards,
A. Sriharsha

Hello @sriharsha0806,
Thanks for your reply. Here is the screenshot of exercise 1.

Thanks @sriharsha0806. I found the mistake based on aws documentation. I was passing label as series by using df['sentiment] in data config. Changed it to string ‘sentiment’ and it worked.

1 Like

Congratulations, Happy learning.

Best Regards,
A. Sriharsha