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

bookTraining Set

Swipe um das Menü anzuzeigen

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 –

Klicken oder ziehen Sie Elemente und füllen Sie die Lücken aus

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 3

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

Abschnitt 1. Kapitel 3
some-alt