Part 1 :
for spam class :
precision : 336/349 = .96
recall : 336/363 = .93
f score = .95
for ham class :
precision : 987/1014 = .97
recall : 987/1000 = .98
f score = .97
Part 2 :
for spam class :
Precision : 355/367=.97
recall : 355/363=.98
f score = .97
for ham class :
Precision : 988/996 = .99
Recall : 988/1000 = .988
f score = .989