public final class ListDataSet extends Object implements DataSet
| Constructor and Description |
|---|
ListDataSet(int inputSize) |
ListDataSet(int inputSize,
int targetSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(DataExample data) |
boolean |
addAll(Collection<? extends DataExample> collection) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> collection) |
boolean |
equals(Object obj) |
DataExample |
get(int index)
Returns a data example at specified position.
|
int |
getInputSize()
Returns the size of input vectors in this data set.
|
int |
getTargetSize()
Return the size of target vectors in this data set.
|
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isSupervised()
Returns
true if this data set is supervised. |
Iterator<DataExample> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public ListDataSet(int inputSize,
int targetSize)
public ListDataSet(int inputSize)
public boolean add(DataExample data)
add in interface Collection<DataExample>public boolean addAll(Collection<? extends DataExample> collection)
addAll in interface Collection<DataExample>public void clear()
clear in interface Collection<DataExample>public boolean contains(Object o)
contains in interface Collection<DataExample>public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<DataExample>public boolean remove(Object o)
remove in interface Collection<DataExample>public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<DataExample>public boolean retainAll(Collection<?> collection)
retainAll in interface Collection<DataExample>public DataExample get(int index)
DataSetpublic Iterator<DataExample> iterator()
iterator in interface Iterable<DataExample>iterator in interface Collection<DataExample>public int size()
size in interface Collection<DataExample>public boolean isEmpty()
isEmpty in interface Collection<DataExample>public Object[] toArray()
toArray in interface Collection<DataExample>public <T> T[] toArray(T[] a)
toArray in interface Collection<DataExample>public int getInputSize()
DataSetgetInputSize in interface DataSetpublic int getTargetSize()
DataSetgetTargetSize in interface DataSetpublic boolean isSupervised()
DataSettrue if this data set is supervised. The data
set is supervised if and only if all underlying data examples are supervised.isSupervised in interface DataSettrue if this data set is supervisedpublic boolean equals(Object obj)
equals in interface Collection<DataExample>equals in class Objectpublic int hashCode()
hashCode in interface Collection<DataExample>hashCode in class ObjectCopyright © 2012. All Rights Reserved.