/images/me/WechatIMG60.jpeg

Hyper Potato's Blog

Udacity A/B testing final project

At the time of this experiment, Udacity courses currently have two options on the course overview page: “start free trial”, and “access course materials”. If the student clicks “start free trial”, they will be asked to enter their credit card information, and then they will be enrolled in a free trial for the paid version of the course. After 14 days, they will automatically be charged unless they cancel first.

Build your blog with Github + Hugo Part 1

I’ve tried Jekyll, Hexo and Hugo and now my website uses Hugo. It is simple, boring, flexible, and fast. The main reason is that it is simple. There’s not much you have to learn to get started. Let’s cut to the chase. Assumptions You know how to open and run simple lines in the macOS or Windows terminal. You will use ~/Sites as the starting point for your site. (~/Sites is used for example purposes.

Categorical variables encoding in machine learning -Part1

In this part one blog about categorical encoding, I will be introducing some common encoding methods that I have explored and pros and cons for each of them. TL; DR There is no ‘one size fits all’, and it usually depends on your data representations and requirements. If a variable has a lot of categories then a one-hot encoding scheme will produce many columns which can cause memory issues. In my experience relying on LightGBM/CatBoost is the best out-of-the-box method.

Day 60 but who's keeping count

.container { max-width: 1200px; margin-left: auto; margin-right: auto; } I think yesterday was a Friday because someone used #flashbackfriday but every day brings painful flashbacks. I miss the hustle and bustle of a crowded crossroad. I miss sitting on a seat and it’s still warm and then kind of feels wet and you’re not entirely sure but you’ve already committed to that seat and then finally when you get up you think yeah it was wet.

A boring look into my Spotify playlist

Sit tight and listen to music For the past weeks, I’ve taken breaks from staring blankly into the middle distance to dip deeper into my playlists than I have in years. I’ve been using Spotify only since last year since most of time I used apple music. I like the feature of adding songs to library on apple music. By innertion I’m still using the library to save songs that I like.

Change category colour across plots in Seaborn

Self-quarantine gets me nerd-out on small things that I usually googled again and again. For example, very often I need to plot multiple plots sharing the same category, where it’s better to keep colors across categories consistent for all the plots. The easiest solution to make sure to have the same colors for the same categories in different plots would be to manually specify the colors at plot creation. Alternatively, we can use a list of colors or a dictionary to map colors onto categories.