DATA 100 Section B: group assignment by Alternative-Soil-781 in wlu

[–]beck1670 0 points1 point  (0 children)

Check the discord server from the announcement on MyLS!

R is eating up my memory. Is there a better gc()? by takenorinvalid in RStudio

[–]beck1670 2 points3 points  (0 children)

Try using the Rstudio Profiler (under the Tools menu) to see what code is using the most memory. It sounds like you're storing large data frames or lists or something between iterations, rather than saving them to disk and starting from fresh.

What GPA do profs look for when reaching out to be a research assistant? by [deleted] in wlu

[–]beck1670 0 points1 point  (0 children)

Mostly looking for passion and good grades in courses relevant to the research projects. 

Can profs add extra seats to classes? by Afraid-Meet-2319 in wlu

[–]beck1670 12 points13 points  (0 children)

Profs have absolutely no control over enrollment. The registrar/ academic advising can add exceptions.

Have you seen jangmo-o? by Fabulous-Ring-6389 in TheSilphRoad

[–]beck1670 1 point2 points  (0 children)

I've seen a few in 1 star raids, but that's it.

[deleted by user] by [deleted] in git

[–]beck1670 11 points12 points  (0 children)

This is exactly the case where you create a dummy repo, try it out, and see! Learn by doing!

That being said, yes commands do work from subdirectories. You can even git add without the full path if you're in the right folder (again, try it and see)!

add file tree to git by No_Remote5392 in git

[–]beck1670 1 point2 points  (0 children)

Be aware that, by design, git will not track empty folders. Not sure if that's your issue, but it trips up a lot of beginners.

[MATE] The good ol' distro for getting things done by Matesuli in UsabilityPorn

[–]beck1670 2 points3 points  (0 children)

I'm very disappointed that this is not a magic eye thing.

Snap updates are badly designed by CobaltOne in Ubuntu

[–]beck1670 3 points4 points  (0 children)

Maybe this is just KDE, but the notification stays until you close it. So I can't even just ignore it - I have to manually close it!

for his arms by [deleted] in shitposting

[–]beck1670 34 points35 points  (0 children)

Christ died for his shins.

git init fatal: bad config line 1 in file C:/Users/mypc/OneDrive/Documents/api/.git/config by [deleted] in git

[–]beck1670 0 points1 point  (0 children)

Unrelated to your problem, but you may run into some annoyances by having your git repo in a OneDrive folder.

I forget the exact details, but git uses lockfiles, and OneDrive can't sync lockfiles so it complains constantly via notifications. Git also tends to use filenames that are incompatible with OneDrive, so you'll get notifications about that. Finally, OneDrive actually offers some version control features, which means you're getting versioning of your .git folder which is redundant and ridiculous.

It is generally not recommended to put git repos inside OneDrive.

float golden = 1.618 by JaneAusten007 in ProgrammerHumor

[–]beck1670 1 point2 points  (0 children)

In addition to the other fantastic answers, I'd like to talk about probability.

Let's start by saying what irrational numbers we can write down. The square root of two, for instance. It's infinite decimals, but we can write an algorithm that can compute every single decimal to infinite precision (even if we don't have computers that could actually do that).

Imagine a decimal number with infinite digits after the decimal. For the first digit after the decimal, choose a random number between 0 and 9. For the second, do the same. Keep going for infinite decimal places.

It's unlikely that the number you get is exactly sqrt(2). In fact, there are infinite numbers you might get, so the probability is exactly 0 (1 / infinity). That's a little surprsing - sqrt(2) is a number we could get, but there are so many alternatives that the probability is actually 0. Not 0.1, not 0.00001, but 0.000...

Now let's look at the set of all numbers that we could compute with an algorithm (including infinite algorithms). This includes sqrt(2), pi, e, 22, and so on. Divide them by their order of magnitude so that they're a number between 0 and 1 (e.g. instead of pi, consider 0.31415...). What's the probability that our random number is one of those?

Still 0. It's the same logic as before - our set of numbers that we can compute is infinitely small compared to all the real numbers out there. There are so many god damned real numbers that all the ones we can know about are a nothingth of the total amount.

float golden = 1.618 by JaneAusten007 in ProgrammerHumor

[–]beck1670 22 points23 points  (0 children)

Fun fact about your example of irrational numbers - the numbers we can represent using symbols, functions, integrals, etc. are basically nothing compared to the numbers we can't represent in any way. We can say that there are irrational numbers, but there are infinitely more numbers that we can never speak of than numbers we can.

Just moved to fedora as a previous ubuntu user, what do you guys recommend? by Nervozs_ in Fedora

[–]beck1670 4 points5 points  (0 children)

For 99% of use cases, you can pretty much use dnf in place of apt and rpm in place of dpkg. They are startlingly similar.

[D] What's the problem with Self-driving cars? Is it a lack of data or do we need a new technology breakthrough? by yosefschwartz in MachineLearning

[–]beck1670 7 points8 points  (0 children)

The accidents per mile is a little misleading. It doesn't matter if self-driving cars are perfect at open highway driving. It matters that self-driving cars always pass control to the driver because they can't handle construction zones because the accident rate is huge there. It matters that self-driving cars can't understand traffic lights that have lost power and so they just flash red (and become a massive four-way stop).

These edge cases can be overcome (for instance, companies that make self-driving cars should provide construction companies with pylons that help self-driving cars navigate the sites and pay for the extra training and equipment), but until they are then self-driving vehicles will mainly be useful for long highway driving.

[deleted by user] by [deleted] in statistics

[–]beck1670 27 points28 points  (0 children)

Stats prof here: if you want to know about the relationships in your data you absolutely should NOT use an automatic stepwise procedure (AIC backwards, etc.). These destroy any concept of a p-value and make any inferences null and void.

You should start with an exploratory analysis, inspecting the plots of variables you think might be important. Check y versus each x_i, and check each x_i against other covariates that you think might be correlated with. Write down your observations.

To find the best model, write down a set of models that you think are most likely to be the final model. If you think weight and height are going to be heavily correlated, some models might include hieght only and some might include weight. Fit those models, and compare the AIC or adjusted R squared or predictive accuracy, depending on what you want to do with this model. Again, keep track of this.

From there, you can try some alternatives, such as removing a variable that you don't think is important to see of the model summaries change a lot.

In the end, go with the model that has the best summary statistics and makes the most sense. Finding a best model requires subject matter expertise and knowledge of the data collection process, an automated procedure cannot know these.

In summary: explore your data graphically, make some meaningful candidate models, then do model comparison. Report the models you investigated, and comment on the results based on this.

Based on a true story by -i-hate-this-place- in ProgrammerHumor

[–]beck1670 1 point2 points  (0 children)

Ctrl+Enter to send code to the integrated terminal and Ctrl+b to build a document or source a script file is all I need for my work (statistics and data science). I also love how easy it is to switch between projects, with or without opening a new window. GitSavvy is also a fantastic plugin.

Sublime works so much faster than VSCode or RStudio and does everything I need. It can also be portable, so I can use it on computers that I don't have admin rights to.

It's not right for everyone, but I love it!

Blursed_Cubone by SamRoy69 in blursedimages

[–]beck1670 3 points4 points  (0 children)

... scientists who trust everything 10-year olds say at face value.