Package org.api4.java.ai.ml.core.dataset
Interface IDataset<I extends IInstance>
-
- All Superinterfaces:
java.util.Collection<I>,IDataSource<I>,IInstanceSchemaHandler,java.lang.Iterable<I>,java.util.List<I>
- All Known Subinterfaces:
IDyadRankingDataset,ILabeledDataset<I>,ILabelRankingDataset,IMultiLabelClassificationDataset<I>,IRankingDataset<O,I>,IRegressionDataset,ISingleLabelClassificationDataset
public interface IDataset<I extends IInstance> extends IDataSource<I>, java.util.List<I>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IDataset<I>createCopy()Creates a copy of the dataset with the same meta data.IDataset<I>createEmptyCopy()Creates an empty copy of the dataset with the same meta data.default java.lang.Class<?>getClassOfInstances()java.lang.Object[][]getFeatureMatrix()voidremoveColumn(int columnPos)voidremoveColumn(java.lang.String columnName)voidremoveColumn(IAttribute attribute)-
Methods inherited from interface org.api4.java.ai.ml.core.dataset.schema.IInstanceSchemaHandler
getAttribute, getInstanceSchema, getListOfAttributes, getNumAttributes
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
-
-
-
Method Detail
-
createEmptyCopy
IDataset<I> createEmptyCopy() throws DatasetCreationException, java.lang.InterruptedException
Description copied from interface:IDataSourceCreates an empty copy of the dataset with the same meta data.- Specified by:
createEmptyCopyin interfaceIDataSource<I extends IInstance>- Returns:
- The newly created dataset.
- Throws:
DatasetCreationException- Thrown, if an issue occurred while copying the meta data of the dataset.java.lang.InterruptedException- Thrown, if the process of copying the meta data of the dataset has been interrupted.
-
createCopy
IDataset<I> createCopy() throws DatasetCreationException, java.lang.InterruptedException
Description copied from interface:IDataSourceCreates a copy of the dataset with the same meta data.- Specified by:
createCopyin interfaceIDataSource<I extends IInstance>- Returns:
- The newly created dataset.
- Throws:
DatasetCreationException- Thrown, if an issue occurred while copying the meta data of the dataset.java.lang.InterruptedException- Thrown, if the process of copying the meta data of the dataset has been interrupted.
-
getClassOfInstances
default java.lang.Class<?> getClassOfInstances()
-
getFeatureMatrix
java.lang.Object[][] getFeatureMatrix()
-
removeColumn
void removeColumn(int columnPos)
-
removeColumn
void removeColumn(java.lang.String columnName)
-
removeColumn
void removeColumn(IAttribute attribute)
-
-