Package com.tibco.patterns.learn.api.hint
The model training suggestions (hints) are generated after a trained model has been saved. All suggestions implement the Hint interface.
There are two main types of hints: suggestions that ask to add more pairs to specific subsets (descendants of HintAddPairs) and suggestions that ask to review specific existing pairs (descendants of HintReviewPairs).
Each hint type has a static create() method that examines the state of the model and creates an instance of the specific Hint subclass if this suggestion is applicable. A null value is returned if the suggestion is not applicable to the current state of the model.
Hints to add more pairs have a family of specific RLink subsets that the pairs should be added to. The SubsetFamily class provides functionality to filter data table records that correspond to the specific RLink subset, thus assisting in selecting suitable record pairs for each suggested subset.
This package also contains DatasetStats and SubsetLabelPairMap classes that calculate statistics of a given dataset and help identify whether a new record pair is likely to be useful for training the model.
-
Interface Summary Interface Description Hint Any suggestion that is given to the user based on the current state of the project. -
Class Summary Class Description DatasetStats Stores statistics about existing pairs in a dataset, grouped by subset: the number of pairs with each label and the total number of labeled pairs.HintAddLabel Hint to add pairs for subsets that have too few True/False labels.HintAddPairs A hint to select additional record pairs for specified subsets.HintAddUnderrepr Hint to add pairs to subsets that are underrepresented in training dataset.HintAddUntrained Hint to add pairs to subsets that are present in validation dataset, but are not in training dataset.HintAddUntrainedInTable Hint to add pairs to subsets that are not found in either training or validation datasets, but are found in the data table.HintReviewContra A hint to review pairs that have contradicting pairs.HintReviewMislabeled A hint to review possibly mislabeled pairs.HintReviewPairs A hint to review the labels for a list of existing record pairs.SubsetFamily Stores a family (a set) of RLink subsets.SubsetLabelPairMap Stores a family (a set) of RLink subsets.