Skip to main content
Data Science Wizardry Blog by Attila Vajda

Breathing into the belly

Permutations of rhythm #

Knowing permutations is very useful in making music. I realised this working through a chapter of the DAoM Music book.

Regex in VS Code #

Pressing Cmd-Shift-F, search for term, the count of words is displayed in the sidebar.

>>> find . -type f -name "*.rb" -print0 | while read -d '' -r file; do echo "$file"; done

Return to previously open directory in bash #

I inadvertently exited the current open directory, and wondered how to move back to it, and cd - does it:

πŸͺ content % cd blog
πŸͺ blog % cd
πŸͺ ~ % cd -
πŸͺ ~/PROJECTS/musical-data-blog/content/blog
πŸͺ blog % 

alg #

Processing large datasets stored locally on a specific machine.

Code golf iterative-binary-search

logistic regression #

Adding weights to one side of a coin is similar to what Logistic Regression does!

Very cool, we can flip a biased coin in Python 🐍😌:

import numpy as np

# Set the bias of the coin (probability of heads)
bias = 0.7

# Generate a single biased coin flip
flip = np.random.choice([0, 1], p=[1-bias, bias])

print(flip)

After learning some event algebra, I understand event in Logistic Regression!

sigmoid function

Gif of sigmoid learning neural network by Sagar Sharma

Gif of sigmoid fit by Andre Ferrari

Gif of sigmoid 'bear or person' regression by Ines Pedro

GIFs are awesome to watch, while listening to dub:

Sigmoid GIFs on Google Images

~ banana peels smoked πŸ˜‰:

Effects of Cannabis (Marijuana) on the Brain and Body - podcast episode on the Huberman Lab

lo-fi multi llm system #

I built a "lo-fi" multi computer agent system: Two browser windows open with two different llms