1. An information processing apparatus providing an inference means for outputting a diagnosis inferred for a medical case and reason information used to infer the diagnosis, the apparatus comprising: a first obtainment unit configured to obtain values indicating an inference performance for each of a plurality of inference means based on a group of first correct data including a correct diagnosis for the medical case; a second obtainment unit configured to obtain values indicating a validity of the reason information used in the inference output by each of the plurality of inference means, based on a group of second correct data that includes information to be identified in a case for which the correct diagnosis has been provided; and a third obtainment unit configured to obtain at least one inference means from the plurality of inference means based on the values indicating the inference performance and the values indicating the validity.