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: at least one processor; and at least one memory, said processor and memory being operatively coupled to function as: a first obtainment unit configured to obtain values indicating an inference accuracy or likelihood for each of a plurality of inference means based on an inference result output by each of the plural inference means and 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 the reason information and a group of second correct data that includes correct reason information 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 (1) values indicating the inference accuracy or likelihood and (2) the values indicating the validity.