Description Usage Arguments Details Author(s) References See Also Examples
This function reads a KEEL (.dat), ARFF (.arff) or CSV dataset file and store the information
in a SDEFSR_Dataset
class.
1 | read.dataset(file, sep = ",", quote = "\"", dec = ".", na.strings = "?")
|
file |
The path of the file to read |
sep |
The separator character to use |
quote |
The character used to take quotes |
dec |
The character used to define decimal characters |
na.strings |
The character to detect lost data |
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. CSV is a format which means comma-separated values. Where each examples is on a line and each value of the variables of the examples are separated by commas.
Angel M. Garcia <agvico@ujaen.es>
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.
KEEL Dataset Repository (Standard Classification): https://sci2s.ugr.es/keel/category.php?cat=clas
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
Reads a KEEL dataset from a file.
read.dataset(file = "C:\KEELFile.dat")
read.dataset(file = "C:\KEELFile.dat", nLabels = 7)
Reads an ARFF dataset from a file.
read.dataset(file = "C:\ARFFFile.arff")
read.dataset(file = "C:\ARFFFile.arff", nLabels = 7)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.