Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Types of Data | Machine Learning Concepts
ML Introduction with scikit-learn
course content

Зміст курсу

ML Introduction with scikit-learn

ML Introduction with scikit-learn

1. Machine Learning Concepts
2. Preprocessing Data with Scikit-learn
3. Pipelines
4. Modeling

book
Types of Data

Each column(feature) in a training set has a datatype associated with it. Those datatypes can be grouped into numerical, categorical, and date and(or) time.

Unfortunately, most ML algorithms only work well with numbers. So we need a way to convert the categorical data and the datetime data to numbers.

Regarding date and time, you can use features like 'year', 'month', etc., based on your task. Those features are numerical values, so there is no problem with them. Categorical data is a little more challenging to deal with.

Types of Categorical Data

Categorical data is classified into two types:

  • Ordinal data is a type of categorical data in which categories follow a natural order. For example, level of education (from elementary school to Ph.D.) or rates (from very bad to very well), etc.;

  • Nominal data is a type of categorical data that follows no natural order. For example, name, gender, country of origin, etc.

As you will see in later chapters, converting ordinal and nominal data types to numerical values is different, that's why we need to separate them.

question-icon

Match the feature and its data type.

Price (100, 235) –
Color (blue, orange) –

Academic grades (A, B, C, and so on) –

Натисніть або перетягніть елементи та заповніть пропуски

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 4
We're sorry to hear that something went wrong. What happened?
some-alt