Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created August 19, 2020 04:17
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 amankharwal/2af78421f8572cb825e9584755f06e66 to your computer and use it in GitHub Desktop.
Save amankharwal/2af78421f8572cb825e9584755f06e66 to your computer and use it in GitHub Desktop.
import numpy as np
# create dummy data for training
x_values = [i for i in range(11)]
x_train = np.array(x_values, dtype=np.float32)
x_train = x_train.reshape(-1, 1)
y_values = [2*i + 1 for i in x_values]
y_train = np.array(y_values, dtype=np.float32)
y_train = y_train.reshape(-1, 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment