rank_instances: Ranks instances in a data frame using a classification tree

Description Usage Arguments Value See Also

View source: R/script.R View source: R/script_BACKUP_1282.R View source: R/script_BACKUP_1990.R View source: R/script_BACKUP_2903.R View source: R/script_BACKUP_3193.R View source: R/script_BASE_1282.R View source: R/script_BASE_1990.R View source: R/script_BASE_2903.R View source: R/script_BASE_3193.R View source: R/script_LOCAL_1282.R View source: R/script_LOCAL_1990.R View source: R/script_LOCAL_2903.R View source: R/script_LOCAL_3193.R View source: R/script_REMOTE_1282.R View source: R/script_REMOTE_1990.R View source: R/script_REMOTE_2903.R View source: R/script_REMOTE_3193.R

Description

rank_instances ranks the instances in a data set by probability of them belonging to a specified target class.

Usage

1
rank_instances(tree, df, target_class)

Arguments

tree

the tree with classification and probability estimation information, built using the function classification_tree

df

the dataframe containing the data instances to be ranked

target_class

the target variable's value to be used as the class for ordering (i.e. the higher the probability of the instance being in that class, the higher its rank in the list)

Value

A vector of instance indices in df, ordered by decreasing probability of membership of class top_class.

See Also

classification_tree


teofanan/classprobtree documentation built on May 17, 2019, 5:53 p.m.