Skip to content
Snippets Groups Projects
Commit c23030db authored by Robert Lanzafame's avatar Robert Lanzafame
Browse files

Merge branch 'main' into week8-robert

parents 00b96945 0a0366cf
No related branches found
No related tags found
3 merge requests!399Publish Week 1.8,!398week 8 ready,!394Week 8 adjustments from Robert
This commit is part of merge request !394. Comments created here will be created in the context of that merge request.
...@@ -441,7 +441,11 @@ parts: ...@@ -441,7 +441,11 @@ parts:
- file: external/learn-python/book/08/handling_errors.ipynb - file: external/learn-python/book/08/handling_errors.ipynb
title: Handling Errors title: Handling Errors
- file: external/learn-python/book/08/asserts.ipynb - file: external/learn-python/book/08/asserts.ipynb
- file: programming/week_1_7
sections:
- file: external/learn-programming/book/python/oop/classes
- caption: Fundamental Concepts - caption: Fundamental Concepts
numbered: 2 numbered: 2
chapters: chapters:
......
Subproject commit d44691b9b3e567fa23ea28062f8bee3af9a4cfd2 Subproject commit 1e53d4f545797d14fd57f8ef28fec4bcc2fb14ea
Subproject commit 9edbcc9bb17dac02a3616bd63c704f10406e603d Subproject commit f4c10f32e1e161d93b6018b387a85c3294055f87
# Week 1.7: OOP
This chapter contains a lot of information that is useful for improving your programming skills, however you are not required to learn all of it, and not required to memorize everything for the exam.
You should be able to understand the fundamental concepts of classes and object-oriented programming (OOP) in Python as well as the key principles of encapsulation, inheritance, and polymorphism in OOP, which will enable you to better understand and use the classes that are everywhere in Python packages. For example, the class `rv_continuous` in `scipy.stats`, which is used for defining probability distributions, are used heavily in MUDE!
One way to check if you understand this material sufficiently: by the end of Week 1.7 you should realize why OOP is so useful for the continuous parametric distributions we use. For example, recognizing that all distributions can be defined and used in the same way. For example:
- methods like `.pdf()` and `.cdf()` can be used predictably
- you can easily define distributions in terms of parameters or moments
- fitting distributions is also straightforward
For non-probability topics, this will help you recognize why objects in Python packages like Numpy have syntax like `object.mean()` or `object.shape`.
We hope you enjoy this eye-opening experience!
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment