Package com.logicalclocks.hsfs
Class TrainingDatasetBase
java.lang.Object
com.logicalclocks.hsfs.TrainingDatasetBase
- Direct Known Subclasses:
TrainingDataset
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected DataFormatprotected DataSourceprotected Stringprotected Dateprotected Dateprotected FilterLogicprotected List<TrainingDatasetFeature>protected FeatureStoreBaseprotected Integerprotected Stringprotected static final org.slf4j.Loggerprotected Stringprotected Longprotected StatisticsConfigprotected TrainingDatasetTypeprotected Stringprotected Stringprotected Integer -
Constructor Summary
ConstructorsConstructorDescriptionTrainingDatasetBase(Integer version, String description, DataFormat dataFormat, Boolean coalesce, StorageConnector storageConnector, String location, List<Split> splits, String trainSplit, Long seed, FeatureStoreBase featureStore, StatisticsConfig statisticsConfig, List<String> label, String eventStartTime, String eventEndTime, TrainingDatasetType trainingDatasetType, Float validationSize, Float testSize, String trainStart, String trainEnd, String validationStart, String validationEnd, String testStart, String testEnd, Integer timeSplitSize, FilterLogic extraFilterLogic, Filter extraFilter, DataSource dataSource) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd name/value tag to the training dataset.voiddelete()Delete training dataset and all associated metadata.voidDelete a tag of the training dataset.getLabel()Get the last statistics commit for the training dataset.getStatistics(String commitTime) Get the statistics of a specific commit time for the training dataset.Get a single tag value of the training dataset.getTags()Get all tags of the training dataset.getTrainingDatasetType(DataSource dataSource) voidvoidsetTimeSeriesSplits(Integer timeSplitSize, String trainStart, String trainEnd, String valStart, String valEnd, String testStart, String testEnd) voidsetValTestSplit(Float valSize, Float testSize)
-
Field Details
-
id
-
name
-
version
-
description
-
coalesce
-
trainingDatasetType
-
features
-
featureStore
-
location
-
seed
-
splits
-
trainSplit
-
label
-
eventStartTime
-
eventEndTime
-
extraFilter
-
dataFormat
-
dataSource
-
statisticsConfig
-
type
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
TrainingDatasetBase
public TrainingDatasetBase(Integer version, String description, DataFormat dataFormat, Boolean coalesce, StorageConnector storageConnector, String location, List<Split> splits, String trainSplit, Long seed, FeatureStoreBase featureStore, StatisticsConfig statisticsConfig, List<String> label, String eventStartTime, String eventEndTime, TrainingDatasetType trainingDatasetType, Float validationSize, Float testSize, String trainStart, String trainEnd, String validationStart, String validationEnd, String testStart, String testEnd, Integer timeSplitSize, FilterLogic extraFilterLogic, Filter extraFilter, DataSource dataSource) throws FeatureStoreException, ParseException - Throws:
FeatureStoreExceptionParseException
-
-
Method Details
-
setTimeSeriesSplits
public void setTimeSeriesSplits(Integer timeSplitSize, String trainStart, String trainEnd, String valStart, String valEnd, String testStart, String testEnd) throws FeatureStoreException, ParseException - Throws:
FeatureStoreExceptionParseException
-
setValTestSplit
-
getLabel
-
setLabel
-
getTrainingDatasetType
-
getStatistics
Get the last statistics commit for the training dataset.- Returns:
- statistics object of latest commit
- Throws:
FeatureStoreExceptionIOException
-
getStatistics
Get the statistics of a specific commit time for the training dataset.- Parameters:
commitTime- commit time in the format "YYYYMMDDhhmmss"- Returns:
- statistics object for the commit time
- Throws:
FeatureStoreExceptionIOException
-
addTag
Add name/value tag to the training dataset.- Parameters:
name- name of the tagvalue- value of the tag. The value of a tag can be any valid json - primitives, arrays or json objects- Throws:
FeatureStoreExceptionIOException
-
getTags
Get all tags of the training dataset.- Returns:
- a map of tag name and values. The value of a tag can be any valid json - primitives, arrays or json objects
- Throws:
FeatureStoreExceptionIOException
-
getTag
Get a single tag value of the training dataset.- Parameters:
name- name of the tag- Returns:
- The value of a tag can be any valid json - primitives, arrays or json objects
- Throws:
FeatureStoreExceptionIOException
-
deleteTag
Delete a tag of the training dataset.- Parameters:
name- name of the tag to be deleted- Throws:
FeatureStoreExceptionIOException
-
delete
Delete training dataset and all associated metadata. Note that this operation drops only files which were materialized in HopsFS. If you used a Storage Connector for a cloud storage such as S3, the data will not be deleted, but you will not be able to track it anymore from the Feature Store. This operation drops all metadata associated with this version of the training dataset and the materialized data in HopsFS.- Throws:
FeatureStoreExceptionIOException
-