-
-
Save amankharwal/2af78421f8572cb825e9584755f06e66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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