Course 2, week 1 , programming assignment - regularization

I am trying to load the data set but it is showing me “ValueError: Unknown mat file type, version 54, 48”. Apparently this line ‘data =‘datasets/data.mat’)’ is throwing an error. I am using mac m1. Did anyone faced a similar issue ? How did you resolve

Here is a screenshot of the error i am facing

You have to have the same version of all the libraries as used by the Coursera environment. Please check this Tips to work on a local environment.

Hey , thanks for the reply.