Logistic Regression in Python & NumPy
Logistic Regression Model Implementation in Python NumPy.
Packages
import numpy as np
import copy
import matplotlib.pyplot as plt
import h5py
import scipy
from PIL import Image
from scipy import ndimage
from lr_utils import load_dataset
from public_tests import *Problem Set
# Loading the data (cat/non-cat)
train_set_x_orig, train_set_y, test_set_x_orig, test_set_y, classes = load_dataset()General Architecture of the learning algorithm

Building algorithm
Initializing parameters
Forward and Backward propagation
Optimization
Predict
Merge all functions into a model
Further Analysis
Choice of learning rate
Interpretation
Last updated