« first day (859 days earlier)      last day (2363 days later) » 

1:06 AM
@TroyHaskin I never get why global (sharing variables from script to function) is considered bad whereas nested functions (sharing variables from main function to nested functions) is fine. At least with global you get to limit which variables are shared
(Nice answer anyway!)
 
True. But I view global as an analogue to FORTRAN COMMON Blocks. When global becomes the only way data is shared, I think it can be declared an evil.
 
You don't mention the perhaps easiest option: pass the required variables as additional inputs
 
Isn't that the first option I gave?
 
The first option is to compute the moments within the function. I mean compute them outside (if they are needed for something else) but pass them as inputs to the function
 
Ah, yes.
I considered that but liked the semantic clarity of my code. :)
But yeah, the precomputed moments could be passed as well.
 
1:11 AM
Bedtime here. Good night!
 
'Night.
 
 
11 hours later…
12:28 PM
@LuisMendo but then with nested functions your scope is well-defined, you needn't go further than the enclosing function you're in. With globals you can never know if there's a crappy little function somewhere that also declares your variable global and modifies it without your knowledge
 
All in all, I think its best to be explicit and freaking pass everything in the function arguments
 
heyo
 
12:54 PM
@AndrasDeak That's a very good point
@AnderBiguri In general yes. But if the arrays being passed are very large, that probably causes overhead and uses more memory
 
@LuisMendo Only if you modify said array... if they're read-only, it's just a lightweight pass-by-reference
 
@LuisMendo I use fortran for work :P
 
1:29 PM
eugh im about to give up on this neural network project
there's a huge class inbalance in my data
 
there are certainly ways of handling that
not that I know of them, but there are
 
I've looked at oversampling the training data
 
I think you need some science rather than heuristics. I mean, read some paper or book where they handle this thing
 
yeh i'll try find one :)
 
If you need access to academic papers and they are behind a paywall, try sci-hub.cc
5
Its like pirate bay, for scientific papers, and IMO ethically clean
 
1:39 PM
that's a neat link. I was actually looking for a specific paper last week, i'll give it a shot now.
 
Its great because when you use it, the original authors get the same amount of money as when you would pay for it via proper journal access
i.e. 0.00£
 
xD
oversampling seems to be a common theme ;)
 
oh, if thats the case, fantastic :P
 
There's a few common approaches, over/under-sampling & trying to move the thresholds
How goes the thesis? Nearing the light?
 
YEAH
very little left
 
1:49 PM
AWESOME
What's your immediate plans?
 
January I have a job. If I finish the thesis soon, move my shit to southampton and go on holidays
 
Oh yeah I didn't get chance to ask you about that. What's the job?
 
Can you develop an algorithm to generate and evaluate algorithms?
and then maybe an algorithm ensuring that the algorithm checking the algorithms is working correctly?
 
That is the holy grail
In tomography, its almsot imposible to know which one is better
 
1:57 PM
Excited to start?
 
IDK, massive change in my life
confused now
 
I bet it's exciting from a financial perspective
 
oh damn, a real job
my first real job, at 28 :/
 
haha
retirement soon
 
hahaha
but yeah, postdocs pay good. but if I wanted money i'd go to industry, they pay 150% at least
 
2:09 PM
Yeah I understand that :) Staying humbled ;)
You will soon be enticed by London's wallstreet, hookers and cocaine.
You'll be a JP Morgan in no time.
 
hahaha
they already spam my linkedin
My soul has a very hihg price
 
I used to get spammed by recruitment companies all the time and I only have a BSc!
Been thinking about doing my masters.
 
What is your BSc on?
CS?
 
Yeh
I'd probably do my MSc in data science though
 
Yeah thatsa cool
have you seen the Coursera especiallization?
 
2:13 PM
I havn't?
 
pretty good for the starting knoledge
 
The deeplearning.ai course?
 
Im enrolling on that (starts tomorrow) ;)
Well, I enrolled earlier.
 
I think you can make each of them for free
 
2:14 PM
Yup
By choosing to audit
get access to all material but dont get the cert
which, I can live with
 
I still put them in my CV if I do that
because fuck it, I have done it :P
 
For sure!!!
I'd even put the ones I thought about doing
 
haha I dont do that :P XD
 
haha, maybe thats pushing it ;)
So you're leaving beautiful Bath
Leaving those sand-stoned walls
 
yeah. I am happy to leave the town, I think I had gotten the maximum it can give
but im going to the town that I called for a while "the ugliest place in the UK" :/
Time to eat my words
 
2:18 PM
Yup, time to move on
hahahah
It doesn't have an appealing name
 
I hope its good :P
 
 
3 hours later…
5:02 PM
posted on November 06, 2017 by Cleve Moler

Three-term recurrence relations are the basis for computing Bessel functions.... read more >>

 
 
2 hours later…
6:54 PM
Several organisms are capable of rolling locomotion; however, true wheels and propellers—despite their utility in human vehicles—do not appear to play a significant role in the movement of living things (with the exception of certain flagella, which function like corkscrews). Biologists have expounded on the reasons for this apparent absence of biological wheels, and wheeled creatures have appeared often in speculative fiction. Given the ubiquity of the wheel in human technology, and the existence of biological analogues of many other technologies (such as wings and lenses), the lack of wheels...
today's featured Wikipedia page.
Wow
 
 
2 hours later…
9:04 PM
@AnderBiguri I linked sci-hub in the physics.SE chatroom once, and got chided for promoting piracy :|
 
9:15 PM
>> textscan('10/18/2017 5:39:21 PM', '%{MM/dd/yyyy HH:mm:ss a}D', 'Delimiter', ',')

ans =

  1×1 cell array

    {[10/18/2017 12:39:21 PM]}
:|
why MATLAB
why
as far as I can tell it's converting it to local time and leaving it TZ unaware
 
scanning successful
 
wtf
this is ridiculous
 
You mean using month-day-year? I fully agree
 
>> d
d =
  datetime
   10/18/2017 12:39:21 PM
>> d.TimeZone
ans =
  0×0 empty char array
looks like it
 
oh whoa
it's because my hour spec is wrong
 
9:25 PM
I guess .SystemTimeZone is relevant
 
@excaza use hh instead of HH
 
ooh, I see what your actual problem was, I completely missed that
 
it still doesn't make sense why it's wrong
lol
 
I did try to figure out the format specs but datetime tends to have confusing documentation regardless of language
 
I guess giving it 24 hour time and AM/PM makes it lose its mind
 
9:37 PM
@excaza That seems to be the problem. If you use HH:mm:ss a, the hours will always be set to 0 if your string is AM and 12 if your string is PM.
 
 
2 hours later…
11:47 PM
@AndrasDeak :/ not cool
 

« first day (859 days earlier)      last day (2363 days later) »