@Deprecated public class Dataset extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Dataset.Attribute
Deprecated.
Attributes type
|
Modifier | Constructor and Description |
---|---|
protected |
Dataset()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Deprecated.
|
static Dataset |
fromJSON(String json)
Deprecated.
De-serialize an instance from a string
|
Dataset.Attribute |
getAttribute(int attr)
Deprecated.
|
int[] |
getIgnored()
Deprecated.
|
double |
getLabel(Instance instance)
Deprecated.
|
int |
getLabelId()
Deprecated.
|
String |
getLabelString(double code)
Deprecated.
Returns the label value in the data
This method can be used when the criterion variable is the categorical attribute.
|
int |
hashCode()
Deprecated.
|
boolean |
isNumerical(int attr)
Deprecated.
Is this a numerical attribute ?
|
int |
labelCode(String label)
Deprecated.
Returns the code used to represent the label value in the data
|
String[] |
labels()
Deprecated.
|
static Dataset |
load(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path path)
Deprecated.
Loads the dataset from a file
|
int |
nbAttributes()
Deprecated.
|
int |
nblabels()
Deprecated.
|
int |
nbValues(int attr)
Deprecated.
|
String |
toJSON()
Deprecated.
Serialize this instance to JSON
|
String |
toString()
Deprecated.
|
int |
valueOf(int attr,
String token)
Deprecated.
Converts a token to its corresponding integer code for a given attribute
|
public int nbValues(int attr)
public String[] labels()
public int nblabels()
public int getLabelId()
public double getLabel(Instance instance)
public Dataset.Attribute getAttribute(int attr)
public int labelCode(String label)
label
- label's value to codepublic String getLabelString(double code)
code
- label's codepublic int valueOf(int attr, String token)
attr
- attribute indexpublic int[] getIgnored()
public int nbAttributes()
public boolean isNumerical(int attr)
attr
- index of the attribute to checkpublic static Dataset load(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path path) throws IOException
IOException
public String toJSON()
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.