Comprehensive notes on AI project Cycle modelling class 9

Students, in this article we will talk about AI project cycle modelling class 9. We have already seen the ways of data exploration, the next stage for AI project cycle is modelling which we call AI project cycle modelling class 9.

AI project Cycle modelling class 9

Before starting the AI project Cycle modelling class 9, you need to understand what is modelling. So it can be defined as follows:

So as in the previous article on data exploration, we have seen how we can represent data in graphics using various tools. This graphical representation makes data easy to understand for humans to take a decision or prediction. But when it comes to the machine accessing and analyse data, the machine requires a mathematical representation of data. Hence every model needs a mathematical approach to analyze data.

In the next section of AI project Cycle modelling class 9 we will talk about AI modelling approaches.

AI modelling approaches

Basically, there are two approaches broadly taken by researchers for AI modelling. They are:

  1. Rule-Based Approach
  2. Learning-Based Approach
  3. Decision Tree

Let us begin with rule based approach for AI project Cycle modelling class 9.

Rule Based

A Rule-based approach is generally based on the data and rules fed to the machine, where the machine reacts accordingly to deliver the desired output.

In other words, rule-based learning follows the relationship or patterns in data defined by the developer. The machine follows the instructions or rules mentioned by the developer and performs the tasks accordingly. It uses coding to make a successful model.

Consider the following scenarios and try to understand the rule-based approach for AI project Cycle modelling class 9:

Suppose you have data of 100 employees and 100 businessmen. The following steps you need to follow to train your machine:

  1. Input your data and label them accordingly for employees and businessman.
  2. Now if the data is related to employee, the machine will compare its rules defined by you as employee and label it as employee and this way it will identify the data of employee.
  3. Similarly it will follow the rules for businessman as well.

Here in the machine, you need to feed some of the characteristics of employees like earning money and provide service whereas businessman investing money and provide service to train the machine.

In CBSE curriculum handbook they have following example for rule-based approach.

Suppose you have a dataset comprising of 100 images of apples and 100 images of bananas. To train your machine, you feed this data into the machine and label each image as either apple or banana. Now if you test the machine with the image of an apple, it will compare the image with the trained data and according to the labels of trained images, it will identify the test image as an apple. This is known as Rule-based approach. The rules given to the machine in this example are the labels given to the machine for each image in the training dataset. Observe the following image:

rule based approach AI project Cycle modelling class 9
rule based approach AI project Cycle modelling class 9

The second approach in AI project Cycle modelling class 9 is learning based discussed in the next section.

Learning Based

The machine is fed with data and the desired output to which the machine designs its own algorithm (or set of rules) to match the data to the desired output fed into the machine to train.

In the learning-based approach, the relationship or pattern in data is not defined by the developer. This approach takes random data which is fed into the machine and it is left to the machine to figure out the patterns or required trends.

In general this approach is useful when the data is not labelled and random for a human to use them.

Thus, the machine looks at the data, tries to extract similar features out of it and clusters the same datasets together. In the end as output, the machine tells us about the trends which are observed in the training data.

This approach is used to train the data which is unpredictable or the users have no idea about it. Let us take a look at the example given in your curriculum handbook for AI project Cycle modelling class 9.

For example, suppose you have a dataset of 1000 images of random stray dogs of your area. Now you do not have any clue as to what trend is being followed in this dataset as you don’t know their breed, or colour or any other feature. Thus, you would put this into a learning approach based AI machine and the machine would come up with various patterns it has observed in the features of these 1000 images. It might cluster the data on the basis of colour, size, fur style, etc. It might also come up with some very unusual clustering algorithm which you might not have even thought of!

Learning based approach - AI project cycle modelling
Learning based approach – AI project cycle modelling

In the next section of AI project Cycle modelling class 9 we will discuss about decision tree.

Decision Tree

The decision tree is one of the most common and basic models in data science. It follows a tree like structure of the decisions with all possible results. It is similar like rule-based approach.

The decision tree is made up of various node. It follows top to bottom approach. The top most node of the decision tree is known as root. Then it continues till the down to the terminal node or leaf node. All these nodes are connected with each other by arrow lines. So let us talk about the common terms associated with decision tree.

Now we will talk about common terms of decision tree for AI project Cycle modelling class 9.

Common Terms

  1. Root Node: We have already seen this in the above paragraph.
  2. Splitting: Splitting is a process by which a node is divided into two or more sub-nodes.
  3. Decision or interior node: It is the node where the splitting takes place. In other words, it is a place where the sub-node is divided into another sub-nodes.
  4. Leaf node or terminal node: We have already seen this.
  5. Branch or Subtree: A subsection of the decision tree is known as a branch or subtree.
  6. Parent node and child node: The bottom node which derives from the top node is known as child node whereas the top node is known as the parent node.

Different Parts of Decision Tree

The decision tree is made up of various nodes. These nodes are the parts of a decision tree. They are as follows:

  1. Decision Nodes: It represents a decision, typically shown with square
  2. Chance Nodes: It represents probability or uncertainty, shown in circle
  3. End Nodes: It represents the result or final outcome, shown in triangle

In next section we will see the practical part how to prepare a decision tree. Till then keep reading and enjoy learning.

Go through the following links:

Unit 1 Introduction to Artificial Intelligence

Unit 2 AI Project Cycle

https://www.youtube.com/watch?v=VyhiWrOAO6ku0026t=649s

Leave a Reply