me, looking at my own code: "what the everloving f-" also me: *realizes they're a bad person for absuing broadcasting operators again*
-
-
Replying to @EmilyGorcenski
I one-lined a generalized polynomial regression algorithm using lambdas and broadcast operators the other day, so now I repent.
1 reply 0 retweets 0 likes -
Replying to @EmilyGorcenski
yhat = @(x,y,k)polyval(fliplr(((x.^[0..k])'*x.^[0..k])\((x.^[0..k])'*y)),x) I'm like 99% sure this is perfectly valid matlab
2 replies 0 retweets 4 likes
Whoops, colons instead of double dots.
9:38 AM - 5 Nov 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.