Skip to content

Commit b600508

Browse files
authored
implementation of predict become optional if inheritance from MyLinearRegression (#186)
1 parent 4a90a23 commit b600508

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

module09/en.subject.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,10 +927,11 @@ \section*{Instructions}
927927
\end{itemize}
928928

929929
\hint{
930-
You should consider inheritance
930+
You should consider inheritance from \texttt{MyLinearRegression}.
931931
}
932+
If \texttt{MyRidge} inheritates from \texttt{MyLinearRegression}, you may not need to reimplement \texttt{predict\_} method.
932933

933-
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.
934+
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.
934935

935936
\begin{minted}[bgcolor=darcula-back,formatcom=\color{lightgrey},fontsize=\scriptsize]{python}
936937
class MyRidge(ParentClass):

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v4.0.3
1+
v4.0.4

0 commit comments

Comments
 (0)