« first day (2710 days earlier)      last day (521 days later) » 

6:25 AM
@AnderBiguri Sigh. It turns out to be simple math. They needed to compute d/dx f(x), they have a function f(x), it's totally trivial.
Sigh. So the equation is simply d/dx f(x) (substitute x = log(L0)). If f(x) = 1-exp(x), then c is the derivative of 1-exp(x) to x, which is -exp(x). So c(log(Lt))=-exp(log(L0)). — Cris Luengo 1 min ago
 
6:58 AM
@CrisLuengo you made the mistake of engaging still
 
 
3 hours later…
10:24 AM
well, at leat they got help
 
 
3 hours later…
1:09 PM
@LuisMendo just don't bother attempting to learn Swiss German. Every single village has its own dialect. And they'll mainly be speaking about cheese anyway :P
 
1:50 PM
I'm having a hard time figuring out something for the ticklabels in matplotlib, for which an MCVE is difficult for me to think of as well. The situation is as follows: I have a 2D matrix of data, depth vs time. I can plot that easily and use ax.xaxis.set_major_formatter(mdates.DateFormatter('%y-%m-%d')) to generate a properly formatted date axis
However, since i have 8 subplots, I'd like to have a tick on each day, but the label only on the first and the last. Now, ax.get_xticks() and ax.get_xticklabels() give me the locations and labels, respectively. Both are lists.
If I do nothing else, finish my script and then call labels[1].set_text('') only the text on the 2nd label in the list is removed. However, if I try to do that in the code itself, all labels are removed
ax.xaxis.set_major_formatter(mdates.DateFormatter('%y-%m-%d'))
locs = ax.get_xticks()
labels = ax.get_xticklabels()
for label_idx in range(1, len(labels)-1):
    labels[label_idx].set_text('')
ax.set_xticks(locs)
ax.set_xticklabels(labels)
so that removes all my labels, whereas commenting the for and two set_ calls renders all labels.
Exchanging the entire for loop for labels[1].set_text('') also removes all labels, rather than only the second
Ah, I've got an MCVE:
import matplotlib.pyplot as plt
import numpy as np

fig, ax = plt.subplots(1, 1)
ax.plot(np.arange(10))

locs = ax.get_xticks()
labels = ax.get_xticklabels()
labels[1].set_text('')
ax.set_xticks(locs)
ax.set_xticklabels(labels)
This removes all my labels, rather than just the one I want to remove
 
2:17 PM
Managed to create a question out of it; posted it on SO
Why do people keep wanting all those factorially growing sets as of late?
 
3:05 PM
Thanks @CrisLuengo for hammering that. We should really get a proper duplicate for these questions, as they keep popping up (I see one every odd week). By "proper" I mean one that presents a solution but also mentions the caveat of this only working when trivially small and preferably something about trying to brute-force some optimisation problem
 
3:20 PM
@AnderBiguri @CrisLuengo youtube.com/watch?v=dNP0QysxmhI sounds like something you could possibly use
 
3:46 PM
@Adriaan Yeah, I wanted to close it as dupe of a question I saw two weeks ago, but Google pointed me to a 10-year old one instead. 🤷
 
@Adriaan :-D Standard German (Hochdeutsch) is already enough of a challenge for me
 
3:57 PM
@Adriaan That is pretty cool. I'm not sure I want to learn how to write code for one specific processor (even if it's the one I use at home). I never learned Intel's SIMD instructions either. I'm comfortable writing standards-compliant code, and letting the compiler figure out how to run that using SIMD instructions. :)
 
4:43 PM
@Adriaan powersets, if memory serves
 
@Adriaan thanks!
albeit honestly, I feel like its a bit of an Apple Fanboy problem, rather than a real problem
Macs are shit for scientific computing, just freaking buy a cheaper and better computer with an NVIDIA GPU, and not a potato chip
I see this par to "now I can run monte carlo simulations on my phone!". Well congrats, but also, don't.
 
"Try this one weird trick to unfuck the scipy stack on apple silicon"
(Haven't opened the video yet)
 
Video is basically a short abstract of "We managed to code some of our HPC GPU code to work on some Macs, for when we don't have access to the HPC"
but again, my high end gaming laptop cost like the cheapest mac, and has a GTX1070 GPU, which was quite decent when it came out. The proposal its basically a way to allow you to do the same thing, on a more expensive and worse performing computer.
 
4:58 PM
@AnderBiguri lol
 
The only argument for this work to exist is "But I like my Mac"
 
enough reason for anything
 
cool, but again, so is being able to run Monte Carlo simulations on a phone. You still kinda should not do it
 
Doom on a toaster, now that's more like it
 
That I can get behind of
Doom on EVERYTHING
except Mac, you need a VM or something
 
5:07 PM
@AnderBiguri I can't agree with this. M1 chips, just plain CPU code, is significantly faster for image processing than a comparably-priced Intel chip. Memory access makes so much difference there!
 
The chip maybe, the computer is not, particularly if you are talking about GPUs.... for 1500£ you can have a quite decent laptop with an Nvidia GPU, or just the cheapest macbook. For 600/800£ you can have a CUDA compatible laptop
 
@AnderBiguri No, it's adding a few lines of code to run the regular CPU code on the GPU, instead of having to do all that CUDA crap and pull your hairs out to get a bit of a performance improvement.
 
but in essence you can do that with tons of existing libraries. I still think its OK they do it, but honestly, it would have been much better to just run the code in a different device
 
@AnderBiguri Cheapest MacBook is quite a decent laptop. It is better constructed than most laptops, will last longer, and will do less harm to the environment to boot.
@AnderBiguri Yeah, but then you have to buy a different device, and *shrug* walk around with it.
 
well, yeah, so instead you write a scientific paper to validate your original wrong purchase?
its not a bad work, I am happy that there is improvement in these things honestly, but its quite a niche tool, I think
 
5:13 PM
Sure, and it certainly doesn't merit a scientific paper, there's no science there.
But I'm glad NVIDIA has competition.
 
I am OK with software being paper to be fair, so much of our research is based on code that I think we should reward it, and in academia, a paper is the only reward XD
 
Also, not sure if you noticed, but the innovative idea with the M1 chip is the unified memory: GPU and CPU work in the same memory, you can much more easily switch back and fourth doing CPU and GPU computation on the same data.
 
but indeed, NVIDIAs monopoly is absurd
@CrisLuengo yeah I saw. NVIDIA does things to ease this too, but indeed its useful
unified memory is a term that NVIDIA first coined for memory that can be both in GPU and CPU RAM and that they manage
 
@AnderBiguri I don't publish at all any more. I have a few patents, but otherwise my work is company secrets. The one time I tried publishing a nice idea, it turns out you need students doing tons of comparisons with existing methods (but without publicly available code) for free. There is no way to justify the cost of that work if you have to pay for it.
So good ideas go unpublished unless you can justify the cost of patenting it.
 
Yeah, depends in the field that is true. I work now around matehmaticians, so the merit is in the method being new, not in the performance
ML sucks because everything is performance performance, but often the difference is they tried to fine tune the network harder, not the network being better
 
5:19 PM
The method being new seems uninteresting to so many journals in image processing, it needs to be better than existing methods or it won't be published. Either faster or producing better results somehow. Sad.
 
Unfortunately, that leads to (often inadverted) gaming of the system
if the only prameter is number go up, then you ignore so much interesting things about the work itself
 
Agreed! A good idea should be published, a faster implementation shouldn't. I'm talking about publishing in a scientific journal. And by faster implementation I mean "we used SIMD intrinsics to speed up this shit", not "using this data structure you get better performance". That's a meaningful idea.
Someone else might run with that new idea and do something marvelous. Nobody is going to read the "we used SIMD intrinsics" paper and come to a revelation.
 
Yeah, agree.
Or, I am happy if its a paper if then it goes: "and here there is a general purpose open source implementation of it"
 
5:44 PM
@AnderBiguri is AMD a different league? Or no GPGPUs there?
 
NVIDIA has a proprietary language CUDA, which is used a lot in scientific computing, but you can only use on NVIDIA GPUs. There is an open standard for GPU computing (OpenCL), but it seems that you don't get the same performance on NVIDIA GPUs (probably because NVIDIA is purposefully providing shitting implementations for their platform?), so that all those science labs that have NVIDIA GPUs continue to use CUDA, so that all science labs need to keep buying NVIDIA GPUs to use the CUDA code.
They were there first, and somehow have managed to keep other manufacturers out of the field.
 
5:59 PM
HIP is getting there, I had a chat with AMD about it
they are breaching the gap
 
6:12 PM
@AnderBiguri Nice! Didn't know about that one.
 
6:28 PM
Not only that, they have code that will basically translate all your cuda code to HIP
and they designed their language to be the same as cuda
cudaMalloc->hipMalloc
 
 
1 hour later…
7:39 PM
@AndrasDeak--СлаваУкраїні can I do list(set(list_of_objects)) to get "unique(list_of_objects)"?
 
@AnderBiguri yeah, that’s the right way to do it. Make the APIs and syntax as similar as you can without getting sued for copyright infringement.
@AnderBiguri yes.
 
8:22 PM
Thanks! I know it works for intrinsic, but didn't know if it worked for objects
 
8:49 PM
Intrinsic? Objects?
the objects have to be hashable, but yeah
if you want to keep the order, use dict.fromkeys on python 3.7+ (cpython 3.6+)
@AnderBiguri ^
@CrisLuengo <3 vendor lock-in
 
 
2 hours later…
11:20 PM
I'm reviewing a deep learning paper. I don't review a much at all any more, but occasionally the topic seems interesting enough. Boy do I regret accepting this one. I'll call it "mathematics-adjacent". Like they have heard of mathematics, and seen it in other papers, and think they need to use it in their paper, but don't really know how it works.
 
And I'm worried now that all ML papers use math like this, and I didn't know it because I've never tried to read any of them before today.
I don't know if it's wrong, it makes no sense.
 
Yes, that's "not even wrong" :D
@CrisLuengo written by a NN no doubt
 
Then yes, it's not even wrong.
What the hell is "channel-wise add operation"?
 
Regular elementwise addition?
 
11:23 PM
No, they have that one too, with a different symbol.
 
Also, they feel the need to define a plus with a circle around it for element-wise addition. Like what the hell is +?
 
Hmm, perhaps "channel-wise" as in summing over channels?
(h, w, c) -> (h, w)
 
They don't explain. Like I'm supposed to know. Maybe this is a common thing in ML papers. Who knows? The paper is also filled with acronyms that I'm supposed to know. I'm sure they're standard in the industry, but I'm clueless.
 
This looks just like that discuss.pytorch.org/t/…
@CrisLuengo very bad form, we always define even trivial acronyms
Just reject it with "it gave me a stroke"
 
11:27 PM
LOL!
No, they're adding two arrays "channel wise".
 
They're the same size 3D arrays, where one of the dimensions is "channel".
Shit, there's a "point-wise convolution". This is giving me a stroke.
 
Are you sure it's not some crank shit?
 
No, not any more.
 
11:44 PM
@CrisLuengo :-D That's easy:
conv(3,4)
ans =
    12
Huh, it might be a thing after all (a thing I never heard of):
The also talk about "channels"
 
@LuisMendo Oh, yeah, they do shamelessly talk about a 1x1 convolution in another part of the network. I wouldn't be surprised if they use two different names for the same thing.
 
"Convolution with a 1x1 kernel"... ??
 
I tell you, these ML people are really fucking up math and image processing with their terminology. "tensorflow has a convolution operator, but no scaling, let me abuse the convolution to do scaling, and I'll give it a new name to fuck with everyone."
 
Now it's your chance (as a reviewer) to put some order into this :-)
 

« first day (2710 days earlier)      last day (521 days later) »