Computer Speech Processing Assignment 2
Computer Speech Processing Assignment 2
CSP
Presented by:
Sana Farooq
23L-8000
Table of Content
Table of Content 2
Question 1 3
Compare the tools you used above. State the advantages and disadvantages. 3
Question 2 5
Question 1
Compare the tools you used above. State the advantages and disadvantages.
The aforementioned assignment involves implementing neural networks using three different
frameworks: Scikit-learn, Keras, and PyTorch for classifying the MNIST audio dataset based
on extracted MFCC features.
1. Feature Extraction
Scikit-learn
Advantages:
Disadvantages:
2. Keras
Advantages:
Disadvantages:
● Might be less efficient than PyTorch for certain specific use cases due to
computational overhead.
● Debugging can be challenging with less transparent error messages compared to
PyTorch.
3. PyTorch
Advantages:
Disadvantages:
Final Takeaway
For small datasets, use Scikit-learn for its simplicity. Choose Keras for medium-sized datasets
due to its user-friendly interface and decent performance. For larger datasets or complex
customizations, PyTorch is best due to its flexibility and efficient handling of computational
tasks.
Question 2
In PyTorch, a data loader is a utility that helps in efficiently loading and managing datasets,
especially when working with large amounts of data for machine learning tasks. Its primary
purpose is to:
Data loaders are crucial for machine learning tasks, managing data from various sources and
preparing it for training or inference. They handle batching efficiently, dividing data into
smaller portions for optimized hardware use and memory efficiency.
Additionally, they facilitate shuffling and sampling to prevent biases and offer diverse data
perspectives. PyTorch's loaders stand out with parallel loading, utilizing multiple CPU cores,
especially beneficial for large datasets.
They seamlessly integrate with PyTorch models, allowing smooth data flow during training
or inference. Their flexibility permits customization with transformations, preprocessing, and
tailored loading for specific needs like normalization and data augmentation.