Search the courses, subjects, tracks, games and features, or jump straight to a page.
Learn it your way
A short class with Sarah and her students. The other ways are under More.
Sign up free to listen. Transcripts are free to read.
Today, we're diving into the Modelling phase of the AI Project Cycle. This is where we create models that help us predict outcomes based on our data.
What do you mean by 'models'? Are they like a virtual version of something?
That's a good way to think about it! Models are mathematical representations that learn from data. By exposing them to different data points, they begin to understand patterns that help predict future events. Essentially, they help us make data-driven decisions!
So, how do we start creating these models?
Great question! We start by splitting our data into two parts: the training set, which the model learns from, and the testing set, which we use to evaluate performance later.
When it comes to AI models, we mainly deal with two types: supervised and unsupervised learning. Who can tell me the difference between them?
I think supervised learning uses labeled data, while unsupervised doesn’t?
Exactly! In supervised learning, we train our models using historical data that includes the correct answers, like if an email is spam or not. In unsupervised learning, we don’t have labels, so the model tries to identify patterns by itself, like grouping similar customers.
Can you give an example of each?
Sure! An example of supervised learning could be a model that predicts housing prices based on various features, like location and size. An example of unsupervised learning might be using clustering to categorize users based on their purchasing behaviors.
After we've chosen our algorithm and split the data, our next steps are training and testing our model. Can anyone explain why we need to test our model?
So we can see if it actually works, right?
Exactly! Testing allows us to see how well our model predicts outcomes using new data it hasn't seen before. If it performs well, we can be more confident in its predictions.
But what if it performs poorly?
Good question! If the model isn’t accurate, we may need to improve the quality of our data, explore different algorithms, or fine-tune how we train it.
Would it be easier just to change the data instead of the model?
Sometimes, yes! Improving the data can be quicker and more effective than adjusting the model itself.
Let’s apply what we’ve learned! Imagine we want to predict food waste in our school canteen. First, what kind of data would we need?
We would need information like the number of students and what meals are being served.
Right! And once we have our data, how would we go about building our model?
We would split the data into training and testing, choose an algorithm, and then train it.
Correct! Once trained, we would test it to see how accurately it predicts waste. If it predicts correctly, we can help the canteen reduce food waste effectively.
And if it doesn’t predict well?
Then we review our data and model to identify improvements. The goal is always to provide actionable insights!
Modelling's like a dream that shows, / Predicting futures from data flows.
Imagine you're a chef with recipes (data) and you train (model) a new cook. Over time, the cook starts to make perfect dishes based on past experiences mix (training), and checks them against what diners like (testing).
Remember 'STTT': Split, Train, Test. These are your key steps in modelling.
M.A.P.: Models Are Predictions. Always remember that when modelling, we aim for predictions!
Term
What is Modelling?
Click to flip
Term
Define Supervised Learning.
Click to flip
Term
What is Unsupervised Learning?
Click to flip
Term
What is a Training Set?
Click to flip
Term
What is a Testing Set?
Click to flip
The process of creating a mathematical representation of data to make predictions or decisions.
A type of machine learning where a model is trained on labeled data.
A type of machine learning that finds patterns in unlabelled data.
A dataset used to train a model.
A separate dataset used to evaluate the performance of a trained model.
A set of rules or calculations followed by a model to process data.
The Modelling phase of the AI Project Cycle involves selecting and training AI models to make predictions based on data.
In the Modelling section, we explore how to create predictive models that learn from historical data using various algorithms. The process includes splitting the data, selecting the appropriate algorithm, training the model, and validating its accuracy.
The Modelling phase is a critical component of the AI Project Cycle, where the actual magic of AI happens. During this phase, we create models that can learn from the data collected and make informed predictions or decisions based on that data. The modelling process primarily consists of several key steps:
Splitting Data: The dataset is divided into training and testing sets. The training set is used to build the model, while the testing set helps evaluate its performance.
Choosing the Right Algorithm: Based on the nature of the problem and the type of data available, different algorithms (like regression for continuous outputs or classification for categorical outputs) are selected. Two major types of learning are covered:
Training the Model: The selected algorithm is applied to the training data to create a model. During this process, the model learns the underlying structure or patterns in the data.
Testing and Validating the Model: Once trained, the model is tested using the separate testing data to measure its accuracy, performance, and reliability in prediction.
For example, if we want to build a model to predict daily food waste based on student attendance and menu offerings, we would:
The Modelling phase is essential for translating raw data into actionable insights, which is the foundation of any successful AI initiative.