[Machine Learning] Ex3 IrCostFunction