public class TrainingDatasetBase extends Object
Modifier and Type | Field and Description |
---|---|
protected Boolean |
coalesce |
protected DataFormat |
dataFormat |
protected String |
description |
protected Date |
eventEndTime |
protected Date |
eventStartTime |
protected FilterLogic |
extraFilter |
protected List<TrainingDatasetFeature> |
features |
protected FeatureStoreBase |
featureStore |
protected Integer |
id |
protected List<String> |
label |
protected String |
location |
protected static org.slf4j.Logger |
LOGGER |
protected String |
name |
protected Long |
seed |
protected List<Split> |
splits |
protected StatisticsConfig |
statisticsConfig |
protected StorageConnector |
storageConnector |
protected TrainingDatasetType |
trainingDatasetType |
protected String |
trainSplit |
protected String |
type |
protected Integer |
version |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
void |
addTag(String name,
Object value)
Add name/value tag to the training dataset.
|
void |
delete()
Delete training dataset and all associated metadata.
|
void |
deleteTag(String name)
Delete a tag of the training dataset.
|
List<String> |
getLabel() |
Statistics |
getStatistics()
Get the last statistics commit for the training dataset.
|
Statistics |
getStatistics(String commitTime)
Get the statistics of a specific commit time for the training dataset.
|
Object |
getTag(String name)
Get a single tag value of the training dataset.
|
Map<String,Object> |
getTags()
Get all tags of the training dataset.
|
TrainingDatasetType |
getTrainingDatasetType(StorageConnector storageConnector) |
void |
setLabel(List<String> label) |
void |
setTimeSeriesSplits(Integer timeSplitSize,
String trainStart,
String trainEnd,
String valStart,
String valEnd,
String testStart,
String testEnd) |
void |
setValTestSplit(Float valSize,
Float testSize) |
protected Integer id
protected String name
protected Integer version
protected String description
protected Boolean coalesce
protected TrainingDatasetType trainingDatasetType
protected List<TrainingDatasetFeature> features
protected FeatureStoreBase featureStore
protected String location
protected Long seed
protected String trainSplit
protected Date eventStartTime
protected Date eventEndTime
protected FilterLogic extraFilter
protected DataFormat dataFormat
protected StorageConnector storageConnector
protected StatisticsConfig statisticsConfig
protected String type
protected static final org.slf4j.Logger LOGGER
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) throws FeatureStoreException, ParseException
FeatureStoreException
ParseException
public void setTimeSeriesSplits(Integer timeSplitSize, String trainStart, String trainEnd, String valStart, String valEnd, String testStart, String testEnd) throws FeatureStoreException, ParseException
FeatureStoreException
ParseException
public TrainingDatasetType getTrainingDatasetType(StorageConnector storageConnector)
public Statistics getStatistics() throws FeatureStoreException, IOException
FeatureStoreException
IOException
public Statistics getStatistics(String commitTime) throws FeatureStoreException, IOException
commitTime
- commit time in the format "YYYYMMDDhhmmss"FeatureStoreException
IOException
public void addTag(String name, Object value) throws FeatureStoreException, IOException
name
- name of the tagvalue
- value of the tag. The value of a tag can be any valid json - primitives, arrays or json objectsFeatureStoreException
IOException
public Map<String,Object> getTags() throws FeatureStoreException, IOException
FeatureStoreException
IOException
public Object getTag(String name) throws FeatureStoreException, IOException
name
- name of the tagFeatureStoreException
IOException
public void deleteTag(String name) throws FeatureStoreException, IOException
name
- name of the tag to be deletedFeatureStoreException
IOException
public void delete() throws FeatureStoreException, IOException
FeatureStoreException
IOException
Copyright © 2025. All rights reserved.