View Single Post
  #9  
Old 04-09-2013, 08:14 AM
jlaurentum jlaurentum is offline
Member
 
Join Date: Apr 2013
Location: Venezuela
Posts: 41
Default Re: PLA computing speed

Isidro:

I used sapply on the sign function with an inner product argument. However, my code is very slow because of this (in pseudo code)

while there are misclassified points:
update the weight vector according to the correct output for that misclassified point
predict all the outputs according to the new weight vector (in just one instruction with
the sapply)
end while


My problem with speed is due to the while. Or maybe taking the first misclassified point is not the best thing to do...
Reply With Quote