Let us consider we have a set of rules to identify whether a given image is of which plant. And if we are going to classify an image based on an individual rule the prediction would be flawed. Each of these rules individually called weak…