Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ML02 ex05 (mylinearregression): multiple issues (examples, syntax) #239

Open
2 tasks
mli42 opened this issue Sep 5, 2022 · 0 comments
Open
2 tasks

ML02 ex05 (mylinearregression): multiple issues (examples, syntax) #239

mli42 opened this issue Sep 5, 2022 · 0 comments
Labels

Comments

@mli42
Copy link

mli42 commented Sep 5, 2022

  • Day: 07
  • Exercise: 05

There are 4 issues on this exercice:


1) Init of MyLR

In the example, there is:

mylr = MyLR([[1.], [1.], [1.], [1.], [1]])

Thus giving a list of list, whereas in the previous module, we are given a np array:

lr1 = MyLR(np.array([[2], [0.7]]))

  1. mylinearregression

In the previous module, the class was named my_linear_regression (with _), which, imo, is more readable, and it should have the same name for this module.
It is currently not producing any bug, but it is a bit inconsistent.


  1. mylr.theta

In the examples, it tries to access mylr.theta, but in the previous module the variable was named thetas with an S. A bit inconsistent too.


  1. loss / loss elem

In order to satisfy the examples, I noticed the division by 2m is performed during loss() and not loss_elem(). Imo loss should be only the sum of loss_elem, as it was in the previous module.


Fixed on:

  • Github
  • Gitlab
@mli42 mli42 added the fixme label Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant