Challenge - Classification Prediction With Data Preprocessing
In this challenge, you need to load a dataset, preprocess it, perform feature selection and finally build a model.
We'll cover the following
Challenge - Load data, preprocess, feature selection, and create a model
In this challenge, you need to do the following tasks:
- Load the
challenge1.csv
as your dataset. - Preprocess your dataset and select best
K
features.
The value range of different features varies greatly, so
MinMax
can be considered.
- Split this dataset into two parts as train and test set. The train set accounts for 80%.
- Create a logistic regression model and train it. This is a binary classification task.
- Evaluate this model using the
F1 score
. - Return the
F1 score
.
Note: You can load
challenge1.csv
, this file is already in this platform. The label is the columntarget
.If you are already familiar with the
pandas
library, it’s easy for you to load this dataset. If not, you can click theHint
to get the code of loading data.
Get hands-on with 1400+ tech skills courses.