Skip to content

Complete deep learning assignment 2 - #2

Open
AyeshaAzizProva wants to merge 2 commits into
mainfrom
assignment-2
Open

Complete deep learning assignment 2#2
AyeshaAzizProva wants to merge 2 commits into
mainfrom
assignment-2

Conversation

@AyeshaAzizProva

Copy link
Copy Markdown
Owner

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

I completed Assignment 2 and Labs 4, 5, and 6. In Assignment 2, I implemented zero-shot Fashion-MNIST classification using CLIP, evaluated baseline and improved prompts, visualized image embeddings using UMAP, and conducted a multiple-description classification experiment. I also added the required reflections and short report.

What did you learn from the changes you have made?

I learned how CLIP performs zero-shot image classification by comparing normalized image and text embeddings using cosine similarity. I also learned that prompt wording affects classification accuracy and that adding more prompts does not always improve performance. The UMAP visualization helped me understand how CLIP separates distinctive classes and struggles with visually similar clothing classes.

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

I considered using a different CLIP model or evaluating top-k accuracy. I selected multiple-description classification to investigate whether providing several descriptions for each class would improve performance.

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

The main challenge was the long inference time because CLIP processed 10,000 images on the CPU. I added progress updates and reused previously calculated image embeddings in the mini-experiment to avoid unnecessary repeated inference.

How were these changes tested?

I restarted the kernel and executed the notebook cells. I evaluated the models using accuracy and confusion matrices. The baseline achieved 62.40% accuracy, the improved prompts achieved 64.81%, and the multiple-description experiment achieved 59.59%. I also verified that the UMAP visualization and all notebook outputs were generated successfully.

A reference to a related issue in your repository (if applicable)

N/A

Checklist

  • [ x] I can confirm that my changes are working as intended

@tianyi21 tianyi21 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Ayesha Aziz,

Thank you for submitting your DL week 2 assessment. Please find my comments attached to each file. Please re-run the lab4 notebook and include all results in your submission.

Thanks,
Tianyi [LS]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Lab5 complete.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Lab6 complete.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 1. Loading the Fashion-MNIST Dataset: The code cell where you defined the dataset and loader was not executed. Further, the following code cell should display only a batch of (16) images.
✅ A2 complete.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Please execute all code cells and generate all corresponding outputs and results.

@AyeshaAzizProva

AyeshaAzizProva commented Jul 21, 2026 via email

Copy link
Copy Markdown
Owner Author

@AyeshaAzizProva

AyeshaAzizProva commented Jul 22, 2026 via email

Copy link
Copy Markdown
Owner Author

@tianyi21 tianyi21 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Ayesha Aziz,

Thank you for revising your submission.

🎉 Your week 2 assessment is now complete!
🎊 All your DL assessments are now complete! Thank you for your participation, and I wish you the best of luck in your future endeavours!

Thanks,
Tianyi [LS]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Lab4 complete.

@AyeshaAzizProva

AyeshaAzizProva commented Jul 22, 2026 via email

Copy link
Copy Markdown
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants