Am Neumarkt 😱
286 subscribers
89 photos
3 videos
17 files
522 links
Machine learning and other gibberish
Archives: https://datumorphism.leima.is/amneumarkt/
Download Telegram
#python

This post is a retro on how I learned Python.

Disclaimer: I can not claim that I am a master of Python. This post is a retrospective of how I learned Python in different stages.

I started using Python back in 2012. Before this, I was mostly a Matlab/C user.

Python is easy to get started, yet it is hard to master. People coming from other languages can easily make it work but will write some "disgusting" python code. And this is because Python people talk about "pythonic" all the time. Instead of being an actual style guide, it is rather a philosophy of styles.

When we get started, we are most likely not interested in [PEP8](https://peps.python.org/pep-0008/) and [PEP257](https://peps.python.org/pep-0257/). Instead, we focus on making things work. After some lectures from the university (or whatever sources), we started to get some sense of styles. Following these lectures, people will probably write code and use Python in some projects. Then we began to realize that Python is strange, sometimes even doesn't make sense. Then we started leaning about the philosophy behind it. At some point, we will get some peer reviews and probably fight against each other on some philosophies we accumulated throughout the years.

The attached drawing (in comments) somehow captures this path that I went through. It is not a monotonic path of any sort. This path is most likely to be permutation invariant and cyclic. But the bottom line is that mastering Python requires a lot of struggle, fights, and relearning. And one of the most effective methods is peer review, just as in any other learning task in our life.

Peer review makes us think, and it is very important to find some good reviewers. Don't just stay in a silo and admire our own code. To me, the whole journey helped me building one of the most important philosophies of my life: embrace open source and collaborate.
#misc

Quote from this article:

"It doesn’t transmit from person to person as readily, and because it is related to the smallpox virus, there are already treatments and vaccines on hand for curbing its spread. So while scientists are concerned, because any new viral behaviour is worrying — they are not panicked."

https://www.nature.com/articles/d41586-022-01421-8
#github

I have been following an issue on math support for github markdown (github/markup/issues/274).

One thousand years later ...

Math support in Markdown | The GitHub Blog
https://github.blog/2022-05-19-math-support-in-markdown/
#ml

I have heard about deepeta before but never thought it was a transformer.

According to this blog post by uber, they are using an encoder decoder architecture with linear attention.

This blog post also explains how they made a transformer fast.

DeepETA: How Uber Predicts Arrival Times Using Deep Learning
https://eng.uber.com/deepeta-how-uber-predicts-arrival-times/
#data

If you are building a simple dashboard using python, streamlit is a great tool to get started. One of the problems in the past was to create multipage apps.

To solve this problem, I created a template for multipage apps a year ago.
https://github.com/emptymalei/streamlit-multipage-template

But today, streamlit officially introduced multipage support. And it looks great. I haven’t built any dashboards for a while, but to me, this is still the go-to solution for a dashboard.
https://blog.streamlit.io/introducing-multipage-apps/
#ml


Mitchell M, Wu S, Zaldivar A, Barnes P, Vasserman L, Hutchinson B, et al. Model cards for model reporting. Proceedings of the Conference on Fairness, Accountability, and Transparency. New York, NY, USA: ACM; 2019. doi:10.1145/3287560.3287596

https://arxiv.org/abs/1810.03993
#fun

The History of User Interfaces
https://history.user-interface.io/
#ml


I was playing with dalle-mini ( https://github.com/borisdayma/dalle-mini ).

So... in the eyes of Dalle-mini,

1. science == chemistry (? I guess),
2. scientists are men.

Tried several times, same conclusions.

It is so hard to fight against the bias in ML models.


---

Update: OpenAI is fixing this.

https://openai.com/blog/reducing-bias-and-improving-safety-in-dall-e-2/