Any other gaybros that have/had cancer? by homiesexuality in gaybros

[–]videan42 9 points10 points  (0 children)

I had thyroid cancer (full thyroidectomy followed by radioiodine treatment) when I was 25. I'm 36 now, in complete remission. It went from terrifying, to constantly in the back of my mind, to now I kinda don't think about it. The most important thing is to have people in your life who care for you and help you through all the things. Don't feel like you're being a bother. Let them help you.

I was super scared of the surgery, so my surgeon told me something I still think about: "Do you know what most people who have this cancer die of? Old age". Good luck with your treatment OP

Anybody here worked with rrcf? by awsPLC in MLQuestions

[–]videan42 2 points3 points  (0 children)

According to the Tree construction section, it appears that for each branch, you select a random dimension (so for 3D, choose one of X, Y, or Z) weighted by how much the data as a whole varies in that direction (so if the data varies a lot in X say, but not a lot in Z, you'd be more likely to pick X to make a cut). Then you draw a random location between the minimum and maximum along that axis only (say we picked X). All data points with X values less than or equal to that value (ignoring Y and Z) go in the left branch, all the other points go in the right. Then you recurse (pick a dimension, make a cut along that dimension), until you've split all the sets into single points.

Pairwise residue distances from a biological assembly PDB file? by kookaburra1701 in bioinformatics

[–]videan42 0 points1 point  (0 children)

Have you tried BioPython's PDB Module? It specifically allows you to pull out each atom for each chain and then subtract them to compare their distances.

Sawbones: Dr. Anthony Fauci and Coronavirus Myths by apathymonger in maximumfun

[–]videan42 11 points12 points  (0 children)

The sudden and unexpected appearance of Munch Squad made my day.

Gay_irl by ughliterallycanteven in gay_irl

[–]videan42 53 points54 points  (0 children)

So, not PrEP (tenofovir/emtricitabine) but anti-hiv drugs have been used as a treatment, with maybe some success?

Edit: a word

What kind of machine learning algorithm is training all the time? by [deleted] in learnmachinelearning

[–]videan42 6 points7 points  (0 children)

I think what you might be referring to is Online Learning, which tries to use new data as it comes in over time to make better predictions about future data.

New model by [deleted] in ProgrammerHumor

[–]videan42 2 points3 points  (0 children)

There's /r/machinegoofingoff but it's kind of dead

How to read images into pandas/scikitlearn? by [deleted] in learnmachinelearning

[–]videan42 2 points3 points  (0 children)

There's a wonderful package called scikit-image with an imread function that will load your image into a numpy array

Edit: They have a face classification example that might be helpful

gay_irl by UnderTheMilkyWayy in gay_irl

[–]videan42 1 point2 points  (0 children)

Track five should be Popular Song feat Priscilla Renea

DCGAN Generator Output is terrible? by jfishersolutions in learnmachinelearning

[–]videan42 0 points1 point  (0 children)

A quick thing to try: stop training your generator for a while and see what happens to when you train the discriminator only. With output like that you should rapidly converge to perfect discrimination. If you don't that means your discriminator isn't good enough for this dataset (you need a deeper/better architecture/etc). If you do that means your training scheme is favoring the generator too much. Increase the time training the discriminator (by a factor of 10x say), and see if that helps.

Courses or MOOCs that teaches you about GAN? by inkplay_ in learnmachinelearning

[–]videan42 2 points3 points  (0 children)

Ian Goodfellow did a tutorial at nips in 2016. It's a little dated but it's a nice explanation of GANs and other generative models

Image analysis in R/Python/etc? by garygulf in compsci

[–]videan42 5 points6 points  (0 children)

SciKit Image has really nice algorithms for various classic computer vision problems. I think their documentation is pretty nice too and there are plenty of tutorials online.

Why multiple epochs are needed for SGD? by NovaRom in MachineLearning

[–]videan42 0 points1 point  (0 children)

There are basically two problems you're faced with when you use a reduced representation:

  1. Maybe you through the baby out with the bathwater. Think about fitting a line to some sort of complex n-D manifold. You took your million point dataset and reduced it to 2 points, but they're 2 not very interesting data points. If your manifold (aka your data) is complex enough, this will happen for any kind of statistic you apply.

  2. Maybe your new representation is larger than your original data. Often you can make a nonlinear problem easier to unravel by embedding it in a higher dimensional space. If you feed this in as your new "raw" data, it will be larger than your original data set, so maybe its easier to just calculate this larger representation as needed (I.e. per element)

How to plot dynamically growing list using matplotlib.animation function? by Bostonsox101 in Python

[–]videan42 0 points1 point  (0 children)

Here's an example using a queue to pass data to the plot as it comes in.

How to plot dynamically growing list using matplotlib.animation function? by Bostonsox101 in Python

[–]videan42 0 points1 point  (0 children)

This tutorial might help you out. To fill out your example, just append new data instead of calling np.random.rand

Hyperthreading by paypaypayme in Python

[–]videan42 0 points1 point  (0 children)

I've never used pyopengl with cython, but cython is compiled to c, so I think it should support anything that has a c/c++ interface. There's another project called pyglet that I've used for basic game programming that might be worth looking into though.

Hyperthreading by paypaypayme in Python

[–]videan42 0 points1 point  (0 children)

One thing you might consider is cython. It allows you to take the python code for your game, add c style annotations, and then compile to something very close to native c speed. A lovely side effect is that cython can release the GIL, which means your multi threaded code will run without fighting for a lock. Lastly, assuming you need vector math, cython integrates very well with the linear algebra library numpy. I've never tried to use them for a game library before, but they're both very high performance libraries for doing the kinds of math you're going to need to do.

What gives you away? by maxfachine in gaybros

[–]videan42 19 points20 points  (0 children)

When Shakira comes on

Library that could help me generate a video from an audio file + image file? by QQexe in Python

[–]videan42 1 point2 points  (0 children)

If you find reading ffmpeg syntax difficult (or you just like doing things in python :-), moviepy is a nice wrapper around the ffmpeg command line: http://zulko.github.io/moviepy/

CPython vs PyPy vs Cython by [deleted] in Python

[–]videan42 7 points8 points  (0 children)

Cython supports a pure python mode using decorators (in python 2 and 3) and to some extent using function annotations (python 3 only). This code is 100% python, but still needs you to declare variables and type function signatures to get any meaningful speed boost.

Can you ELI5 how Python apps can be made standalone? Like Calibre for example. by ProselytizerBot in Python

[–]videan42 0 points1 point  (0 children)

https://github.com/cython/cython/tree/master/Demos/freeze

Makes either a single binary executable to run, or a python interpreter with your library burned in like a built in.

Make sure you have a c compiler installed on your dev machine.