###tf.name_scope中的 " "不能用错, 不然出的图有问题
import tensorflow as tf
sess = tf.Session()
import numpy as np
# production a x
x = np.random.normal(1,0.1,100)
x
# make num 100 promix 1.0 of data
array([0.9940863 , 1.0304992 , 0.97762058, 1.00800432, 1.09195523,
1.04937778, 0.95781823, 1.06891063, 0.94594961, 0.99332174,
1.1589545 , 1.10732833, 0.97627867, 1.04687933, 0.92893362,
1.02236687, 1.07791149, 0.81510138, 0.87561273, 0.87422627,
0.8737469 , 1.08922373, 1.00822831, 0.8541234 , 0.90521653,
0.84234838, 1.1371707 , 1.07264756, 0.88866021, 0.9980784 ,
0.93725592, 0.90316074, 0.83849088, 1.07578197, 0.97986209,
0.93641678, 0.9980677 , 1.00581579, 0.8082092 , 0.83065287,
1.20228752, 1.03061245, 1.07856248, 0.98809772, 0.8651765 ,
0.80070672, 1.07697638, 1.00540903, 1.02907557, 1.11805012,
0.90835062, 1.15296408, 0.92525936, 1.11672323, 0.97416803,
1.05164406, 0.95883872, 1.03260443, 1.11979878, 1.09814452,
1.09492511, 1.11094313, 1.05098334, 1.19756396, 0.88801811,
1.01537291, 0.83697104, 0.8347254 , 1.052225 , 1.06100486,
0.99021897, 1.10517371, 0.96112858, 1.14092349, 0.93125747,
0.99306431, 1.10388539, 1.02804944, 0.85029264, 0.97945323,
0.93903668, 1.12861977, 1.03370816, 1.14675805, 0.86452402,
0.88838304, 1.15429755, 0.94009355, 1.00283223, 1.14122523,
0.94519934, 0.93035902, 1.0623609 , 1.00111134, 0.95058915,
1.16332812, 1.06759074, 1.04075368, 1.11460525, 0.86604754])
y = np.repeat(10,100)
y
# make 100`s 10
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, 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