Notes unit-2
Notes unit-2
Ans:
In Rule-Based AI models, the system follows predefined rules set by developers and does not
learn from data. In contrast, Learning-Based models learn patterns from data and improve over
time by adapting to new information.
Q10. Name the layers of a Neural Network and state their function.
Ans:
Q2. What is a Neural Network? Explain its three main layers and their functions.
Answer:
A Neural Network is a computing system inspired by the human brain that processes
information through interconnected nodes (neurons). It automatically learns patterns from
large datasets.
Layer Function
Input Layer Receives raw data and sends it to the hidden layers.
Hidden Layers Process the data using weights, biases, and activation functions.
Output Layer Displays the final result or prediction to the user.
Q3. Compare Rule-Based and Learning-Based AI Models. State one real-world
example for each.
Q4. Differentiate between Classification and Regression models with suitable examples.
Model
Classification Regression
Type
Output
Categorical (Discrete) Continuous value
Type
Data Used Labeled data Labeled data
Predicting if an email is spam or Predicting house price based on size and
Example
not location
Use Case Sorting items into classes Estimating numerical outcomes
No – Each neuron has its own Yes – Filters share weights across the
Weight Sharing
weights input
Works well with small to medium Requires large amounts of data for
Data Dependency
datasets training
Algorithm Uses simpler algorithms like Uses complex neural networks with
Complexity decision trees, SVM, etc. multiple layers
Hardware
Can run on standard CPUs Needs high-performance GPUs
Requirement