plot the loss surface (BCE and MSE)for a two layers neural network

import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D def mlp_layer(x, w, b=0, activate="tanh"): if activate=="tanh": return np.tanh((w.transpose())*x
相關文章
相關標籤/搜索