plotGain: Attribute Evaluators.

Description Usage Arguments Examples

View source: R/AStrap.R

Description

Using function InfoGainAttributeEval from Rweka to evaluate the worth of an attribute by measuring the information gain with respect to the class.

Usage

1
plotGain(trainset, num)

Arguments

trainset

The training data set.

num

The number of top features based on the entropy value can be display in figure.

Examples

1
2
3
4
5
##Loading example data
rice_model<- load(system.file("data","rice_model.Rdata",package = "AStrap"))
library(RWeka)
library(ggplot2)
plotGain(trainset,20)

BMILAB/AStrap documentation built on Nov. 20, 2020, 4:03 p.m.