On most dating apps, swiping right on a profile means sending a match request, while swiping left skips the profile. Once both users swipe right, they can start messaging each other. There’s a common belief that since most heterosexual dating apps have more men than women, the best strategy for men is to swipe right on every profile and see who matches. However, as a data scientist, I’d like to explain why this might not be the most effective approach.
Five years ago, I started regularly using part of my salary to buy stocks. At the time, I had researched extensively online, reading a lot of content — probably over a thousand articles. It still took me some time to build up the confidence to actually invest. I spent a year learning before I finally opened an account and bought stocks. I initially invested in global market cap-weighted ETFs (VT + VGIT) with an 80/20 stock-bond allocation. I’m grateful I had a good start, but five years later,…
Join
is very common in SQL, but usually, the types used are inner join
, left join
, right join
, and outer join
. This article introduces what semi join
and anti join
are, using PySpark
as an example.
After setting up Firebase and Google Analytics, Flutter can conveniently send screen_view events. However, this requires manually adding code to each page. I found a way to automate this process with minimal changes.
The title uses “building” instead of “writing” because some experiences take time to prepare. For example, taking a course takes at least half a year, and longer if there are prerequisites. Competing in a Kaggle machine learning competition can take three to six months, and it’s not always possible to achieve results that are good enough to put on your resume. Deliberately building your resume in advance will give you the best chance of getting interviews when…
Accidentally stumbled upon Y Combinator’s YouTube channel and found their course for startup founders. Took the opportunity over the holiday to watch it all. Despite working in startups for years, I learned a lot, and some insights even challenged my previous beliefs.
The models nowadays are becoming larger, especially language models. Search engines need to provide real-time results, and models on mobile devices have limited memory and computational power, requiring model lightweighting. ONNX, developed by Microsoft, is a cross-platform machine learning framework that can convert models from various frameworks (such as PyTorch, TensorFlow, etc.) into the ONNX format and perform lightweighting. This article takes a PyTorch model as an example, using ONNX to…
I recently finished reading the Elon Musk biography written by Walter Isaacson. Each chapter is a short story that allows us to understand Musk’s personality and how he accomplished all of his achievements: the commercialization of electric vehicles, world-leading self-driving technology, reusable rockets, satellite communications, and more. These are daunting feats, yet he made them happen. Musk is not a perfect person, nor does he need to be. We can try to learn from his working methods…
Recently, FIRE (Financial Independence and Retire Early) has become quite popular. People probably don’t like going to work. The source of income for not working is the 4% Rule, but this is actually a simplified result with dnagers.
Many economic studies discuss the relationship between income and happiness. This is not a formal economics blog, so I will not introduce them. Therefore, the research part will not be too detailed or accurate. I mainly want to talk about my own thoughts. For details of the studies, please see my references.