Multi-class Performance Measures

when we want to evaluate a set of predicted labels or performance of ML models we use different performance measures. Accuracy, Precision, Recall, F-beta(usually people use F-1) or etc. But none of the aforementioned methods except Accuracy work for Multi-class data where class labels tend to have more than two (binary) different values.   Why not Accuracy? Well, Accuracy is calculated as the portion of true labeled instances to total number of instances. The questions is what is wrong wit accuracy that we need

Continue Reading

Customizing Sublime for JS

like many other programmers, I have been using Sublime Text for while for programming in many languages. Especially, when I’m doing web applications. Its fast, simple and fast again. However, sometimes its wonderful simplicity becomes a weakness. There is nothing to use there. You may have to compile and run you JS program (for example) too many times and makes it cumbersome enough to rethink your use of text editor. However, in this post I will be introducing plugins and tricks to make Sublime more like an IDE for JS

Continue Reading

Customizing Sublime Shortcuts

If you want to know how good you have become with programming, count the number of times you take your hands of the keyboard when you work :D.  Though not serious, its still true that using mouse slows down programming and on the contrary, keyboard shortcuts are the saviors of a programmers time. Sublime provides numerous keyboard shortcuts for its users. They can be found using the following links: Keyboard shortcuts for OS X Keyboard shortcuts for Windows/Linux They can also be found in

Continue Reading

How to check android applications’ CPU usage

I’m currently working on a project for which I need to read the CPU usage by applications. There are question and answers on this topic but I could’t find any tutorials on it so I decided to write one. Basically, there are many things that you can’t do using the Java api, but, with a quick tweak you can. In order to read cpu usage of applications you will need to run a bash command on the device. Java Runtime class provides this feature

Continue Reading

A, B, C, C++ … Maybe its the turn for D now

Today, when I was randomly reading hacker news, I noticed an article that “Facebook is using D in production starting today“. Will, it seemed funny first, the idea that their coming up with a new programming languages in alphabet order. However, the fact that D has to have some sort of magic that a gigantic company such as Facebook that has just started using it, though, it might have enormous costs. So this actually, persuaded me to google it a

Continue Reading

The first post

The first post seems to pretty hard to do since I didn’t exactly how to start. But, I just came with the idea to start with what we always start a new thing with Hello World

Java Integer needs 128 bits

Recently, I found a Youtube video posted by Oracle Learning which discussed efficiency of Java heap memory. I found it significantly useful and really encourage you guys to take a look at the video. But, in order to give you guys an insight about what you will be expecting to find in this video read this post. Well, if you’re a Java programmer you have probably ran into memory problems so many times. Usually much before the time you expected.

Continue Reading

Where is Iran

Oh, well. let me see. You might think that Iran is the end of the world. So, another way to say that, you might think if earth was flat and you had 80 days to fly over it. There is a country at the end of it which doesn’t get enough of the suns light. No I don’t want to talk to much, just take a look at A Glance at Iran. A Facebook page that I started earlier which

Continue Reading

Site Footer