首页 > 解决方案 > perl/pdl 中的八度 fminunc 交替

问题描述

fminuncperl 中的函数(来自 octave/matlab)是否有替代方法?

我想运行梯度下降来获得 theta 的最小值,例如 octave fminunc

options = optimset('GradObj', 'on', 'MaxIter', 200);
[theta, cost] = ...
    fminunc(@(t)(costFunction(t,X,y)), initial_theta, options);

Perl 的方法是什么?

标签: perloctavegradient-descent

解决方案


推荐阅读