Skip to content

Commit df269d7

Browse files
Update LogisticRegression.py
1 parent b551580 commit df269d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LogisticRegression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def fit(X,y,maxiter = 50,method = 'TNC',lam = 0.1):
7676

7777
for i in range(no_of_labels):
7878
temp_y = (y == (i)) + 0 # here labels are 0,1,2,3.. if they are 1,2,3,4... use: temp_y = (y == (i+1))+0
79-
#temp_y is a vector of size no_of_training_examples x 1
79+
#temp_y is a vector of size no_of_training_examples
8080
#since each iteration corresponds to finding theta for a single class (one-vs-all)
8181
#each time, we only take the predection of class 'i'on all training example
8282

0 commit comments

Comments
 (0)