Menu

Preparing the Target Variable

Preparing the Target Variable

The target variable contains the labels that the model will learn to predict.

In this project:

  • 0 → Genuine Review
  • 1 → Fake Review

Create the Target Variable

y = df['label']

View the First Few Labels

y.head()