« first day (41 days earlier)      last day (3185 days later) » 

12:11 AM
de2bi does seem backwards. the only advantage i can see is that when you're converting from decimal, each new bit goes into (end+1)
it makes everything else awkward
 
 
11 hours later…
11:04 AM
posted on August 11, 2015 by Steve Eddins

The set of colors that can be represented using a particular color space is called the gamut. Some L*a*b* color values may be out of gamut when converted to RGB. You know that a converted RGB color is out of gamut when any of its component values is less than... read more >>

 
 
2 hours later…
1:32 PM
following with the topic of: Matlab tag doesn't give upvotes: How unsung are you?
Answers with 0 votes but accepted query: user:me is:a isaccepted:1 score:0 created:..10d
I got 35 :P
 
84
 
Wow! those are some lot of unsung answers!
 
2:10 PM
How much is your ratio unsung/accepted?
user:me is:a isaccepted:1 score:0  created:..10d/ user:me is:a isaccepted:1  created:..10d
(not real equation)
I get 0.255~
 
Let me see....
 
0.206
 
Hum, that means that I choose the wrong questions to answer!
hehe
 
Not really a lot
Maybe, but sometimes it is totally random which answers are upvoted.
 
2:25 PM
There is a query on Data SE
that shows you how "unsung" you are.
 
I guess it depends a lot. Some of the answer I give is: use thismatlabfunction wich makes sense not to get upvoted
 
yeah. That gives me 26%
 
I'm checking now.
A bit slow for me.
 
I guess It rounds
 
2:28 PM
I'm at 0.206
oops sorry nonsense lol
903 answered, 157 unscored.
I have a 17.4% unsung rate.
 
The last number should be perfentage
oh! I definetly chose the wrong questions (or.... I suck at aswering)
 
lol.
well my percentage was much higher... that's how I got the Unsung Hero badge
I guess people started voting for my non-voted posts over time and it brought it down
when I began, I would tend to answer questions from new users who would accept, but couldn't upvote my posts.
I also found a query that checks to see what people have favourited a certain post. I should really learn how to navigate that thing lol.
no you don't suck at answering. You just choose to answer certain questions :)
For me I am a sucker and can spend up to an hour writing up a post. The longest one I wrote recently was the one that talks about PCA.
 
Yeah. That was amazing
I insist with the book
 
oh thank you :D. I'm surprised people read through the entire thing.
But I did like adding in the image example at the end.
the book? lol. that may be a good idea... a collection of SO answers... not just from me, but from many other people.
 
It was very nice. I recently wrote a PCA answer also and I was very proud of it XD Your beats me by x10
Yeah! "SO [Matlab]: Why not to use i as index and other answers to interesting questions"
 
2:36 PM
lol nah I was just lucky.
hahah that's a good book!
 
@rayryeng haha beats me x10 in quality, not votes ;)
 
"SO [MATLAB]: User's guide to avoiding i and eval"
 
Haha that one is nice!
 
This one is a strange question...
-3
Q: Using uint8 and strcat functions?

haith86I would like to know how I can convert uint8 to binary in matlab, in addition how can i inverse strcat function? AA = strcat (A , B); how i can separate the values of A and B after performing strcat function. thanks all

@AnderBiguri :D well to be fair, I only revamped my knowledge about PCA recently... that's how I was able to write up about it. If it weren't for that, I wouldn't have been able to answer the question.
All the machine learning stuff I'm reviewing.
 
How to uncat a string?
that is.... weird and underdetermined
 
2:44 PM
yeah lol
You can't do that unless you knew how they were concatenated before hand
and if you knew, then it's just a matter of simple indexing.
 
3:38 PM
Hi @beaker ! How is your unsung rate? (oh, I shoudl just make a query of top SO answerers! This data seems nice to know)
 
i don't have nearly as many answers as you guys :)
 
I actually may try... Meybe get the top 5% and get theis unsung rate... Not sure if it would take too long to compute though.
 
mmm...
 
ah, you have just a bit less than me (n_asnwers)
 
~0.212
 
3:41 PM
I really would like to now the average of SO... hum
 
was something like that on the survey?
 
nah. It wasnt even a survey
74
Q: How to see the questions that gave you a Unsung Hero badge?

Washington GuedesI'm just curious: How can I see the questions that gave me that badge?

 
the average unsung?
I would say 0 because the median of reputation for users is 1.
a lot of people don't answer questions so I would expect that it be 0.
 
yeah, but the average of e.g. top 5%?
or the average of the top answerers
 
you want to see how unsung the top 5% are?
 
3:48 PM
yeah
 
it would probably be very low because if they answer a lot of questions, there's high probability that they will get votes lol
 
yeah, that I would like to see
 
Let me see if I can make a data query
I'd essentially combine the unsung query and the top 5% query together
 
0
Q: Average "unsung rate" on Stackoverflow

Ander BiguriAfter checking this question and the comments I checked my own "unsung rate" (~26%). Is it possible to know the average "unsung rate" in StackOverflow? Maybe of the top 5% of the users only (so the big answers are mainly included)? How much is that value? What about unsung rate by tags (top ...

but maybe it justs gets crazy expensive to compute all that in a small query
no idea
 
ahh no you'd be surprised :)
The Data Exchange servers are quite robust.
 
3:54 PM
hello
 
Hi there
 
Hello Mr. Body Parts Segmentation.
Or Ms.
Need to cover myself.
 
That nickname sounds nicer than 3371423 :P
 
lol.
 
just kidding ;)
 
3:55 PM
hey whats an assect ratio of an image?
lol
 
it's the ratio of its width to its height
 
*aspect ratio?
 
yes
 
The aspect ratio of an image describes the proportional relationship between its width and its height :)
 
Have you ever looked at buying a TV? 16:10 sounds familiar?
 
3:56 PM
That alone doesn't really tell you anything. You also have to look at the resolution of the image itself, as well as the technology that you're going to display the image with.
 
or 4:3 ! thats the aspect ratio ;)
 
i used the resize funtion to change the resolution from 640x480 to 32x32
and the utput wasnt grt
 
no kidding lol
 
too much loss
 
32x32 is smaller than a desktop icon
 
3:58 PM
That's like taking a picture of a beautiful landscape and squeezing it down to the size of a peanut.
You can't capture everything in such a small viewing window.
 
how to preserve aspect ratio while resizing
?
 
Use the scaling factor when resizing.
for example, you can do out = imresize(im, 0.3);
this scales both the width and the height equally down to 30% of each
 
but in my case that diff
 
yuck... divide by power of 2 :D
 
this way it maintains the aspect ratio of the image... but you scaling it down to such a small image... I'm not sure what purpose that would serve.
 
3:59 PM
If you resize an image with the "correct" aspec ratio to something close to 32x32, the image still will look very bad
 
If you scale it down to such a small image, no matter what you do, it's still going to look like $h!t.
Maybe you should tell us why you want to do this, rather than how you're doing it.
 
can use it on abig image
it will take time
 
Our user images next to our names in the chat have higher resolution
 
what is the purpose of resizing?
 
i wan to use ANN on it
 
4:00 PM
Are you trying to classify images?
reducing image size down to that much would work provided that the scene you're capturing isn't that complex.
 
You may want to do PCA clasifiying, not pixel clasifiying
I am pretty sure @rayryeng can show you what PCA is ;)
 
if you have a lot of detail going on, then resizing an image down to that small of a size would be pretty bad.
hahahah :D
 
check for "eigenfaces" tutorial
 
?
and how can we compress an image using pca
yup was reading abt it whats that by the way
 
10
A: What does selecting the largest eigenvalues and eigenvectors in the covariance matrix mean in data analysis?

rayryengI'm assuming you determined the eigenvectors from the eig function. What I would recommend to you in the future is to use the eigs function. This not only computes the eigenvalues and eigenvectors for you, but it will compute the k largest eigenvalues with their associated eigenvectors for you....

Eigenfaces decomposes a person's image to a weighted sum of basis images.
Much like piecing together a signal as a weighted sum of basis signals, you can do the same thing with faces.
 
4:03 PM
With PCA you decompose the image into its "most important features". Thus sometimes, you just need 50~ features to clasify
 
The basis signals are essentially the Principal Components from PCA
@beaker - lol hi :)
@HamtaroWarrior - Bonjour!
 
@rayryeng hi mates ;)
 
Try decomposing your images into principal components, then feed a subset of the PCs to your ANN for training
That's much better than looking at it in the pixel domain. That's what they used to do in digit recognition with the MNIST database.
 
ok thanks
@rayryeng u wrote that ans!!
it is just huge
 
Yes I did lol.
I wrote it with the assumption that the question poser didn't know what PCA was about.
so I started from the beginning, then worked my way until the end... with a visual example.
If you're not set on ANN, I would suggest looking at Support Vector Machines.
They made neural networks extinct... at least for a little while.
It was only recently that they become popular again due to Google.
 
4:16 PM
actually i was going to do a image compressin using pca but then i cud nt understand it and then i just did the simple resize thing and the body of a human was resized into a monkey kind of a thing lol
 
@Daniel - Guten Tag!
 
so i am again goin to look at pca
 
PCA is basically transforming your data using an orthogonal set of basis vectors.
 
Hi
 
You then decide how many of the basis vectors you want to keep. The more you keep, the more it's going to look like your original data.
A good rule of thumb is to keep those that explain 90% of the energy in the data.
 
4:18 PM
can we measure that after we do some pca on an image? or we just looka t the output?
i am talking abt that 90%
 
yeah, you basically calculate the sum of squares for the singular values.
Assuming you're using SVD for the PCA.... you would do: total = sum(diag(S).^2);
then to figure out how many you want to keep, do toKeep = find(cumsum(diag(S).^2) >= 0.9*total, 1);
toKeep will tell you how many PCs you want to keep.
 
5:11 PM
Part of a code I should review for university: x=2.0.*.01
Not sure what the programmer was thinking...
 
???
Isn't that just 0.02?
 
Lets confuse people XD
 
and what's with the element-wise *? lol
 
Yes
 
3 . in a line to put 0.02
 
5:12 PM
lol
Even x = 2*10^-2 would have been more palatable.
@Daniel - Is this some part of a code review you're performing?
 
Yes, I was asked to take a look at the code because I use Matlab at work.
 
face palm lol
 
the only thing better than magic numbers is multiplying magic numbers
element-wise
 
LOL
 
LOL indeed
 
5:21 PM
that will be the new room credence once the code golf quote expires.
 

« first day (41 days earlier)      last day (3185 days later) »