support calculating kernel based on selected feature for chi-square kernel