From b60050817429f0e22875ade108d90729cd7315f9 Mon Sep 17 00:00:00 2001 From: Matthieu DAVID Date: Fri, 11 Mar 2022 08:13:45 +0100 Subject: [PATCH] implementation of predict become optional if inheritance from MyLinearRegression (#186) --- module09/en.subject.tex | 5 +++-- version | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/module09/en.subject.tex b/module09/en.subject.tex index 710bafed..1f3e9624 100644 --- a/module09/en.subject.tex +++ b/module09/en.subject.tex @@ -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): diff --git a/version b/version index 7cc166d3..f05f17cf 100644 --- a/version +++ b/version @@ -1 +1 @@ -v4.0.3 +v4.0.4