Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Training Set | Section
Machine Learning Foundations with Scikit-Learn

bookTraining Set

Veeg om het menu te tonen

In supervised or unsupervised learning, the training set is usually presented in a tabular format.

An example is the diabetes dataset, which is used to predict whether a person has diabetes. It contains records of 768 females with parameters such as age, body mass index, and blood pressure. These parameters are referred to as features.

The dataset also includes an 'Outcome' column indicating whether the person has diabetes. This is the target variable.

Each row in the table is an instance (also called a data point or sample), representing information about a single individual.

The table (training set) has a target column in it, which means it is labeled.

The task is to train the ML model on this training set, and once it is trained, it can predict for other people (new instances) whether they have diabetes based on features only.

Note
Note

This training set is an example of a biased dataset as it exclusively contains information about females who are at least 21 years old. Therefore, the model may produce less accurate predictions for males or for females under 21, since it hasn't been trained on these groups.

While coding, feature columns are usually assigned to X and target columns assigned as y.

And features of new instances are assigned as X_new.

question-icon

Match the variable names with the data they usually hold.

X –
y –

X_new –

Klik of sleep items en vul de lege plekken in

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 3

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

Sectie 1. Hoofdstuk 3
some-alt