10/10/26 Sat 10:36am

Logistic Regression

It is a supervised learning algorithm and is used for Classification problems. Whereas Dependant variable is categorical and binary.

where

Gradient Decent Algorithm for Regression

Let be the predicted output from the model, and be the actual output.
Error is given by

The Objective function is given by

The gradient Descents are

and the weights

where is the learning rate

now

similarly

Gradient Decent for Classification

The objective function is given by

now

Q&A

Question

At 80 percent loading the measured temperature rises 30 for a motor. Initially and with a learning rate () of 0.1 perform one update, calculate the new temperature rise and estimate the transformer temperature at 25 ambient.

Solution:

xye=
0.80.60.5-0.1
now using

and

An industrial pump uses logsictal regression to find out normal ( y = 0 ) or faulty (y = 1) based vibration rms. the vibration measurement is given by the following formula

where the training data mm/s mm/s the model estimates fault probability as

and the current parameters w= 0.4 and

A pump confirmed to be faulty with a vibration of 4 mm/s this training sample has target variable y = 1. Using binary cross entropy loss and a learning rate = 0.1 calculate the following

  1. the standardized input x
  2. Fault probabilty and loss before updating the model
  3. Gradient and perform one gradient desecnt update of w and b
  4. Using the updated parameters recacluate the fault probability and loss for the sample
  5. Classify the sample using the rule fault if otherwise normal