Skip to contents

This function summarizes class results for a series of classifier output files and returns a summary data list.

Usage

ifcb_summarize_class_counts(classpath_generic, hdr_folder, year_range)

Arguments

classpath_generic

Character string specifying the location of the classifier output files. The path should include 'xxxx' in place of the 4-digit year (e.g., 'classxxxx_v1/').

hdr_folder

Character string specifying the directory where the data (hdr files) are located. This can be a URL for web services or a full path for local files.

year_range

Numeric vector specifying the range of years (e.g., 2013:2014) to process.

Value

A list containing the following elements:

class2useTB

Classes used in the TreeBagger classifier.

classcountTB

Counts of each class considering each target placed in the winning class.

classcountTB_above_optthresh

Counts of each class considering only classifications above the optimal threshold for maximum accuracy.

ml_analyzedTB

Volume analyzed for each file.

mdateTB

Dates associated with each file.

filelistTB

List of files processed.

classpath_generic

The generic classpath provided as input.

classcountTB_above_adhocthresh (optional)

Counts of each class considering only classifications above the adhoc threshold.

adhocthresh (optional)

The adhoc threshold used for classification.

Examples

if (FALSE) { # \dontrun{
ifcb_summarize_class_counts('C:/work/IFCB/user_training_test_data/class/classxxxx_v1/',
                            'C:/work/IFCB/user_training_test_data/data/', 2014)
} # }