CostFunctionConfig should have at least one class

Please set the absolute path for the result folder. I recall I meet similar error too.