Home
Khem's Tech/Data Blog
Cancel
Preview Image

Tooling for image segmentation

This is an attempt to do image segmentation using machine learning and FreeSurfer. The brain tumor segmentation (or BraTS) dataset was used. The model is based on a volume-to-volume Generative Adve...

Preview Image

Data-driven investigation of Java memory issue of an actual application (Part 1)

When developing, we seldom see serious memory thrashing issues. I was fortunate enough to see an issue with an application that was built many years ago. (Note: I was not the developer of the app. ...

Preview Image

Aspects

Aspect-oriented programming (AOP) is a programming paradigm that separates (or decouples) out cross-cutting concerns in our objects. It’s common to see logging messages scattered in various places....

stdc++.h seen in competitive programming posts

If you see #include <bits/stdc++.h>, this is not a standard header. You see this often in competitive programming posts. You may have trouble compiling your code as a result. The solution is...

Preview Image

Survey reliability (round 2)

The original formulation for Cronbach’s alpha takes this form: [\alpha = \frac{N}{N-1}\left(1 - \frac{\sum_{i=1}^{N} \sigma_{y_{i}}^{2}}{\sigma_{T}^{2}}\right)] , where $N$ represents the number ...

Base64 to image

Write base64 image data into a PNG: import cv2 import numpy as np import base64 data = "UklGRpoAAABXRUJQVlA4WAoAAAAQAAAADwAABwAAQUxQSDIAAAARL0AmbZurmr57yyIiqE8oiG0bejIYEQTgqiDA9vqnsUSI6H+oAERp2HZ...

Preview Image

Survey reliability

Surveys are constructed from carefully chosen questions to gather information from some group of people. Quite often, it’s not enough to just ask a single question. Surveys usually consist of multi...

Preview Image

Git "fatal: Out of memory" Error

If you see the below when trying to clone a git repo, then there are a few things to try: remote: Counting objects: 690, done. remote: warning: suboptimal pack - out of memory remote: fatal: Out o...