import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
# We define the model parameters w and b as variables
# with initial values of [.3] and [-0.3], respectively:
w = tf.Variable([.3], tf.float32)
b = tf.Variable([-.3], tf.float32)
x = np.arange(1,5)
y = w * x + b
print(y)
plt.plot(x,y)
plt.show()