• ASUS Chromebook Plus CX34

    ASUS Chromebook Plus CX34. 또 크롬북을 샀다. 이제 써본게 총 6대째인가. 너무 많이 사봤다. 처음 느낌은 이 정도면 크롬북 수준에서 괜찮은 터치패드, 이 정도면 괜찮은 키감. 살짝 키 간격이 넓은 느낌도 있는데 느낌인 것으로… 터치패드 누를때 들어가는 느낌이 별로라는 리뷰가 맞긴한데, 그런 기대는 크롬북에 바라는게 너무 많은거다. 터치패드의 기본 동작도 잘 안되는 모델이 많으니. 사진만큼…

    Tags:

  • Two interesting cross validation in scikit learn

    Scikit is excellent esp when considering these advanced tools. One is calibrated classifier cv. It tries to match model’s probability with the actually observed probability. The other is TunedThresholdClassifierCV yet another interesting cv. If application requires different scores, e.g.  F1,  one can tune the decision threshold using it.

  • Getting a probability given a prediction score

    Platt scaling is a method to scale score to probability. It uses logistics transformation with some learable parameters. What’s interesting is the use of laplace smoothing (or, uniform prior) to avoid overfitting.

  • Modern linux cli tools

    I personally use bat, fd, exa, rg, jq, fzf, sd. https://github.com/ibraheemdev/modern-unix?tab=readme-ov-file Not mentioned in the above but z is also an awesome tool.

    Tags:

  • Conformal prediction for dummies

    Here I’m writing the simplest form of the concept so that anyone can quickly get the idea. If you want a serious post, read paper or other blog article. This isn’t for you. Conformal prediction outputs range for regression and multiple lables for classifications. Its purpose is to have output contains the correct answer for…

  • OpenAI batch API python example

    OpenAI announced batch api which “returns completions within 24 hours for a 50% discount.” To test it, I wrote a trivial python example of the API. I didn’t test the response retrieval yet since my run will take 24h, but I expect it works fine, hopefully. Use jupyter notebook to persist the print output!

    Tags:

  • Mac shortcuts to move window to left/right side of screen

    Mac has Application shortcut and it can be used to select a menu using a keyboard. We can use that to move the windows. Here’s how I set it. It’s not super convenient as one needs to enter exact text like “Move Window to…”. Also, the application itself should have that exact menu name for…

    Tags:

  • shift+space로 한영 전환

    최근 맥 os 업데이트후 shift+space 한영전환이 막혔다. 해결 방법을 찾아 정리해둠. 카라비너를 설치한다. 권한을 주고 실행 후 Settings -> Complex Modification에서 다음 부분을 수정 이후 f18 로 shift+space가 맵핑이 된다. 맥의 settings -> keyboard shortcuts -> input methods에서 next source를 눌러 shift+space를 입력하면 f18이 입력되어 완성! 주의할 점은 karabiner는 어디까지나 키 입력을 받아 키 코드를…

    Tags:

  • Joblib Memory that expires after timelimit

    This doesn’t look well documented, but there’s an issue that trackes the problem a solution. I made it a bit simpler to use this way: And then you can use it like

    Tags:

  • poetry is great

    There are various tools for creating virtual env and I settled down with poetry. What’s great with poetry is that I can manage dependencies of development and serving. Dependencies of ‘dev’ can be specified using -G. For installing packages for serving, exclude a group as: Poetry creates pyproject.toml to list the packages I added. When…

    Tags: