def theta(self, x, etapes):
"""Fait etapes etapes du gradient sur theta du film puis le renvoie"""
y = np.array([[math.nan] * nombre_films()])
for key in self.films:
y[0][self.conv.renvoyer_index(key)] = self.films[key]
for etape in range(etapes):
self._theta = etape_du_gradient(y, 0.0001, self._theta, x)
return self._theta
评论列表
文章目录