Skip to content

Commit

Permalink
update the regulation term
Browse files Browse the repository at this point in the history
  • Loading branch information
DravenALG committed Sep 4, 2023
1 parent 51dcb4c commit dc428b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MAIN.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
close all; clear; clc; warning off;

%% globel settings
train_param.current_bits = 16;
train_param.current_bits = 128;
train_param.max_iter=5;

%% load dataset
Expand Down
2 changes: 1 addition & 1 deletion train_OASIS.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@


% update U
U_new = (GTrain_new*V_new'+HH{1,2})/(V_new*V_new'+HH{1,3}+thet);
U_new = (GTrain_new*V_new'+HH{1,2})/(V_new*V_new'+HH{1,3}+thet*eye(nbits));

% update W
WW{1,1}=(B_new*Xm1'+HH{1,5})/(Xm1*Xm1'+HH{1,6}+delta*eye(param.image_feature_size));
Expand Down
2 changes: 1 addition & 1 deletion train_OASIS0.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@


% update U
U_new = (GTrain_new*V_new')/(V_new*V_new'+thet);
U_new = (GTrain_new*V_new')/(V_new*V_new'+thet*eye(nbits));

% update W
WW{1,1}=B_new*Xm1'/(Xm1*Xm1'+delta*eye(param.image_feature_size));
Expand Down

0 comments on commit dc428b7

Please sign in to comment.