Top Banner
Machine learning and AI in the datacenter and how it will affect you Nick Chase Head of Content, Mirantis Editor in Chief, Open Cloud Digest Author, Machine Learning for Mere Mortals
107

you datacenter and how it will affect Machine learning and ...

Jan 24, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: you datacenter and how it will affect Machine learning and ...

Machine learning and AI in the datacenter and how it will affect you

Nick ChaseHead of Content, MirantisEditor in Chief, Open Cloud DigestAuthor, Machine Learning for Mere Mortals

Page 2: you datacenter and how it will affect Machine learning and ...

Who am I?

Nick Chase• Long-time programmer• Head of Technical and Marketing Content for

Mirantis• Editor in Chief of Open Cloud Digest• Author of Machine Learning for Mere Mortals• Absolutely NOT a math major• nchase at mirantis dot com

2

Page 3: you datacenter and how it will affect Machine learning and ...

Shhhhhh.....

Turns out, this is not as tough as you think.

Page 4: you datacenter and how it will affect Machine learning and ...

Special Bonus

• Free early access to Machine Learning for Mere Mortals for live attendees

http://bit.ly/machine_learning_course

4

Page 5: you datacenter and how it will affect Machine learning and ...

Agenda

• What is machine learning?• Types of machine learning• Problems facing the datacenter and how ML can

solve them • You, yes, YOU, can do this (and I'll prove it)• Intelligent Delivery datacenter and how to start• Q&A

5

Page 6: you datacenter and how it will affect Machine learning and ...

Introduction Just what is machine learning,

anyway?

6

Page 7: you datacenter and how it will affect Machine learning and ...

What is machine learning?

Machine learning is the study of enabling a computer to perform in situations it may not have

seen before.

7

Page 8: you datacenter and how it will affect Machine learning and ...

Where can we see ML today?

• Analytics• Advertising• Bots• Pattern recognition• NLP• Search

8

Page 9: you datacenter and how it will affect Machine learning and ...

Where can we see ML today?

• Analytics• Advertising• Bots• Pattern recognition• NLP• Search

9

• Image recognition • Video analysis• Threat detection• Medicine• Self driving cars

Page 10: you datacenter and how it will affect Machine learning and ...

Lots of hype

• Existing companies http://indeedhi.re/2nFRKY0

10

● Amazon.com (1252)● JPMorgan Chase (733)● Goldman Sachs (674)● Microsoft (580)● Apple (322)● Google (217)● Facebook (217)● KPMG (148)● Jobspring Partners (124)● Capital One (118)● NVIDIA (116)● Strategic IT Staffing (111)● Oracle (110)● Lockheed Martin (106)● IBM (101)

Page 11: you datacenter and how it will affect Machine learning and ...

Lots of hype

• New companies (http://bit.ly/2E2qFoU)• Newly accessible

• Tensorflow• SciKit-Learn• etc.

11

Page 12: you datacenter and how it will affect Machine learning and ...

Machine learning vs artificial intelligence

12

Page 13: you datacenter and how it will affect Machine learning and ...

What does ML have to do with "cloud native"?

• Dynamic environments

13

Page 14: you datacenter and how it will affect Machine learning and ...

What does ML have to do with "cloud native"?

• Dynamic environments

• High-velocity management

14

Page 15: you datacenter and how it will affect Machine learning and ...

What does ML have to do with "cloud native"?

• Dynamic environments

• High-velocity management

• Continuous automation

15

Page 16: you datacenter and how it will affect Machine learning and ...

What does ML have to do with "cloud native"?

• Dynamic environments

• High-velocity management

• Continuous automation

• Observability

16

Page 17: you datacenter and how it will affect Machine learning and ...

What does ML have to do with "cloud native"?

• Dynamic environments

• High-velocity management

• Continuous automation

• Observability

• Efficiency

17

Page 18: you datacenter and how it will affect Machine learning and ...

What can ML do for the datacenter?

Continuous Delivery infrastructure

18

Page 19: you datacenter and how it will affect Machine learning and ...

What can ML do for the datacenter?

Continuous Delivery infrastructure

Intelligent Delivery infrastructure

19

Page 20: you datacenter and how it will affect Machine learning and ...

Intelligent Delivery infrastructure

• Defined architecture

20

Page 21: you datacenter and how it will affect Machine learning and ...

Intelligent Delivery infrastructure

• Defined architecture

• Flexible but controllable infrastructure

21

Page 22: you datacenter and how it will affect Machine learning and ...

Intelligent Delivery infrastructure

• Defined architecture

• Flexible but controllable infrastructure

• Intelligent oversight

22

Page 23: you datacenter and how it will affect Machine learning and ...

Intelligent Delivery infrastructure

• Defined architecture

• Flexible but controllable infrastructure

• Intelligent oversight

• Secure footing

23

Page 24: you datacenter and how it will affect Machine learning and ...

Types of Machine Learning

24

Page 25: you datacenter and how it will affect Machine learning and ...

Supervised learning

Training a computer to understand data it hasn't seen by teaching it about data

that has already been labeled

25

Page 26: you datacenter and how it will affect Machine learning and ...

Supervised learning: Examples

• Image recognition

26

Page 27: you datacenter and how it will affect Machine learning and ...

Supervised learning: Examples

• Image recognition• Speech recognition

27

Page 28: you datacenter and how it will affect Machine learning and ...

Supervised learning: Examples

• Image recognition• Speech recognition• Medical outcome prediction

28

Page 29: you datacenter and how it will affect Machine learning and ...

Supervised learning: Examples

• Image recognition• Speech recognition• Medical outcome prediction• Spam filtering

29

Page 30: you datacenter and how it will affect Machine learning and ...

Supervised learning: Examples

• Image recognition• Speech recognition• Medical outcome prediction• Spam filtering• Stock market/crypto pricing

30

Page 31: you datacenter and how it will affect Machine learning and ...

Unsupervised learning

Letting the computer discover patterns and relationships in unlabeled data.

31

Page 32: you datacenter and how it will affect Machine learning and ...

Unsupervised learning: example

• Clustering

32

Page 33: you datacenter and how it will affect Machine learning and ...

Unsupervised learning: example

• Clustering • Customers into categories

33

Page 34: you datacenter and how it will affect Machine learning and ...

Unsupervised learning: example

• Clustering • Customers into categories• Chemical compounds

34

Page 35: you datacenter and how it will affect Machine learning and ...

Unsupervised learning: example

• Clustering • Customers into categories• Chemical compounds

• Anomaly detection

35

Page 36: you datacenter and how it will affect Machine learning and ...

Unsupervised learning: example

• Clustering • Customers into categories• Chemical compounds

• Anomaly detection• Signal separation

36

Page 37: you datacenter and how it will affect Machine learning and ...

Reinforcement learning

A combination of supervised and unsupervised learning, where the computer is given an objective and attempts to reach that objective, discovering

tactics as it goes along.

37

Page 38: you datacenter and how it will affect Machine learning and ...

Reinforcement learning: example

• Just about anything humans do

38

Page 39: you datacenter and how it will affect Machine learning and ...

Reinforcement learning: example

• Just about anything humans do• Self-driving cars

39

Page 40: you datacenter and how it will affect Machine learning and ...

Reinforcement learning: example

• Just about anything humans do• Self-driving cars• Strategy development

40

Page 41: you datacenter and how it will affect Machine learning and ...

Reinforcement learning: example

• Just about anything humans do• Self-driving cars• Strategy development

• Games

41

Page 42: you datacenter and how it will affect Machine learning and ...

Reinforcement learning: example

• Just about anything humans do• Self-driving cars• Strategy development

• Games• Scheduling

42

Page 43: you datacenter and how it will affect Machine learning and ...

Problems Facing the Datacenter

43

Page 44: you datacenter and how it will affect Machine learning and ...

Configuration: potential issues

• Self-service

44

Page 45: you datacenter and how it will affect Machine learning and ...

Configuration: potential issues

• Self-service • Microservices architectures

45

Page 46: you datacenter and how it will affect Machine learning and ...

Configuration: potential issues

• Self-service• Microservices architectures• Dynamic environments and drift issues

46

Page 47: you datacenter and how it will affect Machine learning and ...

Configuration: how ML/AI can help

• App configuration based on past history

47

Page 48: you datacenter and how it will affect Machine learning and ...

Configuration: how ML/AI can help

• App configuration based on past history• Reinforcement learning to retroactively improve

configuration

48

Page 49: you datacenter and how it will affect Machine learning and ...

Performance optimization: Potential issues

• Lots of factors in play

49

Page 50: you datacenter and how it will affect Machine learning and ...

Performance optimization: Potential issues

• Lots of factors• Dynamic environments create a changing

landscape

50

Page 51: you datacenter and how it will affect Machine learning and ...

Performance optimization: how ML/AI can help

• Analyze multiple factors

51

Page 52: you datacenter and how it will affect Machine learning and ...

Performance optimization: how ML/AI can help

• Analyze multiple factors• Predict future load and move or scale workloads

based on patterns

52

Page 53: you datacenter and how it will affect Machine learning and ...

Performance optimization: how ML/AI can help

• Analyze multiple factors• Predict future load and move or scale workloads

based on patterns• Move workloads to closer geographical resources

based on patterns

53

Page 54: you datacenter and how it will affect Machine learning and ...

Cost optimization: potential issues

• Complex environments

54

Page 55: you datacenter and how it will affect Machine learning and ...

Cost optimization: potential issues

• Complex environments• Changing costs

55

Page 56: you datacenter and how it will affect Machine learning and ...

Cost optimization: potential issues

• Complex environments• Changing costs• Soaring storage requirements

56

Page 57: you datacenter and how it will affect Machine learning and ...

Cost optimization: how AI/ML can help

• Keep track of multiple environments and costs

57

Page 58: you datacenter and how it will affect Machine learning and ...

Cost optimization: how AI/ML can help

• Keep track of multiple environments and costs• Adapt to changing conditions

58

Page 59: you datacenter and how it will affect Machine learning and ...

Cost optimization: how AI/ML can help

• Keep track of multiple environments and costs• Adapt to changing conditions• Optimize what data is kept

59

Page 60: you datacenter and how it will affect Machine learning and ...

Fault detection: potential issues

• Hardware failure

60

Page 61: you datacenter and how it will affect Machine learning and ...

Fault detection: potential issues

• Hardware failure• Software configuration drift

61

Page 62: you datacenter and how it will affect Machine learning and ...

Fault detection: potential issues

• Hardware failure• Software configuration drift• Data corruption

62

Page 63: you datacenter and how it will affect Machine learning and ...

Fault detection: potential issues

• Hardware failure• Software configuration drift• Data corruption

No, I am not making that up: http://bit.ly/cosmic-corruption

63

Page 64: you datacenter and how it will affect Machine learning and ...

Fault detection: potential issues

• Hardware failure• Software configuration drift• Data corruption• Resource overrun

64

Page 65: you datacenter and how it will affect Machine learning and ...

Fault detection: how AI/ML can help

• Autoscaling

65

Page 66: you datacenter and how it will affect Machine learning and ...

Fault detection: how AI/ML can help

• Autoscaling• Pattern recognition

66

Page 67: you datacenter and how it will affect Machine learning and ...

Fault detection: how AI/ML can help

• Autoscaling• Pattern recognition• Anomaly detection

67

Page 68: you datacenter and how it will affect Machine learning and ...

Security: potential issues

• DDOS

68

Page 69: you datacenter and how it will affect Machine learning and ...

Security: potential issues

• Distributed Denial Of Service attacks• Advanced Persistent Threats

69

Page 70: you datacenter and how it will affect Machine learning and ...

Security: potential issues

• DDOS• APT• Inside jobs

70

Page 71: you datacenter and how it will affect Machine learning and ...

Security: how ML/AI can help

• Anomaly detection to find APTs and inside jobs

71

Page 72: you datacenter and how it will affect Machine learning and ...

Security: how ML/AI can help

• Anomaly detection to find APTs and inside jobs• Pattern recognition to predict DDOS attacks

before they're in full swing

72

Page 73: you datacenter and how it will affect Machine learning and ...

Try It Yourself

73

Page 74: you datacenter and how it will affect Machine learning and ...

Once upon a time...

74

Page 75: you datacenter and how it will affect Machine learning and ...

Once upon a time...

• Self-configuring

75

Page 76: you datacenter and how it will affect Machine learning and ...

Once upon a time...

• Self-configuring• Self-optimizing

76

Page 77: you datacenter and how it will affect Machine learning and ...

Once upon a time...

• Self-configuring• Self-optimizing• Self-healing

77

Page 78: you datacenter and how it will affect Machine learning and ...

Once upon a time...

• Self-configuring• Self-optimizing• Self-healing• Self-protecting

78

Page 79: you datacenter and how it will affect Machine learning and ...

Once upon a time...

79

Page 80: you datacenter and how it will affect Machine learning and ...

What are we trying to do?

80

Page 81: you datacenter and how it will affect Machine learning and ...

What are we trying to do?

81

Page 82: you datacenter and how it will affect Machine learning and ...

Defining the error

82

Page 83: you datacenter and how it will affect Machine learning and ...

Defining the error

83

Page 84: you datacenter and how it will affect Machine learning and ...

Defining the error

84

y

Page 85: you datacenter and how it will affect Machine learning and ...

Defining the error

85

y

ypredicted

Page 86: you datacenter and how it will affect Machine learning and ...

Defining the error

86

y

ypredicted

abs(y - ypredicted)

Page 87: you datacenter and how it will affect Machine learning and ...

Defining the error

87

errortotal = sum(abs(y - ypredicted))

Page 88: you datacenter and how it will affect Machine learning and ...

Defining the error

88

errortotal = sum(abs(y - (mx + b))

Page 89: you datacenter and how it will affect Machine learning and ...

Hot and cold

89

Page 90: you datacenter and how it will affect Machine learning and ...

Hot and cold

90

Page 91: you datacenter and how it will affect Machine learning and ...

Hot and cold

91

Page 92: you datacenter and how it will affect Machine learning and ...

Hot and cold

92

Page 93: you datacenter and how it will affect Machine learning and ...

Hot and cold

93

Page 94: you datacenter and how it will affect Machine learning and ...

Hot and cold

94

Page 95: you datacenter and how it will affect Machine learning and ...

Hot and cold

95

errortotal = sum(abs(y - (mx + b))

Page 96: you datacenter and how it will affect Machine learning and ...

Gradient descent

An iterative algorithm to find the minimum of the cost/error function and that parameters that

achieve that minimum.

96

Page 97: you datacenter and how it will affect Machine learning and ...

Putting it together

• Data• Python3• Tensorflow• Matplotlib (optional)• Ubuntu 16.04

97

Page 98: you datacenter and how it will affect Machine learning and ...

What we'll do

• Read the data• Create the model• Define the error• Define the optimizer• Repeatedly run the optimizer until we get as close

as we can

98

Page 99: you datacenter and how it will affect Machine learning and ...

DEMO

99

Page 100: you datacenter and how it will affect Machine learning and ...

The actual answer

y = .37x + 12m = .37b = 12

100

Page 101: you datacenter and how it will affect Machine learning and ...

DEMO

101

Page 102: you datacenter and how it will affect Machine learning and ...

Where do we go from here?

102

Page 103: you datacenter and how it will affect Machine learning and ...

More practically

• Don't expect to go from B&W to VR in one step• Smaller steps in between

103

Page 104: you datacenter and how it will affect Machine learning and ...

More practically

• Don't expect to go from B&W to VR in one step• Smaller steps in between

• Start with analytics

104

Page 105: you datacenter and how it will affect Machine learning and ...

More practically

• Don't expect to go from B&W to VR in one step• Smaller steps in between

• Start with analytics• Ultimately, know what you're trying to achieve

105

Page 106: you datacenter and how it will affect Machine learning and ...

Q&A

106

Page 107: you datacenter and how it will affect Machine learning and ...

Thank You

107