CKnowledgeBase {FKBL}R Documentation

Creates a Knowledge Base

Description

This is the implementation in R of a Knowledge Base. It provides a wrapper to create the appropriate list with the appropriate codes. Also, it does several checks to ensure the conrcondance between the rules and partitions. Basically it checks there are at least one rule provided, the rules must have the same amount of variables and there must be a partition for each variable in the rule.

Usage

 CKnowledgeBase(R,P,ncls=NULL, error=1)

Arguments

Takes the rules, the partitions, and the number of classes.

R The rules.
P The partitions.
ncls The number of classes, optional, as it is calculated automatically.
error The error obtained with the train data and the Knowledge Base.

Value

Returns a list, with the set of rules, the set of partitions, the number of classes and the error in training.
list(Rules=R, Partitions=P, numClasses=as.integer(ncls), error=as.double(error))

Examples

 data(R)
 data(P)
 CKnowledgeBase(R,P) # ncls=3

[Package FKBL version 0.50-4 Index]