Introduction of ML

人工智慧

  • 目标:人工智能
  • 手段:机器学习

智慧从何产生?

  • 先天本能:之前编写好的功能

    Hand-crafted rules:

    1
    2
    3
    4
    5
    6
    def turnoffmusic():
    print("music is turned off")
    exit()

    while(True):
    if 'turn off' in input('The music is on.\n'): turnoffmusic()
    1
    2
    3
    4
    5
    The music is on.
    hello
    The music is on.
    please turn off the music
    music is turned off

    However:

    1
    2
    3
    The music is on.
    Don't turn off the music
    music is turned off

    Weakness of hand-crafted rules

    • hard to consider all possibilities
    • unable to be smarter than its creator
    • lots of human efforts
  • 后天学习:Machine Learning

    Looking for a function from data

    function

framework

Learning Map

  • Regression : the output of the target function is a scalar, a real number
  • Classification: the output of the target function is a choice
    • binary classification : Yes or No
    • Multiply-classification : A or B or C or …
  • Structured Learning : the output is a complex structure

map