Skip to content

Instantly share code, notes, and snippets.

@BinarySpoon
Created September 29, 2020 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BinarySpoon/1635950b3003817b35cc999eae7399b8 to your computer and use it in GitHub Desktop.
Save BinarySpoon/1635950b3003817b35cc999eae7399b8 to your computer and use it in GitHub Desktop.
# Seperate Feature And Label Values
y_train = train_data.compliance
X_train = train_data.drop('compliance',axis=1)
# Test Feature Data
X_test = test_data
# Scaling Features To Reduce Computation Time
scaler = MinMaxScaler()
X_train_scaled = scaler.fit_transform(X_train) # saved transform
X_test_scaled = scaler.transform(X_test) # apply tranform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment