Supervised Machine Learning: Regression and Classification week2

I need help with the assignment for the second week of the “Supervised Machine Learning: Regression and Classification” course. I understood all the lessons during the week, but this assignment I find it very, very difficult. I welcome and am very eager for any advice, any explanation, any help PLZ :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear:

Hi @abdulilah_alkhalaf

I hope you opened all optional labs which is a clear illustration for how to implement the task .and here we can help you if you want any thing …please feel free to ask any questions about how to implement or how you can pass error …etc
this resource hope to also help you

please feel free to ask any question,

1 Like

If you do not have Python programming skills, you may need to attend a course on that first.

1 Like

I took two courses on Python, but they are not of high quality. Recommend a Python course for machine learning

thanks Abd I opened the optional labs, but I also found them difficult. I need a Python course for machine learning and deep learning. Recommend a detailed one

Thanks TMosh ,I took two courses on Python, but they are not of high quality. Recommend a Python course for machine learning

All you need for this course is python fundamentals. This course provides the machine learrning basis.

I have no specific recommendation.

Does anyone have a suggestion?

1 Like

Hi @abdulilah_alkhalaf are you struggling on a specific portion of the assignment? My suggestion is to identify where and why are you stuck, if it’s on the machine learning concept you could:

  • Go over the lectures again and take notes, some lectures provide some examples using code which is similar to the one that you need for the assignments.

  • If you still don’t understand, you can watch this video that can help you to understand the concept differently: ML Zoomcamp 2.5 - Linear Regression - YouTube

  • If you still can’t understand the concept, you can use the hints below each question and see if that can help. Try to understand each hint and implement the answer yourself.

If you understand the concept but are not able to implement in python, you can use these resources to pick up the basics

Hope this helps.


Agreed! The python course from university of Michigan would be quite suitable. You can also attend it as an absolute beginner.

In addition, this Python course is also free due to a non-profite initiative (as of today): (duration is ~ 6 hours)

Best regards

1 Like

Hello @abdulilah_alkhalaf,

Besides taking general courses, since you can open the lab, I suggest you to

  1. do print(variable) and print(type(variable)) to inspect the content and the type of any variable not clear to you

  2. From the import lines, we know public libraries numpy and matplotlib are used and they are abbreviated as np and plt respectively. If you see any method name starting with np. and plt., then please google the full method name (e.g. google np.exp) for more examples and explanations.

  3. After reading the explanations and examples found by googling, hopefully you would have some ideas about the method, and then I strongly suggest you to verify your ideas by trying the methods out. You may do so by adding lines like print(np.exp(2)) to use the method and print the result for inspection. Please remove any of these additional lines after you are done because they may interfere with the grader.

It’s important to try things yourself as you are learning, and I think it is the same for both beginners and experienced learners, especially in this self-learning era. Lastly, this post has some relevant information about learning and practicing Python.



@rmwkwok @pastorsoto @TMosh @Christian_Simonis @AbdElRhaman_Fakhry
Hi guys, Thank you all for these tips and recommendations, I will follow your advice and look at the courses you recommended to me, thank you very much and the beautiful deep learning community. I will get back to you with any other problem. I thank you all from my heart, because now I feel that I am not alone :sweat_smile::heart:
Thank you,


Get the “python for programmers with introductory AI case studies” book downloaded.
You can delay the course till after you finish the book. It’ll help a lot

how do I get the default Jupiter notebook in Cousera supervised machine learning

Use the File menu and rename your current notebook.

Use the Notebook ? tool (the question mark inside a circle) and “Get latest version”.

Use the File->Open menu and open the new copy of the notebook.

Use Kernel->“Restart & Clear all output” command.

Now you can start over on the assignment.