Skip to content

Commit

Permalink
implementation of predict become optional if inheritance from MyLinea…
Browse files Browse the repository at this point in the history
…rRegression (#186)
  • Loading branch information
madvid committed Mar 11, 2022
1 parent 4a90a23 commit b600508
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions module09/en.subject.tex
Original file line number Diff line number Diff line change
Expand Up @@ -927,10 +927,11 @@ \section*{Instructions}
\end{itemize}

\hint{
You should consider inheritance
You should consider inheritance from \texttt{MyLinearRegression}.
}
If \texttt{MyRidge} inheritates from \texttt{MyLinearRegression}, you may not need to reimplement \texttt{predict\_} method.

The difference between \texttt{MyRidge}'s \texttt{loss\_elem\_}, \texttt{loss\_}, \texttt{gradient\_} and \texttt{fit\_} methods and \texttt{MyLinearRegression}'s \texttt{loss\_elem\_}, \texttt{loss\_}, \texttt{gradient\_} and \texttt{fit\_} methods implemented in module 06 is the use of a regularization term.
The difference between \texttt{loss\_elem\_}, \texttt{loss\_}, \texttt{gradient\_} and \texttt{fit\_} methods implementation \texttt{MyRidge}'s and \texttt{MyLinearRegression} (implemented in module 02) is the use of a regularization term.

\begin{minted}[bgcolor=darcula-back,formatcom=\color{lightgrey},fontsize=\scriptsize]{python}
class MyRidge(ParentClass):
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.0.3
v4.0.4

0 comments on commit b600508

Please sign in to comment.