Professional Documents
Culture Documents
HIM&MDA Manual 8
HIM&MDA Manual 8
Homework 8:
Student Name
Student ID
Section 5
Dept. IT
Year 4th
Date 30/4/2023
Question1: Upload any medical dataset divided into three classes.
import tensorflow as tf
import numpy as np
# compile the model with the appropriate loss function, optimizer, and metrics
model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])
Question2: Apply CNN model on previous dataset for classification any unseen image.
# load dataset
# preprocess images