trained with build input and output for unsupervised learning there is no feedback mechanism because the machine is unaware of the output during the training phase now in reinforcement learning the feedback is in the form of rewards or punishments from the environment so when an agent takes a suitable action it will get a corresponding reward for that action but if the action is wrong then it gets a punishment so rewards and punishments can be thought with respect to a game now in a game when you win a state you