More Deep Learning Articles…

An Introduction to Feature Engineering in Machine Learning: Everything You Need to Know

Using the image of a gift shop whose toys arrive dumped in one heap, this beginner's guide argues that raw data must be organised before it can be useful, and that this organisation, feature engineering, largely decides how well a model performs. Citing a Forbes survey, it notes that data preparation takes most of a data scientist's time, and lists the payoffs: more efficient models, algorithms that fit the data more easily, patterns that are easier to find, and more flexible features.

Working through a small dataset of customers (country, age, salary, purchased) in Python, it covers analysing the dataset and dropping irrelevant columns; handling missing data by deleting columns above a null threshold, imputing continuous variables with the mean, median or most frequent value using scikit-learn's SimpleImputer, handling missing categorical values by dropping rows, adding a new “unknown” category or using the most frequent category, and predicting missing values with a model; encoding categorical data with one-hot encoding for independent variables (to avoid implying an order between countries) and label encoding for the target; and finally feature scaling by normalisation (rescaling to 0–1) or standardisation, fitting the scaler on the training set only.

The Arabic article is a translation of an English article. Read the original: A Beginner's Guide to Feature Engineering: Everything You Need to Know (Analytics Vidhya).

Post links

Leave a comment

Your email address will not be published. Required fields are marked *