Analytics Vidhya
medium.com/analytics-vidhya · Group blog · on HN since 2018
Analytics Vidhya is a Medium publication where data scientists and students post tutorials and experiments on machine learning and data science.
What HN saysHN links it for assorted ML and data science write-ups, such as visualizing sudoku backtracking and explaining Google's T5 transformer.
83HN people shared it
22linked it in comments
81stories submitted
432story points
11 months agolast shared
2018people per year2026
Most-shared posts
- 1Differential Equations with Transformers: Deep Learning for Symbolic Math3 people · 145 points · first shared 2020 · 24 comments on HN
- 2Towards GPU-accelerated image classification on low-end hardware3 people · 5 points · first shared 2021 · discussion on HN
- 3Converting Boolean-Logic Decision Trees to Finite State Machines2 people · 49 points · first shared 2020 · 8 comments on HN
- 4Encoding Time Series as Images (2020)2 people · 31 points · first shared 2021 · 4 comments on HN
- 5You Don’t Understand NN Until You Understand the Universal Approximation Thm2 people · 1 points · first shared 2021 · discussion on HN
- 6Why are lstms struggling to matchup with transformers a1cc5b2557e32 people · first shared 2023
- 7M1 Mac Mini Scores Higher Than My RTX 2080Ti in TensorFlow Speed Test1 people · 37 points · first shared 2020 · 13 comments on HN
- 8Sentiment Analysis for Trading with Reddit Text Data1 people · 11 points · first shared 2021 · 1 comments on HN
- 9Build Spam Filter from Scratch (ML)1 people · 11 points · first shared 2018 · discussion on HN
- 10How to Perform Sentiment Analysis with Node.js1 people · 8 points · first shared 2020 · discussion on HN
- 11Type Annotations in Python 3.81 people · 8 points · first shared 2020 · 2 comments on HN
- 12Article claims hand rolled C code can perform dot product faster than Numpy1 people · 7 points · first shared 2020 · 5 comments on HN
- 13Linear Regression – Machine Learning Fun and Easy1 people · 6 points · first shared 2018 · discussion on HN
- 14Show HN: Decoding Panda Express APIs to Find Places with Eggplant Tofu1 people · 5 points · first shared 2021 · discussion on HN
- 15A tutorial about Q-Learning1 people · 4 points · first shared 2019 · discussion on HN
What HN people wrote when they linked it
zwkrt · 2022-10-05
This blog post has a nice visualization of sudoku solving using backtracking. https://medium.com/analytics-vidhya/sudoku-backtracking-algorithm-and-…
Although the case they use is almost perversely simple. Imagine in a 'real' sudoku that each number might need to be backtracked multiple times, such that the algorithm is regularly going almost back to the start.
Edit: here's a classic one trying to solve the 8 queens problem: https://commons.wikimedia.org/wiki/File:Eight-queens-animation.gif
TinkerTurtle · 2021-09-22
Hi all,
This was a fun project exploring the Raspberry Pi Zero W hardware, Go, modern JS APIs, and 3D Printing.
I wanted to be able to get highlights of activity from my birdfeeder, and eventually run an onboard image classifier [0] to figure out which one of my neighbors have not been cleaning up after their dog.
Compared to most other RPi motion detection projects, this runs more efficently by streaming H.264 video instead of MJPEG, and detection is based on motion vectors instead of image difference techniques.
After testing a few other projects in this space, I'd recommend taking a look at PiKrellCam [1] if you really need to pinch CPU cycles on a RPi. For reference PiKrellCam runs at least twice as fast as Sentry-Picam, and has even better motion detection.
[0] https://medium.com/analytics-vidhya/towards-gpu-accelerated-image-clas…
[1] http://billw2.github.io/pikrellcam/pikrellcam.html
ZephyrBlu · 2021-03-21
> The metric is also very human friendly: think of it as 30% of players in the given position, at the given game’s stage and state, successfully continued on to a victory
What I am trying to say is that this is a meaningless piece of information, because that's not how games work. You can't freeze the game state and say "I have a xx% chance to win here", because the state of the game continues evolving over time.
If you were actually estimating your chance to win, it would be a forecast. Except if it's anything like this kind of NN [0], then it is literally just estimating based on a snapshot of game state and not the context of the game. At best, this "win probability" is snapshot estimate of the current game state and has nothing to do with the actual outcome of the game.
This value is also impossible to falsify, so it could be spitting out any random number and you can't say that it's wrong.
[0] https://medium.com/analytics-vidhya/a-simple-neural-network-for-in-gam…
red369 · 2025-11-07
I was going to provide my passwords to any random person on the internet, Troy Hunt might be close to the top of the list, but I think your sentiment is sensible.
I remember searching the dataset being fairly straight forward. It's been a while since I've done it, but I think I just downloaded the text file and then grepped it for hashes of my passwords, but I see people doing much more useful things:
https://medium.com/analytics-vidhya/creating-a-local-version-of-the-ha…
noobcoder · 2023-05-18
I had a blog on it on overview of it with codes and explanation (more like eli15): https://medium.com/analytics-vidhya/googles-t5-transformer-theory-ffd0…
eternalban · 2023-05-17
Good overview of the two approaches:
https://medium.com/analytics-vidhya/why-are-lstms-struggling-to-matchu…
djsamseng · 2023-05-02
This is a pretty good introductory primer. https://medium.com/analytics-vidhya/understanding-the-mel-spectrogram-…
1. STFT (get frequencies from the audio signal)
2. Log scale/ decibel scale (since we hear on the log scale)
3. Optionally convert to the Mel scale (filters to how humans hear)
Happy to answer any questions
pjmlp · 2023-02-13
You can already do this today with standard toolchain.
https://medium.com/analytics-vidhya/running-go-code-from-python-a65b3a…
nl · 2023-01-20
Read about "RNN Vanishing Gradients". LSTMs help here, but see eg https://medium.com/analytics-vidhya/why-are-lstms-struggling-to-matchu… for the problems there.
rsfern · 2022-02-10
It seems like he was one of the people advocating using CUDA for deep learning before Krizhevsky’s big breakthrough in 2012.
Not a primary source: https://medium.com/analytics-vidhya/gpu-for-deep-learning-7f4ef099b702
Alex Krizhevsky’s home page has a bunch of CUDA ConvNet stuff from ~2010
https://www.cs.toronto.edu/~kriz/
Edit: found a better source. Deep learning on GPUs dates to 2005, and Ng’s group has the first GPGPU ConvNet report in 2009, and Krizhevsky has the breakthrough in 2011/2
https://www.deeplearningbook.org/contents/applications.html
arnaudsm · 2021-03-24
Here's a tutorial : https://medium.com/analytics-vidhya/install-tensorflow-2-for-amd-gpus-…
I haven't tested myself, but since I have PTSD from Linux CUDA installations I'm glad competition is finally here.
jcytong · 2020-12-17
You are correct
New results show it's 5x slower on the M1
https://medium.com/analytics-vidhya/m1-mac-mini-scores-higher-than-my-…
Interestingly, it's only utilizing the neural engine and no GPU. It'd be interesting to see what happens when M1 Tensorflow updates to utilize both GPU + NE
thomasahle · 2020-09-06
This is the differential equations paper I was thinking about https://medium.com/analytics-vidhya/solving-differential-equations-wit…
gradys · 2020-05-21
Curious what analysis you're referencing here.
While I don't doubt people have shown that various transformer models have certain limitations, I'm pretty bullish on transformer models in general.
Here's a post exploring the application of transformers to symbolic mathematics for instance: https://medium.com/analytics-vidhya/solving-differential-equations-wit…
robbya · 2019-12-09
See also: Erlang's crash on error, with clean restart philosophy.
https://medium.com/analytics-vidhya/erlang-is-not-just-a-language-it-i…
sofixa · 2023-06-13
Basically instead of FROM python:3.9, you do FROM scratch. This represents an empty container with nothing.
It's quite easy to use with statically compiled languages, and a bit less so with interpreted ones like Python, but you need to use a multi-step build with first an image containing your dependencies to compile, and then a stage from scratch copying just the resulting artifacts. That way your production image is extremely light and has no attack surface or stuff to update outside of your own code. The main downside is that debugging live is not easy (if you have some networking errors, you can't just exec inside and do some ping/curl/netstat/etc. to check stuff, because you can't even exec inside due to no shell being present), and requires extra tooling like cntr/cdebug or Kubernetes Ephemeral Containers which will attach a fuller container (e.g. busybox) to the running scratch one to be able to debug.
https://chemidy.medium.com/create-the-smallest-and-secured-golang-dock…
https://medium.com/analytics-vidhya/dockerizing-a-rest-api-in-python-l…
haldujai · 2023-01-11
If you can’t fit the model on your resources you can leverage DeepSpeed’s ZeRO-offload which will let you train GPT2 on a single V100 (32gb).
Alternatively, if you’re researching (with the caveat that you have to either publish, open source or share your results in a blog post) you can also get access to Google’s TPU research cloud which gives you a few v3-8s for 30 days (can’t do distributed training on devices but can run workloads in parallel). You can also ask nicely for a pod, I’ve been granted access to a v3-32 for 14 days pretty trivially which (if optimized) has more throughput than 8xA100 on transformer models.
TPUs and moreso pods are a bit harder to work with and TF performs far better than PyTorch on them.
https://www.deepspeed.ai/tutorials/zero-offload/
https://medium.com/analytics-vidhya/googles-tpu-research-cloud-free-tp…
pabs3 · 2025-11-23
peter_d_sherman · 2024-02-18
>"...Graphics programming has this intriguing concept of 4D vectors used to represent 3D objects..."
Intriguing indeed!
Related:
https://www.popularmechanics.com/science/math/a27737/visualize-higher-…
https://www.quora.com/What-fields-of-mathematics-deal-with-higher-dime…
https://medium.com/analytics-vidhya/understanding-the-mathematics-of-h…
https://piggsboson.medium.com/higher-dimensions-for-dummies-147011dc30…
https://www.cs.cmu.edu/~venkatg/teaching/CStheory-infoage/chap1-high-d…
https://encyclopediaofmath.org/wiki/Higher-dimensional_geometry
https://yashkant.github.io/spad/
https://en.wikipedia.org/wiki/Pl%C3%BCcker_embedding
https://en.wikipedia.org/wiki/Grassmannian