Calculate penalty for each used feature