ds: r7 octave

This commit is contained in:
2025-12-25 14:29:00 +03:00
parent 01eccd02ea
commit 1fe3bbbe2e
17 changed files with 2151 additions and 1 deletions

View File

@ -0,0 +1,16 @@
function g = sigmoid(z)
%SIGMOID Compute sigmoid functoon
% J = 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