Machine Learning Lab Assignment CSE-716: S. M. Shafkat Raihan ID: 16701041 SESSION: 2015-16
Machine Learning Lab Assignment CSE-716: S. M. Shafkat Raihan ID: 16701041 SESSION: 2015-16
CSE-716
S. M. SHAFKAT RAIHAN
ID: 16701041
SESSION: 2015-16
PROBLEM DESCRIPTION
Implementing
youth Artificial
mediumNeural
YesNetwork Classification
Excellent Using
Yes R
Language
middle_aged medium No Excellent Yes
model.fit(x_train, y_train, epochs=150, batch_size=10) # Now train-up the model, iterations = 500, batch = 10 is the number of
#training examples in one epoch
predictions = model.predict(x_test) # doing prediction using the model
predicted= [int(round(x[0])) for x in predictions] # Result have been rounded off and converted o integer as y_test values are integers
Accuracy: 0.75
Prediction No Yes
No 1 0
Yes 1 2
Explanation
Total Number of samples in test set = 4
Adding the elements of the principle diagonal of the confusion matrix gives us the Correctly identified
positive and negative classes = 1+2=3
Accuracy = (TP + TN) / Total = ¾ = 0.75