here come the robots - amazon s3 · practical machine learning with python tom dyson, torchbox –...

51
Here Come the Robots Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019

Upload: others

Post on 01-Aug-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Here Come the Robots Practical Machine Learning with PythonTom Dyson, Torchbox – PyCon APAC 2019

Page 2: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Machine Learning != Artifical Intelligence

Page 3: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

machine learning

AI

NLPTranslation

Robotics

Page 4: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 5: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Life 1.0➔ Hardware evolves➔ Software evolves

Page 6: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Life 2.0➔ Designs its own software➔ Hardware evolves

Page 7: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Life 2.1➔ Designs its own software➔ Hardware evolves (with minor upgrades)

Page 8: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Life 3.0➔ Designs its own software➔ Designs its own hardware

Page 9: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

On the cusp➔ Life 1.0 – 4 billion years ago➔ Life 2.0 – 100 thousand years ago➔ Life 3.0 – 30 years away

Page 10: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Machine learningClassical programming uses rules and data to produce answers.

Machine Learning uses data and answers to produce rules.

François Chollet

Page 11: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 12: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Image recognitionWhat is this a picture of?

Page 13: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 14: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Demo

Page 15: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Practical applications➔➔ Content management➔ Accessibility➔ NSFW➔ Language learning

Page 17: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Image generationThis is not a real person

Page 18: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 19: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Image generationThis is not a real cat

Page 20: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 21: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Sentiment analysisWhat is the author feeling?

Page 22: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 23: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Demo

Page 24: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Practical applications➔ Customer support➔ Survey tools➔ Fake reviews➔ News analysis➔ Better bots

Page 25: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 26: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Entity extractionWhat proper nouns is this text about?

Page 27: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 28: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Demo

Page 29: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Practical applications➔ Content management➔ Plagiarism tests➔ Trend spotting

Page 30: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Entity extraction for CMS editors

Page 31: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Outcome predictionWhat will happen next, given what we know about the past?

Page 32: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Building a model➔ Prepare➔ Train➔ Evaluate➔ Use

Page 33: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 34: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 35: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 36: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 37: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Demo

Page 38: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Practical applications➔ Audience segmentation➔ Donation refinement➔ “You may also like”➔ Happiness optimisation

Page 39: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 40: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 41: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

“They literally wanted it to be an engine where I’m going to give you 100 résumés, it will spit out the top five, and we’ll hire those.”

But by 2015, the company realized its new system was not rating candidates for software developer jobs and other technical posts in a gender-neutral way.

Page 42: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

That is because Amazon’s computer models were trained to vet applicants by observing patterns in résumés submitted to the company over a 10-year period. Most came from men, a reflection of male dominance across the tech industry.

In effect, Amazon’s system taught itself that male candidates were preferable. It penalized résumés that included the word “women’s”, as in “women’s chess club captain”.

Page 43: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 44: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Coming next➔ Reduced complexity➔ Reduced cost➔ Generation, not just comprehension➔ ML at the edge

Page 45: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 46: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Coming next➔ Reduced complexity➔ Reduced cost➔ Generation, not just comprehension➔ ML at the edge

Page 47: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 48: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 49: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Coming next➔ Reduced complexity➔ Reduced cost➔ Generation, not just comprehension➔ ML at the edge

Page 50: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI
Page 51: Here Come the Robots - Amazon S3 · Practical Machine Learning with Python Tom Dyson, Torchbox – PyCon APAC 2019. Machine Learning != Artifical Intelligence. machine learning AI

Next steps➔ If you want to learn ML

◆ Deep Learning with Python◆ Kaggle

➔ If you want to do something with ML◆ Read the cloud service docs

➔ Build something amazing