Skip to content

Commit 869598b

Browse files
committed
updated online
1 parent 75a91a0 commit 869598b

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Diff for: Descision tree/descisionrules.asv

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
function descisionrules(node)
2+
disp('if');
File renamed without changes.

Diff for: LogisticRegression/logisticregression.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ function logisticregression()
3232
o = dot(ds,w);
3333
y = (1/(1+exp(-o)));
3434
err = err + r * log(y) + (1- r) * log(1 - y);
35-
cw = cw + ((r - y) * ds );
35+
cw = ((r - y) * ds );
3636
w = w + lr(1,l) * cw;
3737
end
38+
3839
witer = [ witer w' ];
3940
err = - (err / 100) ;
4041
error = [ error err ];

0 commit comments

Comments
 (0)