机器学习算法练习之(二):Python和Tensorflow分别实现简单的神经网络
第一步:生成数据并可视化 import numpy as npimport tensorflow as tffrom sklearn.model_selection import train_test_splitimport matplotlib.pyplot as plt%matplotlib inlinenp.random.seed(12)num_observations