Filter by keyword, subject, or both. Updates live as new model answers are added to our portal.
Research Methods
Assignment 3 – Large Language Models: LLM Coding and Report
This individual assessment for the Research Methods module focuses on the application of Large Language Models (LLMs) to a practical data science problem. The assignment is worth 25% of the module and is designed to develop students’ knowledge and understanding of research methods, investigative planning, data analysis, model evaluation and effective technical communication. Students are required to complete both a coding component and a concise written report demonstrating how an LLM has been selected, trained or fine-tuned, applied to a suitable task and evaluated against an appropriate baseline. The assessment begins with familiarisation with relevant literature. Students are expected to investigate the history and development of their chosen problem and examine the methods that have previously been used to address it. The brief provides key papers on common types of LLMs as a starting point for the literature review. Students then select a task that can be addressed through fine-tuning an LLM, with examples including sentiment analysis, fake news detection and topic classification. A publicly available dataset suitable for the selected text-classification problem must also be identified. Suggested sources include Kaggle and Hugging Face Datasets. The data must be appropriately preprocessed, including tokenisation using BERT's tokenizer and division into training and testing sets. Students then fine-tune a pre-trained BERT or BERT-style model using suitable tools such as the Hugging Face Transformers library and PyTorch. Possible model choices include BERT, RoBERTa and T5. The selected model should be appropriate for the specific problem, recognising that different language models may perform differently across tasks. Students are expected to implement a suitable training process using an appropriate optimiser and loss function. Model performance must be evaluated using relevant classification metrics, including accuracy, precision, recall and F1-score. The performance of the selected LLM should also be compared with a baseline model, such as Logistic Regression, Naive Bayes or a pre-trained BERT model. The analysis should explain the results and consider their relevance to the chosen problem. Two main submission components are required. The first is a code notebook, such as a Jupyter or Google Colab notebook, containing annotations explaining the purpose and operation of the relevant code so that another person can understand and reproduce the work. The second is a report of no more than three pages, including appropriate figures, tables and references. The report should cover the motivation and dataset, methodology, model training and evaluation, results and discussion, limitations, conclusion and possible future improvements. The assessment rubric places particular emphasis on coding quality and implementation, model architecture, analysis and interpretation, and report presentation. Strong work should demonstrate well-structured and reusable code, clear explanation of the model architecture and configuration, appropriate evaluation metrics and visualisations, meaningful comparison with relevant literature or baseline models, and critical evaluation of the model's success and possible improvements.
Read Model Answer →
Machine Learning / Artificial Intelligence and Data Science
1,000 words
End-to-End Machine Learning Model Development, Tuning and Evaluation
This Level 7 Machine Learning and Intelligent Agents assessment requires students to develop and document an end-to-end machine-learning solution, covering the complete workflow from data preparation through model training, tuning, testing and evaluation. Students select an appropriate dataset or scenario, formulate a research question and determine whether the problem is most appropriately addressed through supervised learning, unsupervised learning or reinforcement learning. Suitable machine-learning techniques must then be implemented to create a model that can be systematically trained and tested. The assignment requires students to follow a structured machine-learning development process and document the complete development journey. The report should explain the selected scenario, data collection or dataset, Exploratory Data Analysis (EDA), rationale for selecting particular machine-learning methods, model training, fine-tuning and evaluation. Model performance must be assessed using appropriate established metrics, with relevant published research used to justify methodological decisions and support the interpretation of results. The technical implementation should demonstrate the ability to identify the performance of machine-learning algorithms, implement machine-learning approaches using one or more object-oriented programming languages, and determine which algorithms are most appropriate for a particular analytical brief. These requirements directly correspond to the module learning outcomes relating to machine-learning performance, implementation and algorithm selection. Students are advised to document their work within a Jupyter Notebook, combining Markdown explanations with executable code. The notebook may be submitted directly or converted to PDF. Alternatively, students may prepare the 1,000-word report in Microsoft Word, provided that the Python code is included within the submitted document. Assessment is divided into three principal areas: Introduction (20 marks), Machine Learning Process (40 marks), and Evaluation of Model Performance (40 marks). Higher-level work is expected to demonstrate strong understanding of machine-learning concepts, a functioning and thoroughly tested implementation, appropriate selection of algorithms and critical evaluation of the developed solution. Overall, the assessment integrates research-question formulation, data exploration, algorithm selection, programming, model optimisation and evidence-based evaluation within a reproducible machine-learning workflow. All academic sources must be presented using Harvard referencing.
Read Model Answer →
Machine Learning / Artificial Intelligence and Data Science
1,011 words
End-to-End Machine Learning Model Development, Testing and Evaluation
This Level 7 Machine Learning and Intelligent Agents assignment requires students to develop and document an end-to-end machine-learning solution, covering the complete process from data preparation through model training, tuning, testing and evaluation. Students independently select a suitable dataset or scenario, formulate an appropriate research question and determine whether the problem should be addressed using supervised learning, unsupervised learning or reinforcement learning. Appropriate machine-learning algorithms must then be implemented to create a model capable of being trained and objectively tested. The assessment encourages the use of a structured machine-learning development methodology. Students are expected to explain the selected scenario and data source, perform suitable data preparation and Exploratory Data Analysis (EDA), and provide a reasoned justification for the machine-learning methods selected. The development process should demonstrate how the chosen algorithms are trained and fine-tuned before their performance is evaluated using established and relevant metrics. Published academic research should be incorporated to justify methodological choices and support the interpretation of results. The technical work is normally documented within a Jupyter Notebook, combining Markdown explanations with executable code cells. Alternatively, the report may be produced in Microsoft Word provided that the Python implementation is included. The assignment therefore assesses both conceptual understanding and practical programming competence. Students must demonstrate an ability to identify the performance of machine-learning algorithms, implement machine-learning techniques using an object-oriented programming language, and evaluate which algorithms are appropriate for a particular analytical brief. Assessment places particular emphasis on three areas: the Introduction, the Machine Learning Process, and the Evaluation of Model Performance. The marking criteria reward strong understanding of machine-learning concepts, a functioning and thoroughly tested implementation, appropriate selection of algorithms, and critical evaluation of the final solution. At the highest achievement level, implementations are expected to work without exception, satisfy the required functionality, demonstrate comprehensive testing and extend beyond the basic requirements. Overall, the assignment combines research-question formulation, data analysis, algorithm selection, machine-learning implementation, model optimisation and evidence-based evaluation within a reproducible technical workflow. All academic sources and supporting material must be presented using Harvard referencing.
Read Model Answer →