zoukankan      html  css  js  c++  java
  • 00 Introduction

    Machine Learning definition

    • Arthur Samuel(1959). Machine Learning: Field of study that gives computers the ability to learn without being explicitly programmed.
    • Tom Mitchell(1998). A computer program is said to learn from experience E(experience) with respect to some task T(task) and some performance measure P, if its performance on T, as measured by P(probability), improves with experience E.

    Machine learning algorithms:

    Supervised learning

    • Regression Problem
    • Classification Problem

    Unsupervised learning

    • cluster
      • Organize computing clusters
      • Social network analysis
      • Market segmentation
      • Astronomical data analysis
    • Cocktail party problem: find structure in a chaotic environment

      [W, s, v] = svd((repmat(sum(x.*x, 1), size(x, 1), 1).*x)*x’);
      

      Svd 奇异值分解(解线性方程)

    Reinforcement learning

    recommender systems

    Matrices and vectors

    definition

    • (mathbb{R}) refers to the set of scalar real numbers.
    • (mathbb{R^n}) refers to the set of n-dimemsional vectors of real numbers.

    Matlab

    1. 更改Octave命令提示

      PS1(‘>> ’);
      
    2. 打印结果

      disp(sprintf(‘2 decimals: %0.2f’, a));
      
    3. 特殊矩阵

          ones(a, b);
          rand(a, b);
      randn(a, b);
      eye(a, b);
      magic(a);
    4. 绘图

          hold on; %继续绘制
          ploy(x, y); %折线图
      hist(w, h); %条状图
      xlabel(‘’);
      ylabel(‘’);
      title(‘’);
      legend(‘sin’, ‘cos’); %标记曲线
      print -dpng ‘myPlot.png’; %图像存储为文件
      axis([x_min x_max y_min y_max]); %缩放
      clf; %清除图像
      imagesc(A) %将矩阵绘制为图像
    5. 控制语句

          for i = 1:10
              v(i) = i^2;
      end;
      while i <= 5
      v(i) = 100;
      i = i + 1;
      end;
      if v(1) == 1,
      disp(‘value is one’);
      elseif v(1) == 2,
      disp(‘two’);
      end;
    6. Max

          [value, index] = max()
          max(A, [], 1); %每列最大值
      max(A, [], 2); %每行最大值
    7. 函数定义

          function [y1, y2] = squareAndCUbeThisNumber(x)
              y1 = x^2;
      y2 = x^3;
    8. 其他命令

    命令格式用途
    pwd 打印当前路径
    cd 更改路径
    ls 列出当前路径的文件
    load featuresX.dat 加载数据
    load(‘featuresX.dat’) 加载数据
    who 显示当前变量列表
    whos 详细查看当前变量列表
    clear 清空当前变量列表
    save xxx.mat 将当前变量列表存储到文件
    save xxx.mat -v name 将workspace中的变量[name]存储到文件
    save xxx -ascii 以文本形式存储
    addpath(‘’) 增加路径
    search path() 搜索路径

    Experience

    1. 惩罚项不惩罚额外项!!!
  • 相关阅读:
    ASP.NET页面打印技术的总结
    js传递中文参数的url到asp(jscript)解释得到的中文参数为乱码的解决方法
    header的用法(PHP)
    oracle 11g road(/dev/shm需注意)
    mysql 主从同步 Error 'Out of range value for column的问题
    linux shell 过滤特殊字符开始的行
    Oracle穿越incarnation恢复数据
    多普达A6388刷机2.3
    【忽悠普通人用】隐藏文件夹的方法
    电脑同时使用双网卡实现方法
  • 原文地址:https://www.cnblogs.com/QQ-1615160629/p/00-Introduction.html
Copyright © 2011-2022 走看看