吴恩达机器学习课程笔记——Octave安装过程记录

Octave软件安装网址:Octave安装官网

点击下载键
吴恩达机器学习课程笔记——Octave安装过程记录_第1张图片

选择适合自己电脑的环境安装:
吴恩达机器学习课程笔记——Octave安装过程记录_第2张图片最开始可能会弹出一个警告,好像是没安装什么功能插件,选择无视它就没问题了。
请尽量选择默认路径和安装模式,我修改到E盘时发生了中断报错。
安装时若有警告,请不断点击信任,360的风险自动阻止是真的坑……
之后就是打开应用程序,进行第一次运行测试。

pkg rebuild 该命令的作用是将octave-forge packages在本地重新编译一下,如果不执行此命令,通过解压zip包安装的octave执行pkg list查看包列表时,返回结果将为空。
pkg list 查看包列表
参考文章:https://blog.csdn.net/m0_37809075/article/details/83816837

>> pkg rebuild
>> pkg list
Package Name         | Version | Installation directory
---------------------+---------+-----------------------
              audio  |   2.0.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\audio-2.0.0
     communications  |   1.2.2 | ...\OCTAVE~1.0\mingw64\share\octave\packages\communications-1.2.2
            control  |   3.2.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\control-3.2.0
     data-smoothing  |   1.3.0 | ...\OCTAVE~1.0\mingw64\share\octave\packages\data-smoothing-1.3.0
           database  |   2.4.4 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\database-2.4.4
          dataframe  |   1.2.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\dataframe-1.2.0
              dicom  |   0.2.2 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\dicom-0.2.2
          financial  |   0.5.3 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\financial-0.5.3
               fits  |   1.0.7 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\fits-1.0.7
fuzzy-logic-toolkit  |   0.4.5 | ...\mingw64\share\octave\packages\fuzzy-logic-toolkit-0.4.5
                 ga  |  0.10.1 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\ga-0.10.1
            general  |   2.1.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\general-2.1.0
      generate_html  |   0.3.1 | ...\OCTAVE~1.0\mingw64\share\octave\packages\generate_html-0.3.1
           geometry  |   3.0.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\geometry-3.0.0
                gsl  |   2.1.1 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\gsl-2.1.1
              image  |  2.10.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\image-2.10.0
 instrument-control  |   0.4.0 | ...\mingw64\share\octave\packages\instrument-control-0.4.0
           interval  |   3.2.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\interval-3.2.0
                 io  |  2.4.13 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\io-2.4.13
     linear-algebra  |   2.2.3 | ...\OCTAVE~1.0\mingw64\share\octave\packages\linear-algebra-2.2.3
               lssa  |   0.1.3 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\lssa-0.1.3
              ltfat  |   2.3.1 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\ltfat-2.3.1
            mapping  |   1.2.1 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\mapping-1.2.1
      miscellaneous  |   1.3.0 | ...\OCTAVE~1.0\mingw64\share\octave\packages\miscellaneous-1.3.0
                nan  |   3.4.5 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\nan-3.4.5
             netcdf  |  1.0.12 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\netcdf-1.0.12
              nurbs  |  1.3.13 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\nurbs-1.3.13
                ocs  |   0.1.5 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\ocs-0.1.5
             odepkg  |   0.8.5 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\odepkg-0.8.5
              optim  |   1.6.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\optim-1.6.0
        optiminterp  |   0.3.5 | ...\OCTAVE~1.0\mingw64\share\octave\packages\optiminterp-0.3.5
         quaternion  |   2.4.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\quaternion-2.4.0
           queueing  |   1.2.6 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\queueing-1.2.6
             signal  |   1.4.1 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\signal-1.4.1
            sockets  |   1.2.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\sockets-1.2.0
          sparsersb  |   1.0.6 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\sparsersb-1.0.6
            specfun  |   1.1.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\specfun-1.1.0
            splines  |   1.3.3 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\splines-1.3.3
         statistics  |   1.4.1 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\statistics-1.4.1
                stk  |   2.6.1 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\stk-2.6.1
            strings  |   1.2.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\strings-1.2.0
             struct  |  1.0.16 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\struct-1.0.16
             tisean  |   0.2.3 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\tisean-0.2.3
                tsa  |   4.6.2 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\tsa-4.6.2
              video  |   1.2.4 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\video-1.2.4
            windows  |   1.4.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\windows-1.4.0
             zeromq  |   1.5.0 | C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\zeromq-1.5.0

测试该应用程序能否正常执行。
A是一个自定义矩阵。
inverse:相反的
pinv():求逆矩阵
两者相乘得单位矩阵。

>> A
A =

    3    4
    2   16

>> A * inverseOFA
error: 'inverseOFA' undefined near line 1 column 5
>> inverseOFA = pinv(A)
inverseOFA =

   0.400000  -0.100000
  -0.050000   0.075000

>> A * inverseOFA
ans =

   1.0000e+00   5.5511e-17
  -2.2204e-16   1.0000e+00

>> inverseOFA * A
ans =

   1.00000  -0.00000
   0.00000   1.00000

你可能感兴趣的:(机器学习,windows,软件测试)