- 不要抄作业!
- 我只是把思路整理了,供个人学习。
- 不要抄作业!
本周主要是TensorFlow的简单教程,没什么好说的,可以去看看更详细一点的教程。
1 | # GRADED FUNCTION: linear_function |
1 | # GRADED FUNCTION: sigmoid |
1 | # GRADED FUNCTION: cost |
1 | # GRADED FUNCTION: one_hot_matrix |
1 | # GRADED FUNCTION: ones |
Building neural network
1 | # GRADED FUNCTION: create_placeholders |
1 | # GRADED FUNCTION: initialize_parameters |
1 | # GRADED FUNCTION: forward_propagation |
1 | # GRADED FUNCTION: compute_cost |
1 | def model(X_train, Y_train, X_test, Y_test, learning_rate = 0.0001, |