From 9beea5514f30e2b5d95b1a05fc4f5cfeeb291478 Mon Sep 17 00:00:00 2001 From: Soham Malakar Date: Wed, 31 Jul 2019 12:59:18 +0530 Subject: [PATCH] Update sigmoid.m --- sigmoid.m | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/sigmoid.m b/sigmoid.m index 5d4868a..4238a15 100644 --- a/sigmoid.m +++ b/sigmoid.m @@ -1,18 +1,9 @@ function g = sigmoid(z) -%SIGMOID Compute sigmoid function +%SIGMOID Computes sigmoid function % g = SIGMOID(z) computes the sigmoid of z. -% You need to return the following variables correctly g = zeros(size(z)); -% ====================== YOUR CODE HERE ====================== -% Instructions: Compute the sigmoid of each value of z (z can be a matrix, -% vector or scalar). - - g=1./(1+exp(-z)); - -% ============================================================= - end