« first day (69 days earlier)      last day (3154 days later) » 

3:08 PM
I've still got no clue how RANSAC works. I usually end up writing my own classification/shape detector methods just because that's faster and I understand them at least
I'm deliberating expanding my current classification with a PCA, but I'm afraid my run-time goes through the roof then
 
RANSAC is actually very easy to explain.
Basically, given a really huge dataset, you randomly sample just enough data points... enough to create the model you're looking at.
Then, using this model you determine the overall error. If the error is less than the current minimum, these are the data points you keep and you keep these to create your final model.
 
yeah XD Its a very basic concept that way, its werid it worsk fine.
 
You keep iterating, and keep randomly sampling data points... creating models...finding the minimum.
 
take randomly data and use it, like 1000 times
adn get teh best one XD
 
at the end of the day, you will most likely have a model that has the minimum error.
This animated GIF from Wikipedia explains it best... this is with respect to finding the equation of the line that bests goes through the points.
Well not animated here lol.
If you used ALL of the points, you would have a line that would be very noisy.
 
3:11 PM
post the link
 
Here, all you need are TWO points to get the equation of the line
so here, you'd randomly sample 2 points from your data, make an equation of the line...
then figure out the error.
 
Random sample consensus (RANSAC) is an iterative method to estimate parameters of a mathematical model from a set of observed data which contains outliers. It is a non-deterministic algorithm in the sense that it produces a reasonable result only with a certain probability, with this probability increasing as more iterations are allowed. The algorithm was first published by Fischler and Bolles at SRI International in 1981.They used RANSAC to solve the Location Determination Problem (LDP), where the goal is to determine the points in the space that project onto an image into a set of landmarks with...
 
the two points that gave you the least amount of error is the equation of the line you keep.
Yup that's it.
 
it even has a free MATLAB code :o
 
The concept is the same, but implementing it depends on your application.
For example, finding the camera matrix that warps the 3D world visualized from the camera to a 2D projection requires at least 8 points.
get the 8 points, solve for the parameters, then find the error.
 
3:13 PM
@rayryeng @LuisMendo , lets settle up the doubts : differencebetween.com/difference-between-mandrill-and-vs-baboon
 
This is what is commonly known as the 8-point algorithm. Ander should know what I'm talking about :)
 
yeah!
I do
 
SO IT IS A MANDRILL! :D
 
it is!
 
I also used RANSAC to help an OP solve a problem... let me go dig it up
 
3:14 PM
why are we talking about apes?
 
1
A: Determining regression coefficients for data - MATLAB

rayryengThis sounds like a regression problem. Assuming that the unexplained errors in measurements are Gaussian distributed, you can find the parameters via least squares. Basically, you'd have to rewrite the equation so that you get this to the form of ma + nb + oc = p and then you have 6 equations w...

 
It does feel like an ape cage in here with all the jittering
 
It was part of a question that I answered.
4
A: How to warp an image into a trapezoidal shape in MATLAB

rayryengJust a warning that fitgeotrans is part of MATLAB R2013b and so this won't work for any versions below this. The process to warp the image to a "trapezoid" is quite simple. What you need to do is create a transformation object that takes the four corner points of the image and places them to ...

The OP wanted to take the image of a Mandrill / Baboon and warp it so that it appeared to be a trapezoid.
 
pff, you're just after more rep
(and I granted it)
 
what? lol.
I gave you the RANSAC links so you could read up on it if you have time :D
 
3:16 PM
I am reading them
but upvoted them as well :P
 
oh thanks :D
RANSAC is a simple concept... and surprisingly very powerful. It's used almost everywhere.
 
hahaha at this point, Rayryeng doesnt really need much rep XD
 
why'd you not simply use lscov for that thing?
 
There was a conference track at ICPR (International Conference on Pattern Recognition) that just focused on RANSAC.
ah, because I didn't know about lscov... that and I wanted to flex my RANSAC muscles.
It was titled something like... RANSAC... then and now - 50 years later.
or something like that.
it was a track that was specifically for papers that used RANSAC to help solve a problem.
and there were a lot. RANSAC is quite ubiquitous in computer vision - specifically camera calibration.
lol nah I don't need much rep.... I just answer questions because I like doing so. The rep is really a last priority.
 
lscov has been one of my best friends in the past year.
 
3:20 PM
Is there a difference between lscov and mldivide using default parameters?
 
so you can shorten your code by about 10 lines or so just using lscov instead of a hand-written implementation
just has a lot of the functionality build-in
such as errors, using weights etc
 
well RANSAC requires that you first select the points you want.
once I find the points, you can go ahead and solve the system.
the only thing that would change is that instead of using mldivide, I'd use lscov.
 
yea, but from the ldivide onwards you can use lscov to directly give you the result and error
 
I'll have to play around with it and see how it goes. I do like that it has weighted part of it.
OH! well that is nice.
 
we actually were told: "DO remember how LSE works and do NOT use lscov like a magic formula"
which is kind of what everyone did after the first week :D
 
3:23 PM
lol.
that's what I did.
 
want me to prepare a question on it?
 
but sometimes having it in a function is definitely nice.
 
I signed up to the coursera thing, @ray
 
It sounds interesting. But I think I already know most of the stuff they teach in it .-)

In fact, I've spent quite some time doing sound processing with Matlab, such as creating the drums and bass parts of songs (from sampled parts), applying effects like chorus and time-slicing; and even manually adjusting minor mistakes in vocal parts. it's incredibly funny!!
 
@LuisMendo - oh :D. Well I don't know as much as you. I haven't fooled around with audio signal processing stuff.
BTW, got your LinkedIn message. thanks :)
@AnderBiguri - Cool! I've started to look at the videos. You can totally skip the theory part of the first week. I'm more concerned with the programming / demo parts.
the theory I'll go through quickly, but I'll slow down when it comes to the STFT and the more complex models towards the end.
 
3:25 PM
@AnderBiguri Haha yes, I read they are often confused
 
@LuisMendo I did not know the difference, just googled around xD
@rayryeng yeah big part of the fft probably I know widely. Just for the fun of it. not sure if I will finish it, sometimes I just get tired of the courses. I really would like to do the Data sceitnist ones, but I find it very frustrating to code in R
 
@rayryeng I saw your linked guitar parts too. But they are just practice, right? You should go ahead and keep playing, and perhaps composing on your own. It's a fulfilling experience for me
 
I haven't had the time, but I will get back to it soon :)
I wouldn't mind the R stuff too, but it's not taught very well.
 
Let me know about that! I've been playing guitar for quite a few years!
 
If it weren't for my knowledge in MATLAB, I would have not gotten through the R course.
I'd say I've been on off playing for about 15 years.... I started when I was 16, but I'm in no means an expert lol
 
3:29 PM
The good thing about playing with processing sounds is that you feel (hear) the effect. Much like what you said about signal processing questions being easier to follow, because you literally see what's going on
 
yes yes!
I hope that by taking the course, I'll have a better grasp of what the actual effects are doing and how to recreate them :)
 
@rayryeng So, are you taking that course? Oh, nice! Then you can tell us how much new stuff it has for someone with signal-processing knowledge
I don't think the course covers much of effects stuff. It seems to be more focused on sound analysis and synthesis
 
It has a "sound transformation" week
 
Anyway most guitar sound effects are either distortion (clipping the signal to a certain degree) or mixing the signal with delayed versions if itself (sometimes the delays are time-varying)
@AnderBiguri From the presentation video I understood that it was more like changing the pitch of the sound, i.e. synthesizing notes given a particular timbre, rather than using effects to change timbre
 
ah, like Slayer? "We need more distortion!"
 
3:37 PM
@Adriaan Hahaha
Yeah
I have two friends who are into that stuff: Slayer, Megadeth, Metallica, Iron Maiden
I more or less know all those bands, although not exactly my style
 
I am into Metallica, and sometimes into Slayer. The other two arent really my cup of tea
 
I like Metallica's first album. Specially "Anesthesia (pulling teeth)"
I can more or less play it on the guitar
(although originally it's a long bass solo)
Also, their version of "Whiskey in the jar" is great!
 
I can only play the oboe, so can't play any of my music
except for Rachmaninov
 
I like how the oboe sounds. It's a wonderful sound
 
@Adriaan Slayer Oboe has to be amazing
amzingly werid
 
3:40 PM
@AnderBiguri What a mix! Hahaha
 
I heard a version of AC/DC's "Thunderstruck" with two cellos. Very funny
 
this band from the Netherlands actually makes metal with an oboe
 
@Adriaan Never heard of that combination! :-D
 
it's the only example I know of that
 
3:44 PM
This one made me laugh too
 
hahahaha yes.
@LuisMendo - I hope it covers some effects.. we will see :)
The two cellos version of thunderstruck was great!
 
When you finish the course let us knwo how it went!
 
Band called Apocalyptica does a lot of metal-cello covers
 
yes that's a great one :D
 
3:51 PM
They overact a little. But it's funny
 
hehehe I know.
yes I'll let you know how it goes :) I intend to advance quickly.
10 week courses are a bit long for me.
 
How does that work? I've never done a course in Coursera. Can you advance at your own pace? Can you skip or go quickly over things you already know or you have less interest in?
 
It totally depends on the course and instructor.
This one in particular decided to release all of the videos in advance.
the quizzes and homework assignments he will be releasing each week when the course starts.
 
In most of them, it goes weekly
 
The Machine Learning course is learn at your own pace. It used to be the previously structure ethat goes weekly.
 
4:02 PM
Ok. So there are official dates. They are "synchronous"
 
not always the course materials, but generally the exercises do
 
The dates depend on the course as well.
 
Yes, indeed
 
The Machine Learning course - those are "recommended" days that you should finish the material by.
but you can go through it at your own pace. I finished the Machine Learning course already and there's a month left. I took it already a few years ago, so this is review.
 
I did some in Udacity that were "on your own pace", but generally in coursera you need to keep up weekly
 
4:03 PM
hello
 
I usually prefer a book: I can go at my own speed. But perhaps it's because I've never actually tried a course like that
 
Hi there
 
Hi @ninja!
 
@LuisMendo - I like the courses better because they tell you what to focus on directly rather than reading a book. It just depends on your learning preference :)
 
@AnderBiguri thanks that course is awesome
 
4:03 PM
I'm gonna try the Neural Networks for Machine Learning course soon. The course has already ended but I'll go at my own pace.
 
@LuisMendo Definetly depends in the instructor. some of the courses have some AMAZING profesors, and those are definitely very nice to do. Also I loved Udacity, because every video was 2 minutes long and had programming exercises embeded into it. I think now you need to pay for them though.
@ninja Which course?
 
intro to programming in matlab in coursera
 
ohhh yeah!
how is it going?
 
Does that course explain the difference between ' and .' ?
 
nice
simple and concise
 
4:07 PM
Im glad its going good ;)
 
@LuisMendo - Probably not :D
 
tsk
:-DD
 
is it worth doing a nano degree course in udacity?
 
@LuisMendo I do see a point of difference...
 
@ninja I dont know. I used Udacity a lot when it was free, and I can say that the courses they put in the beggining were brilliant, way better than Coursera in my opinion
 
4:10 PM
they r expensive
 
but I just got mad at the fact that you need to pay for them, I think it defeats the pourpose
@ninja Indeed. I have 3 completed, and they are very good. But they were free when I did them
 
300$ per month :(
after all in the end it all comes to business ;)
 
I think I just have paid for 1 course (the certificate) of all of them, the one in futurelearn (the UKs alternative to coursera) and it was because it is relevant to my PhD. at it was just 30£
 
@Adriaan :-D
 
I mean, I think is OK if you pay for them, but I was so excited about free online courses that I dont want the non-free ones :P
 
4:15 PM
hmm
 
Right now I'm taking it just for educational benefit. Getting a certificate in no way helps me get further where I am lol
 
wow, lots of activity... catching up
 
@beaker - Hello!
 
4:37 PM
@AnderBiguri New room description: Mandrill or Baboon: Know the Difference
 
YES
room topic changed to MATLAB and Octave: Room to discuss MATLAB and Octave related topics - "Mandrill and Baboon... know the difference" - Ander Biguri [matlab] [octave]
room topic changed to MATLAB and Octave: Room to discuss MATLAB and Octave related topics - "Mandrill or Baboon: Know The Difference" - Ander Biguri [matlab] [octave]
 
Can you add the link in as well?
 
yes i can
room topic changed to MATLAB and Octave: Room to discuss MATLAB and Octave related topics - "Mandrill or Baboon: Know The Difference - differencebetween.com/difference-between-mandrill-and-vs-baboon/…; - Ander Biguri [matlab] [octave]
 
Now we just have to write a Matlab program to tell whether the picture is of a mandrill or a baboon and we'll be on topic ;)
 
:D
It reminds me of a certain xkcd comic
 
4:41 PM
yep ;)
 
@rayryeng have u wrked on Nstool
 
@ninja - No.
 
we should have shortcuts for xkcd comics... they get used constantly
 
hell yes
something like /1245 or something... and it'll regex and insert the URL of the image we want.
 
neural net in general?
 
4:43 PM
hmmm... I'm going to try something with the title...
 
please go for it!
 
room topic changed to MATLAB and Octave: Room to discuss MATLAB and Octave related topics - "Mandrill or Baboon: Know The Difference" - Ander Biguri [matlab] [octave]
 
That's it.
 
shoot, that didn't work :(
shows up wrong on the right :(
room topic changed to MATLAB and Octave: Room to discuss MATLAB and Octave related topics - "Mandrill or Baboon: Know The Difference differencebetween.com/difference-between-mandrill-and-vs-baboon/…; - Ander Biguri [matlab] [octave]
 
awww.
that's ok
@ninja - I've dealt with some neural nets, but not enough to say I'm an expert.
 
4:47 PM
general for u means expert for me so dont wrry ;)
 
ok
 
@rayryeng @beaker brilliant!
 
:D
 
a lot have answered but still i wud like to know ur suggestions
 
Everything there is what I would have suggested. I have nothing further to add.
 
4:55 PM
ok
 
It could be that your training set is bad... nothing you can do about it if it's bad.
Andrew Ng also said something very true... for machine learning... it unfortunately isn't who creates the best model - it's who has the best data.
if you have very good data, the model that is created can generalize very naturally.
 
i am using the CMU mobo's dataset
it mus be good
 
Well if that's the case, then it could be the features you choose.
I don't know what you're using NN for so I can't really comment.
 
the app chooses it
ok
 
@ray btw, any news from swag?
 
5:01 PM
Nothing yet
they said they would contact us soon... expected shipping time is 6-8 weeks lol
that's IF you're in North America.
 
lol
I am (kind of ) not there
 
hahaha :)
In the past, Google Maps had an easter egg where if you typed in any location in North America and wanted to go somewhere in the UK... like London for example..
if by car, it would advise you to drive to the most eastern part of the continent, then ask you to get out of your car and swim across the ocean
 
yeah haha I know that
haha
that was brilliant
 
I thought so too :D lol
I actually followed the trail.. see where it went.
 
From spain it woudl alctually make you go to Finisterra
 
5:03 PM
once you land, it asks you to drive again and take the roads to London.
what? LOL
 
(where the world was believed to finish in medieval ages)
 
hahahaha
THE WORLD IS FLAT
 
@AnderBiguri by whom? ;)
 
haha well, by the real God allmigty, on that time :P
Friendly reminder that this exists: theflatearthsociety.org/cms
 
I'm sure the Australian aborigines of the time thought the world ended in an entirely different place. ;)
 
5:06 PM
haha of course. But that was what it was beleived by "mainstream" europeans
 
you gotta be kidding me
Flat Earth Society? lol
In a similar token to MATLAB, there should be a MATLAB for loop society
 
@rayryeng srry ......we have construct a feature vector and then give it to the app
 
Basque people (north spain, where I am from) used to go to fish whales to Terranova in the medieval ages. They knew about the place, but being just a small kingdom without much power, nobody did actually realised
 
@ninja - Yes that's what I thought.
 
same with vikings I believe
 
5:07 PM
You could be selecting bad features.
What exactly is the data? Are they images?
 
yup
that ques
remeber
 
@rayryeng yeah, flat earth society....
 
what are you using for features?
are you just using image pixel intensities?
@AnderBiguri - oh :D
 
@ninja The feature you chose is what will make a difference in clasification.
 
Correct.
For very simple images, using the entire image as a feature vector can work.
That's what was done with Yann LeCun when working on digit recognition.
If the content is very complex, then using image intensities themselves will give you problems. You need to choose features that are robust.
 
5:12 PM
its a binary image in the foreground and black in the background
 
what does one of these images look like?
 
that clustering k means image that i showed u
wait
i will show u
there are 300 like these in a dataset
or 400
the originla image doesn't contains the circles ...this one is th output of k means ...bt u wil get an idea abt the original image
 
so what do you want to do with neural networks on this image?
 
ultimate aim
is gait recofgnition
recognition
in a time series data
 
are you submitting the ENTIRE image into the neural network?
what is the input vector?
 
5:26 PM
can i let u know tomorrow ?
this Mat lab app part was done by my team member who unfortunately is not replying so i will let u knw the details tomoorow
 
sure.
I'll be around.
I'll know more about Neural Networks soon :) Going to take that ML course on NN at coursera.
 
university of toronto
??
 
yup.
I wanted to take it while it was in session and get a certificate, but had no time.
I have the time now, so it'll be interesting.
 
but its not open
 
No, but you can view the archive.
 
5:31 PM
yes
 
I'm enrolled, but the course isn't in session... so I'm going to go through the course.
 
coursera has this problem of not adding it in ur dashbaord
if it is not open
unlike udacity
or edx
 
You don't look at it on your dashboard.
You go to Archived.
it should be there once you add it.... I'm in there already
 
lol
i have been doing so many things wrong
 
no, you just have to know where to look :)
When the course is over, it should be in Archived.
it's only visible in your Dashboard if it's in session
I've also added in Natural Language Processing from Columbia... always wanted to study it, but never had time
 
5:35 PM
AI is a vast field
 
it certainly is.
 
computer vision,robotics ,NLP,blah , blah...................
 
Sometimes I regret going into image processing... should have gone into machine learning
 
its all statistics
and nothing else
 
"and nothing else" haha, it sounds so easy when you say it like that
you are totally rigth, but those statistics can get very, very , very difficult
Check the Probabilistic Graphical Models, for example
 
5:39 PM
I tried getting into the course, then gave up because it requires a lot of background reading I didn't have time for.
 
that's why they(scientists ) open a new branch of study when things go out of control or are very difficult ..so they can be studied properly in isolation ...which in this case is ML
 
It's not just statistics per se.
There is a lot of numerical methods and linear algebra there too
The SMO method for training SVMs is all linear algebra.
linear algebra and optimization.
Statistics is the core of it because you need to make informed and intelligent decisions based on your data... most certainly.
but the core of getting the right parameters is all parameter optimization.
 
the basics will always be these three:Mean,Median and Mode... LOL!
 
Neural Networks were specifically designed to minimize a cost function between the inputs and outputs.
Forward and Backpropagation were created to calculate the gradients to minimize the cost function more easily.
Fwd and Backprop is an intelligent way of computing Stochastic Gradient Descent.
 
Yeah, there are some decent maths in the background
 
5:41 PM
so it's not all just statistics. I have to disagree there... though the models created do require knowledge in that.
Recommender Systems is also a numerical methods problem. You are trying to determine the right feature vectors of each person based on what they have rated and other people who have rated similar movies/tv shows to you.
You are jointly trying to estimate the features represented by the movies/tv shows and the users in the database.
 
have u seen deepdream ?
 
Yeah. I've also seen the IPython Notebook. Pretty cool.
 
i was watching fear and loathing in las vegas (1998) ...cudnt really understand the concept behind neural nets in deep dream code
looks wonderful but also weird that something like this cud also be thought of... lol
 
@AnderBiguri - The Voronoi question is basically KNN.
But in this case, K=1. I've marked it as a duplicate to the KNN post I wrote last year.
 
Yeah.
I mean he has poitns and wants the nearest neigbour
 
5:54 PM
Nice spot on the technique though :) that's essentially what you do.
yup.
 
yes xD. I just didnt bother finding the duplicate
 
ah I had it ready lol.
If I know something I wrote that's similar, I'll just search for it on my profile page.
 
hmmm... KNN seems a bit of an overkill :)
pdist would be simpler, wouldn't it?
 
yes :) They just have to remove the sorting at the end though.
the first half using bsxfun is definitely faster than pdist I think.
I haven't timed them to be sure.
 
hmm
 
6:02 PM
that'll be something to test for later.
 
no, pdist isn't what i was thinking of
there's a distance function between an array and a point
 
is there?
Let me know because I'd love to know lol.
I don't remember there ever being one, which is why I used bsxfun.
 
yeah i am not sure if there is
I believe I have found that irritating very often
 
6:24 PM
I was thinking of pdist2, but actually I think distance is more what the OP needs as it computes arc distance
pdist2 requires the statistics toolbox; distance requires the mapping toolbox
Here's pdist2:
>> X = randn(5, 2)
X =

  -0.445371   1.263800
   0.157897   0.356512
  -0.629083   0.498121
   0.923647   0.085657
   0.819592   0.617949

>> Y = randn(1, 2)
Y =

   0.56751   2.13226

>> pdist2(X, Y)
ans =

   1.3342
   1.8224
   2.0254
   2.0774
   1.5351
 
pdist2 should work. Do you want me to reopen the question so you can answer it? Probably better than using KNN.
 
@ray you have some experience in mex, rigth?
 
but knnsearch also requires the stats toolbox... and I wouldn't be surprised if it uses pdist2 :D
Yeah I do. What's up?
 
Just curious
 
actually, I think distance would be better, but I haven't installed the mapping toolbox yet
but in this case all they want is the min distance, right?
the one centroid that matches their input point
 
6:33 PM
every time I compile with the vervose option (-v) the message "pathofthefile\nameoffile.exp not found". Everything works fine , just curios why/what this message is
 
7:01 PM
sorry just getting frustrated with Python at the moment.
I've made my code so that it's a module that you can install into your Python environment... but every time I build the package, then try and import the package, the package is empty
there's nothing in it... even though I can clearly see the necessary files being added to the package.
 
What a bad module, an empty one! At least it doesnt have any errors.... :P
Good luck with that!
 
lol
I've googled and StackOverflowed to no avail.
 
 
2 hours later…
8:41 PM
2
Q: Sparse matrix in matlab: set unrecorded elements to -1 instead of 0

Matt TI want to create a sparse matrix consisting mainly of -1, but also includes some 0 and 1. This is part of a larger project, so it is important that I do not switch -1 with 0. As default, sparse(A) in Matlab keeps track of only non-zero elements. Is there a way to keep track of only non-(minus ...

does anyone have an idea whether it's possible to override sparse defaults?
 
I don't think it is, but I thought your solution was a good one
 
none that I know of. Your solution is good.
 
catching up on developments
 
mathworks.com/help/pdf_doc/otherdocs/simax.pdf there's actually a good article on it :p
 
well, i thought the "add 1 and use sparse" was good
 
8:46 PM
@beaker yea, definitely the best, providing his matrix is indeed sparse enough
 

« first day (69 days earlier)      last day (3154 days later) »