AI Tools Solution Scheme
AI Tools Solution Scheme
Scheme of Valuation
Q1a: Define Function and write program to find max of two numbers(8M)
A function in Python is a block of code that performs a specific task and is reusable. It is
defined using the 'def' keyword.
Example:
```python
def max_of_two(a, b):
if a > b:
return a
else:
return b
x, y, z = compute(4, 2)
print(x, y, z)
```
class Dog(Animal):
def bark(self): print("Dog barks")
d = Dog()
d.speak()
d.bark()
```
Probabilistic Reasoning:
Example Applications:
Medical diagnosis
Natural language understanding
Robot localization
Supervised Learning:
Unsupervised Learning:
No labeled data.
Finds patterns or groups.
E.g., clustering, dimensionality reduction.
Reinforcement Learning:
Machine Learning is a subfield of AI where machines learn patterns from data to make
decisions.
Example:
A statistical approach that iteratively moves a window toward the region with
highest density (most similar features).
Widely used for real-time object tracking.