Algorithm 2 Logistic regression Algorithm to differentiate Benign or Malignant tumor |
-
1:
Identification: Disease
-
2:
Data-set: WBCD from Kaggle
-
3:
D ← Dataset (699 entries)
-
4:
Input: Training set , learning rate , maximum number of iterations T, initial hyper-plane , initial bias
-
5:
Set
-
6:
Construct augmented training features:
-
7:
for
do
-
8:
Calculate value of objective function:
-
9:
Compute gradient:
-
10:
Gradient descent step:
-
11:
end for
-
12:
return Output: Extract and from and return them
|