【480】Keras实操
参考:Keras - Python Deep Learning Neural Network API
- Keras With TensorFlow Prerequisites - Getting Started With Neural Networks
- TensorFlow And Keras GPU Support - CUDA GPU Setup
- Keras With TensorFlow - Data Processing For Neural Network Training
- Create An Artificial Neural Network With TensorFlow's Keras API
- Train An Artificial Neural Network With TensorFlow's Keras API
- Build A Validation Set With TensorFlow's Keras API
- Neural Network Predictions With TensorFlow's Keras API
- Create A Confusion Matrix For Neural Network Predictions
- Save And Load A Model With TensorFlow's Keras API
numpy.reshape(-1, 2)
个人理解:如果出现负数,则说明这个数字可以不参考,只参考正数的部分计算即可。
a = np.array([2, 3, 4, 6]) a.reshape(-1,1) output: array([[2], [3], [4], [6]]) a.reshape(-1,2) ouput: array([[2, 3], [4, 6]])