check_input#

scikitplot.modelplotpy.check_input(input_list, check_list, check='')#

Check if the input matches any of a complete list

Parameters:
  • input_list (list of str) – List containing elements specified by the user.

  • check_list (list of str) – List containing all possible elements defined by the model_plots object.

  • check (str, default empty) – String contains the parameter that will be checked to provide an informative error.

Return type:

error if there is no match with the complete list or the input list again

Raises:

ValueError – If the elements in input list do not correspond with the check_lisk.: