« first day (519 days earlier)      last day (2716 days later) » 

9:04 AM
;)
 
9:17 AM
@rayryeng nice!
what have you teached the NN
 
@rayryeng "supposed to have" is bullshit, there's a huuuuge time range where kids start to talk, never worry about it:) (If she doesn't have any problems hearing, that is, but I assume she doesn't)
 
the NN knows all :D
@rayryeng mb she is speaking an ancient language of which we do not understand, never underestimate children, they can be quite incredible :D
 
Just remembered Dr.Who
 
9:37 AM
:D
how's research going @AnderBiguri
 
Hopefully good :P
I have a paper finished that my supervisors are checking
and my coworker has another one on the go that I will be a coauthor of
hopefully that gives me enough for a PhD already, so the rest of the 10 months that I have I can be without stress
Hows your stuff going?
 
so much innuendo
 
so much innuendo?
 
not anymore:D
 
ohhhh
I did not get that when I was editing
 
9:45 AM
Been working like crazy here
company making good money tho, so hopefully I can get a bonus for Christmas
but yeah, I really miss research
this is about the time of year where (if I were still in Uni) I would laugh at students who are about to do their exams, and enjoy myself doing nothing
 
9:59 AM
@AndrasDeak I agree. The doctor made it sound like it was alarming, but I realise that every child is different... I shouldn't let it bother me, but it does.
 
@GameOfThrows ahhh I TA in computer science and I can see them freak out
 
@AnderBiguri I've trained it for performing image classification and object detection.
 
Noice
what classification? a lot of labels?
 
yup... over 1000 labels.
the NN I trained... took almost a week to finish.
on this stupid work laptop of mine lol.
 
@rayryeng try not to let you:) Some kids start talking at 1.5 years, others near 3. I think I was 2.75 years old when I started to talk, and I'm more than apt at expressing myself, thank you very much
 
10:01 AM
@AndrasDeak that makes me feel better... not the fact that it took you longer to speak, but the fact that it is common.
 
it definitely is
 
Caffe is a well-built library. I would have never thought it was easy to build such deep networks quickly... but training is the more difficult part.
@GameOfThrows even though she doesn't speak, she is well ahead for her age.
at 18 months, she already knows how to access YouTube on my phone and choose a video to play
 
well, babby born with a USB(-c) on her butt, no wonder
 
lmao
that is awesome.
 
posted on monday:D
 
10:06 AM
that looks recent. I don't recognize that XKCD entry
 
dude...:P
 
yes I see.
I have a mediocre preventative measure. I have an app that locks the screen so she doesn't do anything unwarranted
so as soon as a video goes on, I turn on the app
so that way the screen is always on, but no button mashing or swipe will do anything
it deactivates with a special tap sequence... but she's starting to learn what that is
 
haha:D
my impression from my young nephews is that tablets do wonders for the eye-hand coordination, but are disastrous for attention span
 
I agree.
she has a very short attention span, but that's expected.
 
10:14 AM
VTC - Super User Question
0
Q: Installation error for OCTAVE 4.2.0 version

vishwanth hiremathenter image description here Hello everyone. I am getting an error while installing Octave 4.2.0 version. I have also attached image for that. Please help me out. Thanks in advance.enter image description here

 
@rayryeng I used Caffe for some NLP, to classify people's search queries, but the performance was not exactly excellent
 
have you tried to use word embeddings?
It all depends on the model
also, I wouldn't use Caffe for that though... text classification is more suited for RNN or LSTM
which Caffe sucks at doing.
 
I did a word2vec on tri-gram and passed it to Caffe
 
ah :)
 
yeah, I've tried RNN as well
 
10:19 AM
I would try Torch or Theano for RNN or LSTM
 
It's just not consistent enough I guess, text can be difficult, especially text in news changes all the time - where a week ago, brazil plane is a travel search, this week is all about the plane crash
 
they're more well suited... but Torch requires that you learn Lua.
but Lua is very similar to Python numpy
yeah I understand.
 
I am using skflow which I think also has RNN
it's on python
 
oh that's a good one too
if you know Java, I would recommend deeplearning4j.
it's amazing at RNN or LSTM
it has a dedicated module for word embeddings and text classification and all that
 
yup, I looked at that a year ago I think :) have not touched it since
 
I do a lot of Apache Spark, so having something that runs on JVM is really nice
btw, are you using supervised training or non-supervised?
for classifications you need supervised right?
 
yeah it's supervised.
I'm considering using unsupervised as a pre-processing step... to give some hints
we will see though
 
ah, there's an idea, I might try that as well :D
 
look up Autoencoders :)
they're neural networks focused for unsupervised learning
 
I'm a little weary about my RNN set up, I only have 3 layers - after the word2vec input, but I don't recon I need more layers
 
10:27 AM
they usually don't
 
@rayryeng so that your daughter can learn without supervision?
 
usually the input, hidden and output layers are enough
@AndrasDeak that would be ideal
@GameOfThrows remember that RNNs unwrapped are basically hidden layers that are duplicated over each time step
the more time steps you want to remember in a RNN, the more hidden layers you effectively have
 
yup, you convinced me :D Yeah, I know Autoencoders and RBMs - I'm gonna have a poke around at unsupervised training to give it some hints
 
so effectively, the number of time steps control the number of effective hidden layers you have
 
ah, so does more hidden layers mean it will have better long term memory?
 
10:49 AM
Ok, im a bit sleepy so here it goes an easy MATLAB question that I shoudl be able to answer myself
If I have a matrix A=rand(100,100,50)
whatss an easy way of making it A(100,100,100) bu repeating slices
I coudl do interp by creating a meshgrid but it feels overdoing teh thing
 
?
what do you mean "bu repeating slices"?
 
sorry
by repeating slices
 
so what do you mean by that?:P
 
A(100,100,1)==A(100,100,2)
 
ah
repelem maybe?
or repmat
 
10:53 AM
but repmat would make a copy of the image from 51:100, rigth?
 
ah, yes, so probably repelem
 
yes, it looks like it
I never heard of that function, weird
 
it's fairly new:)
I've never used it
> B = repelem(A,r1,...,rN) returns an array with each element of A repeated according to r1,...,rN. Each r1,...,rN must either be a scalar or a vector with the same length as A in the corresponding dimension. For example, if A is a matrix, repelem(A,2,3) returns a matrix containing a 2-by-3 block of each element of A.
> Introduced in R2015a
you need something like repelem(A,1,1,2)
 
so new that I dont have it
 
10:55 AM
I shoud isntall 2016b
at some point
 
OK
permute(reshape(repmat(A(:),[1,2]).',[2*size(A,3), size(A,1), size(A,2)]),[2,3,1]) %?
 
6
Q: Element-wise Matrix Replication in MATLAB

Santhan SalaiI have a 3 dimensional matrix. I want to replicate the matrix of size 8x2x9 to a specified number of times in the third dimension given by a vector say [3, 2, 1, 1, 5, 4, 2, 2, 1] so that the resultant matrix is of size 8x2x21. Is there any built-in MATLAB function (I'm running version 2014a) to ...

 
no, not exactly, hold on a sec
edited:D
or something like that:P
I don't have matlab open to test
might as well just use gnovice's working one
 
yeah I think Ill do that
 
11:42 AM
@rayryeng Any suggestions on the learning rate for a RNN for text classification?
 
My experience with any minimization problem: it depedns in the problem
sometimes teh data can be very very easily separated, sometimes its harder
there is no "maths" way of saying it beforehand
the best way of doing it is checking the convergence rate
 
12:18 PM
@AndrasDeak I modflagged Brian with his editing spree, mod's reaction was to mark the flag helpful with the message "helpful - We do like people to do more work, but a little cleanup is never not enough: meta.stackexchange.com/questions/198024/…; so they're linking to that exact meta, instead of to the more recent one on meta.SO
 
I'm not sure what that means, but anyway you've done what you could
Brian's been doing that for a long while, and he probably will
 
yup.
I didn't get it either. The mod said my flag was helpful, and merely repeated what I said in the flag...
How's life in Budapest in the mean time? Still down with your eternal cold?
 
they might or might not talk to Brian about their behaviour, but anyway your flag was helpful
what's the problem?
@Adriaan no, I came back from the dead after 2-3 weeks:P
snow and rain expected for a few days
otherwise all's well, next week is the last one of the semester (phew)
 
@AndrasDeak that's some time to leave your poor freshmen. Did they slaughter themselves due to lack of your supervision? (Reference South Park)
 
@Adriaan oh they were supervised, by yours truly, I just wasn't very happy about it:D
there was only the first week where I was pretty bad, with a bit of a fever
the rest was mostly sniffles
 
12:29 PM
ah. good to hear.
 
and a general weariness
 
I won't be pestering you this year, so you can stop pretending to be ill now ;)
 
aww shucks:P
 
Anne says you're more than welcome to have a coffee in Helsinki next semester ;)
 
haha, give her my thanks:)
I'll let you know if I'm in the area
 
12:37 PM
She's learning Finnish now, and to keep track of vocabulary she's singing Finnish children's songs all day
 
my favourite non-childen's-songs: 1 2
 
12:54 PM
@Adriaan (in Finnish) ^
 
1:09 PM
@AndrasDeak eek, Nightwish
 
Anne know's Girl with the Leek already apparently, in Dutch, that is
 
Girl with the leek:D Does she mean this? That only contains the gibberish part.
the rest of the song (Ievan polka) is in Finnish
 
@AndrasDeak yes
 
1:16 PM
anyhow, I've got to do a bit of things outdoors. See you in a bit
 
see ya
 
1:45 PM
What do you think should the colorbar be representing? — Sardar_Usama 28 mins ago
It should represent the colors that are used in 'dat'. As would notmally happen with scatterm. I have updated my question to make this clear — Emma Tebbs 26 mins ago
@EmmaTebbs So in this case, do you want RGB values for colorbar? — Sardar_Usama 21 mins ago
I'm not sure what you mean. The values in the colorbar should come from whatever colormap but represent the values specified in scatterm not in the topography map. — Emma Tebbs 17 mins ago
You wrote," It should represent the colors that are used in 'dat'". Here 'dat' contains RGB values, so what exactly are you asking? — Sardar_Usama 16 mins ago
Then yes. I don't think my question can be any clearer than in the OP — Emma Tebbs 15 mins ago
I am a bit lost here what I am supposed to do
 
@Sardar_Usama You're supposed to add a colour bar I guess
and not the topographic heights one, but the one of the dots
 
I dont understand what it should look like
 
a regular colorbar, but instead of with the topographic colours, it should be with the colours of the dots
exactly as she explains in her question
 
2:09 PM
@GameOfThrows the trick is to never dealing with how to set the learning rate. Always deal with adaptive methods.
Those deal with setting a default learning rate that's good for a lot of problems, then letting the gradient for each weight update itself dynamically for each weight rather than doing it statically over all weights.
Take a look at Nesterov Accelerated Gradient, Adaptive Gradient, RMSProp and Adam specifically. They're basic tricks to get gradient descent to converge faster... they are different ways in computing the update.
This link by Sebastian Ruder is a great resource: sebastianruder.com/optimizing-gradient-descent/index.html
 
Still, most adaptative algorithms are based on heuristic, aren't they?
 
2:38 PM
Do you want to hide x=x^2 and still want x=x^2 to execute? I hope that's not what you're asking! :D but if you still want that, you can make a function and call that instead of x=x^2. Other than that, you need two equals to signs in if . i.e if a==bSardar_Usama 6 mins ago
Yes, ofc if a==b (that was a mistake and an example). I want to make exactly that, but I mean not to be seen. I want to make a joke to a friend of mine, but he could spot the difference because he knows how to code. The function would be visible, so that won't work. Thanks again! — Dimitris Boukosis 49 secs ago
 
2:50 PM
@AnderBiguri yes, but they're well founded. The essence is that for each parameter, you update the gradient depending on how far it is from the optimum.
Also remember that the batch size also factors into convergence.
 
1
A: Hide lines of code in MATLAB

Adriaanif a==b x = y+1; for ind = 1 x = x^2; end end Bit of a wacky way, but you can collapse loop/end blocks like for and while loops. Simply click the - sign in the editor:

free hand circles!
 
way of thinking outside the box lol
 
I actually use those collapses quite often, especially for large comment blocks (the %{ .. }% ones), but also for exactly this purpose
 
This practical joke will not work for anyone who has some knowledge in MATLAB.
The guy wants to hide code so that it won't run at first but won't be able to figure out why it isn't running
also the error will make it obvious.
IIRC, the code block unrolls when you decide to see where the error is.
 
of course it does
the other option is to stuff in a hundred spaces :P
 
2:58 PM
:D
 
oh, I think the spaces one is the best option, as loading a .m file results in all blocks expanded by default. The spaces is a bit more obfuscated, but still easily recognised by the huge-ass scroll bar on the bottom
 
hahahaha
 
I like this solution :D
 
one could of course deliver a precompiled C++ or so program, eval the systemcall to execute that, and do your magic inside the C++ program, but that's too much work for me
 
3:35 PM
Thanks @rayryeng will take a look
 
4:12 PM
Gotta love when your delimiter is also used as a replacement for the decimal point. Makes parsing so easy and robust.
0
Q: Parsing a numerical string into a numerical vector with regex

user2476373I have a set of numerical strings (used in filenames) which I would like to parse into a vectors Here is an example -0_01_-1_0_23_0_52_-0_25 Which should be parse into -0.01 -1 0.23 0.52 -0.25 The rules are: There are 5 numbers between [-1, 1] Numbers are separated by '_' Decimal point i...

 
Yea I'm pretty sure any solution is going to be ambiguous
 
66,667
questions tagged
damn, I missed 66,666
 
@GameOfThrows @Suever answered that, as usual :P
 
4:28 PM
:D he answered the devil's call
 
@Adriaan Which one did I answer?
 
@Suever the 66,666th question
 
Question 66,666
the next 6 would not be for ages
I doubt matlab will survive to the 666,666th tagged question
 
Ohhh haha.
My tagged number is different because I watch octave + matlab
 
that hide-code question should've been the 66,666th, so evil and ridiculous that it is
 
4:36 PM
Yea who the heck wants to hide executable code?
 
@Suever apparently an "industrial engineer"
 
Maybe they are planning ahead for April Fools
More like Industrial "engineer"
 
oh great, I spilled tomato sauce on my white shirt I just ironed
 
My dupehammer is getting faster
3
 
@Suever my brother elephant :(
 
4:45 PM
Except he's inferior due to the lack of pink
 
hmm, my shirt is now only vaguely orange on the breast pocket. That'll have to do I guess
 
5:43 PM
@Adriaan eval(cast((sscanf('240,122,240,188,100,118', '%d,')./2)', 'like', ''))
:)
 
@excaza that's very obfuscated as well :P
 
@excaza What in the name of the Gods is that?
Actually, no. Just no.
 
x=x^2;
I figured eval(char([120 61 120 94 50 59])) was too obvious
 
Indeed.
Just looks terrible.
 
6:00 PM
4
A: Hide lines of code in MATLAB

Adriaanif a==b x = y+1; for ind = 1 x = x^2; end end Bit of a wacky way, but you can collapse loop/end blocks like for and while loops. Simply click the - sign in the editor: So for two or less lines this doesn't help you, but if you want to hide e.g. 40 lines, it shortens it ap...

updated the answer
 
6:38 PM
hahaha
 
6:53 PM
@excaza how would you feel about us deleting this crap?:D
you'd lose the rep:/
 
lol I'll survive
there will always be the memories
 
You sure? There's enough crap elsewhere too, it wouldn't be the first left around:)
 
yeah
I'm not immune to decrapifying :)
For posterity :)
 
But it's such a heart-warming answer:) With a hilariously witty comment.
let me delvote and look at some other answers of yours
 
:|
Don't delete all of my hilariously witty answers
 
6:59 PM
lol, I meant to upvote them:D
I rarely look at matlab posts nowadays
and I meant my own hilariously witty comment, thank you very much
 
I think everyone's comments were on point with that one
I want to print it and hang it above my bed :)
 
Don't worry, I'll be asking more python questions soon enough
I have more Python questions than MATLAB ones anyway
 
let me know when you do:P
I need that tag score:D
 
@excaza good thing I only have one of those
Well, for instance to print it and hang it above my bed. — Adriaan Dec 16 '15 at 16:36
already forgot about that
 
7:04 PM
@excaza Plus, the "answer" they provided is suspect.
 
I'm almost positive I tested it before answering
 
7:18 PM
@excaza Suspect because I don't get the error as stated.
 
I need coffee, how do I get some? — Adriaan 8 mins ago
I love it when unrelated, snarky comments of mine get upvotes :P
CV the question please btb
 
heyyy @excaza you didn't lose rep:) Turns out +3 for the question is not needed; +3 for the answer is needed
 
@AndrasDeak what you going on about?
 
huzzah
 
the above screenshot post
 
7:31 PM
did he loose 7 points on the MATLAB-tag badge?
 
-4 Q, +7 A, no rep loss on deletion for excaza
 
 
2 hours later…
9:31 PM
Hello everyone
I have a piece of code which generates an error for a very strange reason.
This code should generate a 16x16 matrix. Afterwards I divide this matrix in 4x4 matrices. But dividing a 16x16 matrix in 4x4 matrices is possible i.e. it would result in 16 matrices (256/16 = 16)
       N = 4

      x = reshape(1:256,16,16);
      c=mat2cell(x, [N, N], [N, N]);
the error:"Input arguments, D1 through D2, must sum to each dimension of the input matrix size, [16 16].'
"
 
@trilolil Because 4 x 2 = 8 not 16
c = mat2cell(x, [4 4 4 4], [4 4 4 4])
 
@Suever hmm from where did you get 4x2 ?
 
[N N]
 
did I misinterprete the function parameters?
 
You have 2 4's
The second input is the size of each resulting block along the row direction
The third input is the size of each resulting block across the columns
As it says, the sum of the second and third inputs should be equal to your total number of rows and columns in the original data
So in your original D1 = [N N]
sum(D1) = 8
which isn't 16
Because you've only accounted for the first 8 rows of your data
 
9:39 PM
@Suever ow I see. Issue is that this was just to test some code... I am planning to do this on a 256x256 image...
 
So you need D1 = [N N N N] and D2 = [N N N N]
Well what is your actual goal with this?
Are you trying to perform some operation for each 4 x 4 block?
 
@Suever yes first divide the matrix in 4x4 blocks and afterwards do something on each block individually.
Because this:
 x = reshape(1:256,16,16)
c=mat2cell(x, [N N N N], [N N N N]);
doesn't seem to work...
 
If you have the image processing toolbox, just use im2col to avoidi cell arrays
im2col(data, [4 4], 'distinct')
puts each "block": as a column in theresulting matrix
It does work. What value did you use for N?
 
N = 4;
as I need 4x4 blocks
 
I'm going to guess that you didn't
 
9:42 PM
Sorry
typo
 
because the code you pasted works if it was 4
 
This is the actual code:
 x = reshape(1:65536, 256, 256);
c=mat2cell(x, [N N N N], [N N N N]);
 
Ok yea that's not going to work
you have to increase the length of the last two inputs so the sum is equal to the number of rows and columns respectively
but please use im2col if you can
it's a much faster and better approach
 
@Suever experimenting with it right now.
 
c = mat2cell(x, repmat(N, [1, size(x, 1) / N]), repmat(N, [1 size(x, 2) / N]))
 
9:55 PM
@Suever thanks I think it works so far :)
BTW how do you manage to know which function to use?
I mean I am into C programming which means I always have this habit of coding everything myself.
While there probably already is some function out there that does exactly what I need.
just google whatever you need?
 
Yeah, just google it... the MathWorks documentation is quite good. And they have similar functions collected into topics like this: mathworks.com/help/matlab/matrices-and-arrays.html
Another way to get your matrix is just use reshape
b = reshape(reshape(x, [], size(x, 2)/2, 2), size(x, 1)/2, [], 4)
@trilolil ^
 
10:31 PM
Guess who wrote a matl answer=)
:D
(and a relatively short Octave answer if we're already here=)
 
10:46 PM
1
A: Hide lines of code in MATLAB

gnovice(wringing hands with evil grin on face) If you really want to mess with people like this, you're going to want to go down the operator overloading route. Come with me on a journey where you will almost certainly shoot yourself in the foot while trying to play a joke on someone else! (lightning ...

Gnovice is back!
and it's great :p
 
11:02 PM
Hello
short question I've had this already happen multiple times so far...
I have the following operation:
x = 160-170
 
it's -10
3
you're welcome
 
this results in x being equal to zero instead of -10
 
You're so smart!
 
@AndrasDeak genius here people! standing ovation!
 
@trilolil I'm closing that question as not reproducible
or No MCVE, whichever suits you best
 
11:04 PM
e_n(i)=abs(inputImage(i)-f_n(i-1));

Where inputImage(i) is 156 and f_n is 160
if I want you to be able to reproduce the error I need to send you images and so forth
@Adriaan
 
unsigned integers
 
@AndrasDeak hmmm... Could you elaborate?
 
your array is not double, it's uint8 most likely
uint8(160)-170?
or two uint8's
if your numbers don't obey floating point arithmetic, they're not floating point
 
blegh.
the wanker
 
@Adriaan why haven't I heard of inputname() before?
it's very horrible yet good to know about
for all your evaling needs
evalin('caller',[inputname(1) '=' inputname(1) '*3;']);
 
11:07 PM
You already asked this today, or a classmate did it. At least pretend to do some effort instead of brainlessly posting it again without any research. — Adriaan 2 mins ago
 
with that, it's time for bed
I'll see the hate-comments tomorrow
 
good night
 

« first day (519 days earlier)      last day (2716 days later) »