Machine learning in Ruby
- 2. “Machine learning is a field of study that gives
computers the ability to learn without being explicitly
programmed”
Arthur Samuel, 1959
- 4. Types of algorithms
• supervised learning
• unsupervised learning (e.g. clustering)
• trunsduction
• reinforcement learning
• learning to learn
- 7. Bob Mary John Abe
Doctor 6
Doctor 7
Doctor 8
Doctor 9
Doctor 10
Doctor 11
2 2 3 4
3 0 0 5
0 2 3 4
2 4 4 5
5 5 5 0
5 5 4 0
- 12. UU
0.351038 -0.284822
0.286974 -0.510018
0.286974 -0.357035
0.485518 -0.309601
0.521028 0.476186
0.484608 0.456813
SS
15.186791 0
0 7.341579
V.transposeV.transpose
0.486466 0.265078
0.542990 0.291882
0.553091 0.142232
0.403240 -0.907915
Decomposition
- 16. Predicted results
Bob with similarity: 0.949
Mary with similarity: 0.947
Predicted:
Doctor 7: 3 (from Bob)
Doctor 8: 2 (from Mary)
- 17. Bob Mary John Abe Hero
Doctor 6
Doctor 7
Doctor 8
Doctor 9
Doctor 10
Doctor 11
2 2 3 4 2
3 0 0 5 3
0 2 3 4 2
2 4 4 5 2
5 5 5 0 5
5 5 4 0 5