Learn R Programming

SDR (version 0.7.0.0)

read.keel: Reads a KEEL data format file or an ARFF data format file.

Description

This function reads a KEEL (.dat) or ARFF (.arff) dataset file and store the information in a keel class. This function also create fuzzy sets definitions for numeric variables for execute in SDIGA, MESDIF, NMEEF-SD and FuGePSD algorithms

Usage

read.keel(file)

Arguments

file
The path of the file in KEEL ".dat" or ARFF format

Details

A KEEL data file must have the following structure:
  • @relation: Name of the data set
  • @attribute: Description of an attribute (one for each attribute)
  • @inputs: List with the names of the input attributes
  • @output: Name of the output attribute (Not used in this algorithms implementation)
  • @data: Starting tag of the data

The rest of the file contains all the examples belonging to the data set, expressed in comma sepparated values format. ARFF file format is a well-know dataset format from WEKA data mining tool.

References

J. Alcala-Fdez, A. Fernandez, J. Luengo, J. Derrac, S. Garcia, L. Sanchez, F. Herrera. KEEL Data-Mining Software Tool: Data Set Repository, Integration of Algorithms and Experimental Analysis Framework. Journal of Multiple-Valued Logic and Soft Computing 17:2-3 (2011) 255-287.

See Also

KEEL Dataset Repository (Standard Classification): http://sci2s.ugr.es/keel/category.php?cat=clas

Examples

Run this code
## Not run: 
#        Reads a KEEL dataset from a file.
#        read.keel(file = "C:\KEELFile.dat")
# 
#        read.keel(file = "C:\KEELFile.dat", nLabels = 7)
# 
#      Reads an ARFF dataset from a file.
#        read.keel(file = "C:\ARFFFile.arff")
# 
#        read.keel(file = "C:\ARFFFile.arff", nLabels = 7)
#     ## End(Not run)

Run the code above in your browser using DataLab