Automate Decision Tree& Machine Learning
Automate Decision Tree& Machine Learning
decision tree
2
Lesson Objectives
Machine learning
▪ Machine learning is a subset of artificial intelligence that enable computers
to solve tasks that are infeasible or too cumbersome with traditional
programming languages.
▪ A dataset is a collection of data values in a tabular format.
▪ Machine learning, you don’t make an algorithm. The computer has to learn
to solve a problem for itself, it’s called training.
Supervised training
▪ The computer is given a lot of data that has already been organised and
labelled.
▪ For example: the computer might be given millions of images.
▪ The images have been labelled to say if they show faces or not.
▪ The computer will learn to tell the difference between faces and other
images.
Unsupervised training
▪ The data is not sorted or organised.
▪ The computer will put the pictures into groups that are similar.
▪ Groups are called clusters, all the images in a cluster will have a lot in
common.
Reinforcement learning
▪ Reinforcement is feedback that lets it know if it has moved towards the
right goal.
▪ Gradually the computer learns to produce output that is closer to the
right result.
Deep learning
▪ Deep learning combines the other methods into highly complex learning
process.
▪ Deep learning can produce very powerful results.
▪ Deep learning uses a type of computer called neural network.
Advantages and disadvantages
Advantages:
▪ You don’t need to tell the computer how to solve the problem.
▪ You give the computer a goal and it will work out its own solution.
Disadvantages:
▪ The computer needs a lot of data.
▪ The data must be diverse and varied.
▪ Machine learning can go wrong.
End of topic questions
1. What is a decision tree in the context of machine learning?
2. What does a decision tree using Python help in achieving?
3. In machine learning, what is a major advantage of using decision trees?
4. What is the disadvantage of machine learning?
5. What is a leaf node in a decision tree?