We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ac5bed commit 521ea93Copy full SHA for 521ea93
Case3.py renamed to Classification.py
@@ -19,7 +19,7 @@
19
20
21
22
-############
+
23
import matplotlib.pyplot as plt
24
from matplotlib.colors import ListedColormap
25
from matplotlib.backends.backend_pdf import PdfPages
@@ -36,7 +36,7 @@
36
37
38
39
-#################
40
41
def accuracy(predictions, outcomes):
42
# Enter your code here!
@@ -52,7 +52,7 @@ def accuracy(predictions, outcomes):
52
53
print (accuracy(x,y))
54
55
-###############
56
print(accuracy(0,data["high_quality"]))
57
58
@@ -72,7 +72,7 @@ def accuracy(predictions, outcomes):
72
random.seed(123)
73
selection = random.sample(range(n_rows), 10)
74
75
76
predictors = np.array(numeric_data)
77
training_indices = [i for i in range(len(predictors)) if i not in selection]
78
outcomes = np.array(data["high_quality"])
0 commit comments