steepest_descent.py 230 Bytes
Newer Older
1
2
3
4
5
6
# -*- coding: utf-8 -*-

from .quasi_newton_minimizer import QuasiNewtonMinimizer


class SteepestDescent(QuasiNewtonMinimizer):
theos's avatar
theos committed
7
8
    def _get_descend_direction(self, x, gradient):
        return gradient/(-gradient.dot(gradient))