Coding for general penalties | AMiner