#11




Re: PLA computing speed
Got it. for the inner product (in R) I was using sum(w*x). I changed that to w%*%x and the speed changed DRAMATICALLY. Misterios arcanos del R!

#12




Re: PLA computing speed
Quote:

#13




Re: PLA computing speed
I also want to add that I am using Matlab and the whole experiment always takes only a few seconds (both for N=10 and N=100).

#14




Re: PLA computing speed
Quote:
[chiraz, yes, it should be noted that attempts to improve convergence are a separate matter from the homework] 
#15




Re: PLA computing speed
I select randomly a missclassified point, but I don't think that this improves speed so much, but the use of inner product maybe (using 10000 points to calculate the probability of error between f(x) and g(x) can lead to important improvement)

#16




Re: PLA computing speed
I'm glad to hear it took some time for your iterations. I got to a point where I thought my code wasn't working, so I kept stopping it. Needless to say, my scores on the last 3 questions reflected my lack of confidence in my code.

Thread Tools  
Display Modes  

