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

Conteúdo do Curso

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) –

Clique ou arraste solte itens e preencha os espaços

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 4
We're sorry to hear that something went wrong. What happened?
some-alt