parse.label.header: Parse label header

View source: R/read_label.r

parse.label.headerR Documentation

Parse label header

Description

This function parses the header of a label file

Usage

parse.label.header(label.header)

Arguments

label.header

- string in the format: #<TYPE>:<L1>=<class1>; <L2>=<class2>[;<L3>=<class3>] where <TYPE> is a string specifying the type of label variable such as BINARY (for binary classification), CATEGORICAL (for multi-class classification), or CONTINUOUS (for regression) <L1> is a short numeric label for the first class with description <class1> (similarly for the other classes)

Value

a list with tow items

  • $type type of the label: BINARY CONTINUOUS or CATEGORICAL

  • $class.descr lables and information on what do they mean


zellerlab/siamcat documentation built on Feb. 1, 2024, 2:21 a.m.