Skip to content

Instantly share code, notes, and snippets.

@risenW
Created August 17, 2020 13:25
Show Gist options
  • Save risenW/78a739582f89193aa8d6c58b2d0e05a6 to your computer and use it in GitHub Desktop.
Save risenW/78a739582f89193aa8d6c58b2d0e05a6 to your computer and use it in GitHub Desktop.
// Standardize the data with MinMaxScaler
let scaler = new dfd.MinMaxScaler()
scaler.fit(Xtrain)
Xtrain = scaler.transform(Xtrain)
return [Xtrain.tensor, ytrain.tensor]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment