Skip to content

Commit 521ea93

Browse files
authored
Update and rename Case3.py to Classification.py
1 parent 0ac5bed commit 521ea93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Case3.py renamed to Classification.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121

22-
############
22+
2323
import matplotlib.pyplot as plt
2424
from matplotlib.colors import ListedColormap
2525
from matplotlib.backends.backend_pdf import PdfPages
@@ -36,7 +36,7 @@
3636

3737

3838

39-
#################
39+
4040

4141
def accuracy(predictions, outcomes):
4242
# Enter your code here!
@@ -52,7 +52,7 @@ def accuracy(predictions, outcomes):
5252

5353
print (accuracy(x,y))
5454

55-
###############
55+
5656
print(accuracy(0,data["high_quality"]))
5757

5858

@@ -72,7 +72,7 @@ def accuracy(predictions, outcomes):
7272
random.seed(123)
7373
selection = random.sample(range(n_rows), 10)
7474

75-
###############
75+
7676
predictors = np.array(numeric_data)
7777
training_indices = [i for i in range(len(predictors)) if i not in selection]
7878
outcomes = np.array(data["high_quality"])

0 commit comments

Comments
 (0)