dlpy.model.Model.plot_evaluate_res

Model.plot_evaluate_res(cas_table=None, img_type='A', image_id=None, filename=None, n_images=5, target='_label_', predicted_class=None, label_class=None, randomize=False, seed=- 1)

Plot the bar chart of the classification predictions

Parameters
cas_tableCASTable, optional

If None results from model.evaluate are used Can pass in another table that has the same prediction column names as in model.valid_res_tbl

img_typestr, optional

Specifies the type of classification results to plot * A - All type of results * C - Correctly classified results * M - Miss classified results

image_idlist or int, optional

Specifies the image by ‘_id_’ column to be displayed

filenamelist of strings or string, optional

The name of a file in ‘_filename_0’ or ‘_path_’ if not unique returns multiple

n_imagesint, optional

Number of images to evaluate

targetstring, optional

name of column for the correct label

predicted_classstring, optional

Name of desired prediction class to plot results

label_classstring, optional

Actual target label of desired class to plot results

randomizebool, optional

If true randomize results

seedint, optional

Random seed used if randomize is true