FIND-S Algorithm: Machine Learning 15CSL76
FIND-S Algorithm: Machine Learning 15CSL76
1. Implement and demonstrate the FIND-S algorithm for finding the most specific
hypothesis based on a given set of training data samples. Read the training data from a .CSV
file.
FIND-S Algorithm
1. Initialize h to the most specific hypothesis in H
2. For each positive training instance x
For each attribute constraint ai in h
If the constraint ai is satisfied by x
Then do nothing
Else replace ai in h by the next more general constraint that is satisfied by x
3. Output hypothesis h
Training Examples:
Program:
import csv
a = []
num_attribute = len(a[0])-1
Data Set:
Output: