Machinelearningisprogrammingcomputerstooptimizeaperformancecriterionusingexampledataorpastexperience.Weneedlearningincaseswherewecannotdirectlywriteacomputerprogramtosolveagivenproblem,butneedexampledataorexperience.Onecasewherelearningisnecessaryiswhen