perl - perl/pdl 中的八度 fminunc 交替
问题描述
fminunc
perl 中的函数(来自 octave/matlab)是否有替代方法?
我想运行梯度下降来获得 theta 的最小值,例如 octave fminunc
:
options = optimset('GradObj', 'on', 'MaxIter', 200);
[theta, cost] = ...
fminunc(@(t)(costFunction(t,X,y)), initial_theta, options);
Perl 的方法是什么?
解决方案
推荐阅读
- javascript - Word Office JS 插件 - GET 请求 - 对象不支持属性或方法“应用”
- assembly - 关于初始化寄存器
- fortran - IMSL ppval 函数
- c++ - 使用 spdlog (C++) 进行日志记录,记录器未将日志写入文件
- python-3.x - pandas 根据组的记录数有条件地删除记录
- wordnik - 按主题搜索 Wordnik API?
- reactjs - 如何使用反应钩子设置状态数组
- amazon-web-services - 更新列表中的特定属性 - DynamoDB
- python - 如何在Python的循环中找到所有图形的交点?
- python-3.x - Python3 字典 - 替换内容问题