part1 - AVERAGE_SUCCESS=zeros(1,TESTSET_COUNT 1 for...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%part1.m % negative=-1; NUM_OF_LEARNING_C=4; TRIAL_NUM=5; TESTSET_COUNT=5; LEARNING_CONSTANTS=[0.01, 0.1, 1, 10]; W_CONSTANTS=[0.1, 0.5, 5, 10]; W_NUM=length(W_CONSTANTS); AVERAGE_SUCCESS_RATES=cell(NUM_OF_LEARNING_C,W_NUM); SUCCESS_RATES=cell(TRIAL_NUM,NUM_OF_LEARNING_C,W_NUM); S AVERAGE_ITERATION=zeros(NUM_OF_LEARNING_C,W_NUM); ITERATIONS=zeros(TRIAL_NUM,NUM_OF_LEARNING_C,W_NUM); for w=1:W_NUM %w=1; W_CONSTANT=W_CONSTANTS(1,w); for c=1:NUM_OF_LEARNING_C LEARNING_CONSTANT=LEARNING_CONSTANTS(1,c);
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: AVERAGE_SUCCESS=zeros(1,TESTSET_COUNT+1); for num=1:TRIAL_NUM learning; testing; redial; ITERATIONS(num,c,w)=TRAINING_STEP; SUCCESS_RATES{num,c,w}=SUCCESS; AVERAGE_ITERATION(c,w)=AVERAGE_ITERATION(c,w)+TRAINING_STEP/TRIAL_NUM; AVERAGE_SUCCESS=AVERAGE_SUCCESS+SUCCESS/TRIAL_NUM; end AVERAGE_SUCCESS_RATES{c,w}=AVERAGE_SUCCESS; TESTSET=; OUTPUTS=; DIFFERENCES=; end end %----------------------------------------------------------------...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern