Initial commit — Coursera Big Data coursework

This commit is contained in:
2026-05-09 03:03:14 +00:00
commit c85c238e41
30 changed files with 2488 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import Orange
train = Orange.data.Table("genestrain") #genestrain
blind = Orange.data.Table("genesblind")
learner = Orange.classification.bayes.NaiveLearner()
classifier = learner(train)
classInt = {'CEU' : 0, 'GIH': 1, 'JPT': 2, 'ASW' : 3, 'YRI' : 4 }
results = [str(classifier(d)) for d in blind]
intResults = [str(classInt[r]) for r in results]
print ' '.join(intResults)
#for d in blind:
# c = classifier(d)
# print "%10s" % (classifier(d))
Binary file not shown.
Binary file not shown.