Step by step intro
Do you like pytorch?
Convert input to tensor
if not torch.is_tensor(input):
self.input = torch.from_numpy(input)Convert to tf:
tf.cast(x, dtype)Initialize parameters
np.random.seed(3)
W1 = np.random.randn(n_h, n_x) * 0.01
b1 = np.zeros(shape = (n_h, 1))
W2 = np.random.randn(n_y, n_h) * 0.01
b2 = np.zeros(shape = (n_y, 1))Choose an optimization algorithm
Build a model
Fine-tuning
Wk4 - Building your Deep Neural Network: Step by StepLast updated