0% found this document useful (0 votes)
89 views1 page

ML Assignment 2: Jupyter Notebook Tasks

The document provides instructions for Machine Learning assignment 2, worth 45% of the module. Students are asked to create individual Jupyter notebook files applying 9 different ML techniques to original datasets: a) Linear Regression, b) Polynomial Regression, c) Naive Bayes Classifier, d) KFold Cross Validation, e) Decision Trees, f) Support Vector Machine, g) K-Means Clustering, h) K-Nearest Neighbour, i) Principal Component Analysis. The notebooks must include code, comments explaining the technique and results, and be submitted by the deadline to receive full marks.

Uploaded by

Noah Byrne
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views1 page

ML Assignment 2: Jupyter Notebook Tasks

The document provides instructions for Machine Learning assignment 2, worth 45% of the module. Students are asked to create individual Jupyter notebook files applying 9 different ML techniques to original datasets: a) Linear Regression, b) Polynomial Regression, c) Naive Bayes Classifier, d) KFold Cross Validation, e) Decision Trees, f) Support Vector Machine, g) K-Means Clustering, h) K-Nearest Neighbour, i) Principal Component Analysis. The notebooks must include code, comments explaining the technique and results, and be submitted by the deadline to receive full marks.

Uploaded by

Noah Byrne
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Machine Learning –Assignment 2 – 45% of Module

Based on the sample jupyter notebook files that you have been using in class you are required
to complete the following exercises. Using any datasets of your choice (but not the same ones
used in the examples) you should create your own jupyter notebook files for each of the
following Machine Learning techniques:

x a) Linear Regression Aim for originality and multiple datasets


lots of commentary of data, code and results
lots of explaination
x b) Polynomial Regression equal marks for each
lots of content online and in labs
c) Naive Bayes Classifier Kaggle for datasets

d) KFold Cross Validation Aim for interesting examples

over explain it
e) Decision Trees
can get good or bad results, thats okay but just explain why or what it
f) Support Vector Machine shows

marks if data unusual or a bit different


x g) K-Means Clustering
give source of data ie kaggle
h) K-Nearest Neighbour 9 data and 9 books

i) Principal Component Analysis CPU add blocks of lines to explain whats happening. not essays on
essays
explaination where expl req'd
so will be needed at start to outline what to do. then steps and
results.
Instructions why results may be right or wrongs and how could be improved

The jupyter notebook files should document what youadd comments and text cells
are doing and explain the results. The
purpose of this exercise is to show that you can understand, edit and run pre-existing code
samples applying ML techniques. Each file is expected to run and should explain the
technique. Each file (a) – (i) carries equal marks. Marks will be awarded for originality and for
clean, readable code with good explanations.
The code should be original and created/edited by the student. If the student is using code
from the practical sessions it should be explained thoroughly to demonstrate that the student
understands the code. You may be asked to explain your code if there are limited comments
and there are problems with originality. Results should also be explained thoroughly to
demonstrate understanding.
This assignment must be submitted by Wednesday 24th March 2021 by midnight. To submit,
a single zip file with your name on it should be emailed to [Link]@[Link] (if the file is
too big then a link to cloud storage may be used).
Failure to submit by the deadline without a valid medical certificate will result in in a loss of
30% of the marks for this assignment. It is unfair on your class mates to expect that you can
have more time when they didn’t! Treat it like your job and get it in on time! NOTE: The
samples must be different from those supplied to you in blackboard.
email a zip folder with notebooks and datasets in sub folders
rather don't use sikit learn datasets have a go at each one and explain why did/didn't work
use kaggle or explain results

don't need fancy dataset. just try be a little unique

each part is equal, so start and focus on easier ones to get going

Common questions

Powered by AI

The purpose of creating original code in the Jupyter notebook assignments is to demonstrate a deeper understanding of the machine learning techniques being applied. By crafting original code, students engage more thoroughly with the material, fostering critical thinking and problem-solving skills. It also allows for creative interpretations and innovative solutions, distinguishing a student's work from mere reproductions. Using pre-existing code, while potentially more efficient, may limit this development of understanding unless thoroughly explained and modified, which is why the assignment places emphasis on originality and detailed explanations .

Focusing on the "easier" machine learning techniques initially can facilitate a strategic advantage by reducing early complexity and allowing students to build a strong foundational understanding. By gaining confidence and proficiency in simpler algorithms, students can efficiently allocate time and cognitive resources, ensuring comprehensive explanations and accurate implementations. This strategic prioritization frees up resources to tackle more complex problems later, ensuring a balanced and thorough completion of all components with available time and resources .

Providing a comprehensive explanation of code and results enhances the learning experience by encouraging students to deeply engage with the material, ensuring they understand not just how to implement an algorithm, but why it works and how different components interact. This reflection fosters a thorough grasp of the underlying principles and techniques, promoting a problem-solving mindset that is crucial for future real-world applications. Moreover, it helps instructors assess understanding and provide targeted feedback, facilitating a richer dialogue around concepts and driving continuous improvement in both learning and teaching methodologies .

Key factors for the equal distribution of marks across different machine learning techniques in the assignment include the completion and accuracy of the code, the originality of the approach, the clarity and thoroughness of explanations provided in text cells, and the student's ability to engage with unique datasets. Each technique should be given equal focus, demonstrating an understanding and application of diverse concepts. The equal marking scheme encourages a comprehensive mastery across a variety of machine learning methodologies rather than proficiency in a select few .

Students should address unexpected results in their machine learning projects by thoroughly explaining the potential reasons behind these outcomes. The assignment encourages students to evaluate their methodology and data, understanding and documenting why results may not align with expectations. This involves considering factors such as overfitting, underfitting, data quality, and the appropriateness of the model used. Students are expected to reflect on these outcomes critically, suggesting improvements or alternative approaches and demonstrating an iterative learning process .

Using datasets from sources like Kaggle is preferred because they often provide more diverse and complex datasets that require students to engage in more meaningful data preprocessing and analysis tasks, compared to the relatively straightforward datasets available in libraries like scikit-learn. This not only broadens the students' experience with real-world data challenges but also encourages the discovery of unique patterns and insights. Moreover, it ensures originality in their work as they won't simply replicate pre-existing code solutions tied to standard datasets .

Commentaries and explanations play a crucial role in the Jupyter notebook assignments as they guide the reader through the logical thought process of the student, providing insight into the rationale behind each step taken in data processing and model application. These elements transform raw code into a comprehensive study that communicates understanding, clarifies objectives, and interprets results. This transparency is essential because it not only demonstrates the student's knowledge but also allows for meaningful dialogue about the choices made and their implications. Well-documented code ensures that the assignment is both a learning tool and a means of assessment, showcasing a student's ability to articulate machine learning concepts effectively .

The implications of submitting the assignment late include a significant penalty of losing 30% of the total marks unless a valid medical certificate is provided. This strict policy highlights the importance the educator places on adhering to deadlines, mirroring real-world professional standards where timely delivery is often crucial. It conveys a broader expectation of responsibility and time management from students, reinforcing the importance of planning and commitment to deadlines as an integral component of academic and professional conduct .

The assignment encourages students to present both successful and unsuccessful machine learning results by valuing thorough explanations of outcomes irrespective of success. It emphasizes reflection on the causes of specific results and the learning derived from them, recognizing the educational benefit of understanding limitations and failures. This approach promotes transparency, fosters iterative problem-solving skills, and encourages students to continuously improve their models by understanding and articulating why certain strategies may not have worked as intended .

It is suggested to avoid using scikit-learn's inbuilt datasets because they are commonly used and widely understood, which might limit the demonstration of innovative problem-solving or unique analysis. Seeking out more unique datasets forces students to engage in comprehensive data analysis, preprocessing, and exploration, enhancing their learning experience. This approach encourages originality and creativity, helping students to develop a more robust understanding of machine learning through tackling novel challenges rather than through following typical solutions .

You might also like