+ 1
Find error this code machine learning
import csv with open ('C:\Users\Amitabh\Desktop\7 sem\lab ml/enjoysport.csv', 'r') as f: reader = csv.reader(f) your_list = list(reader) print(your_list) h = [['0','0','0','0','0','0']] for i in your_list: print(i) if i[-1]=="yes": j=0 for x in i: if x!="yes": if x!= h[0][j] and h[0][j] =='0': h[0][h] =x elif x != h[0][j] and h[0][j] !='0': h[0][j] ='?' print(h) else: pass j=j+1 print("most specific hypothesis is") print(h)
2 Respostas
+ 4
your local drive(C:) is not accessible else where apart from your system itself.
Just copy pasting the codes snippets as your question is not appreciable.
Please make a code in code playground and paste the code's link here instead.
I hope you understand.