import tensorflow as tf
sess = tf. Session( )
import numpy as np
x_input = np. random. normal( 1 . , 0.1 , 100 )
x_input
array([0.84621382, 0.95648512, 0.94070494, 0.95374238, 0.93615585,
0.94575612, 0.97288682, 1.04420505, 0.92434054, 0.99656827,
1.00266465, 0.92368651, 1.02649454, 1.0656405 , 0.98754244,
1.04271957, 1.04467531, 0.93748748, 1.14996885, 0.86963076,
1.12397436, 0.9255601 , 1.14705705, 1.18590243, 0.9647665 ,
1.03343096, 0.92280559, 1.02198703, 0.88483523, 0.80752765,
1.09316046, 1.01263394, 0.94574985, 0.88306798, 1.02848555,
0.97439881, 1.03132235, 1.05273623, 1.15051988, 0.98467571,
1.0551267 , 0.91506016, 0.83523104, 1.05567478, 0.93601496,
0.75622855, 0.80858112, 1.13222933, 0.93453599, 1.08916035,
1.12254516, 1.06909678, 1.21438359, 0.91908095, 1.18022016,
0.98977758, 1.10232421, 0.95572033, 0.92924952, 1.01156824,
1.06522159, 1.01675083, 0.85903523, 1.06793402, 0.89939404,
0.9012958 , 1.13024533, 0.84680093, 0.94766855, 1.05956127,
1.05027264, 1.13191343, 0.77001837, 1.0624303 , 1.12909669,
1.08578317, 0.88866672, 0.9944105 , 1.12157851, 0.94814195,
0.93368821, 0.96397671, 1.09479989, 0.87330042, 0.99542206,
1.06116412, 1.05671323, 1.12100331, 0.93792378, 0.9454422 ,
0.89908179, 0.93212151, 0.93352044, 1.21383013, 0.88365732,
0.85471302, 0.97720008, 0.86381069, 1.09407765, 1.10954736])
y_output = np. repeat( 10 . , 100 )
y_output
array([10., 10., 10., 10., 10., 10., 10., 10., 10., 10., 10., 10., 10.,
10., 10., 10., 10., 10., 10., 10., 10., 10., 10., 10., 10., 10.,
10., 10., 10., 10., 10., 10., 10., 10., 10., 10., 10., 10., 10.,
10., 10