@e-llm-studio/citation 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/AccordianHeadTest.d.ts +2 -0
- package/dist/AccordianHeadTest.d.ts.map +1 -0
- package/dist/App.d.ts +4 -0
- package/dist/App.d.ts.map +1 -0
- package/dist/CodeCitationTest.d.ts +3 -0
- package/dist/CodeCitationTest.d.ts.map +1 -0
- package/dist/CommonComponents/AccordianHead/AccordianHead.d.ts +9 -0
- package/dist/CommonComponents/AccordianHead/AccordianHead.d.ts.map +1 -0
- package/dist/CommonComponents/CustomDropdown.d.ts +11 -0
- package/dist/CommonComponents/CustomDropdown.d.ts.map +1 -0
- package/dist/CommonComponents/HelloWorld.d.ts +2 -0
- package/dist/CommonComponents/HelloWorld.d.ts.map +1 -0
- package/dist/CommonComponents/NoTableData.d.ts +6 -0
- package/dist/CommonComponents/NoTableData.d.ts.map +1 -0
- package/dist/CommonConstants/CommonConstants.d.ts +5 -0
- package/dist/CommonConstants/CommonConstants.d.ts.map +1 -0
- package/dist/CustomStylesProvider.d.ts +6 -0
- package/dist/CustomStylesProvider.d.ts.map +1 -0
- package/dist/CustomThemeProvider.d.ts +7 -0
- package/dist/CustomThemeProvider.d.ts.map +1 -0
- package/dist/GoogleFilePickerDemo.d.ts +2 -0
- package/dist/GoogleFilePickerDemo.d.ts.map +1 -0
- package/dist/Pdf-editor/App.d.ts +3 -0
- package/dist/Pdf-editor/App.d.ts.map +1 -0
- package/dist/Pdf-editor/assets/svg/svg.d.ts +42 -0
- package/dist/Pdf-editor/assets/svg/svg.d.ts.map +1 -0
- package/dist/Pdf-editor/components/triggerWhenValueChangesAfterRender.component.d.ts +7 -0
- package/dist/Pdf-editor/components/triggerWhenValueChangesAfterRender.component.d.ts.map +1 -0
- package/dist/Pdf-editor/contexts/PdfEditorContextProvider.d.ts +10 -0
- package/dist/Pdf-editor/contexts/PdfEditorContextProvider.d.ts.map +1 -0
- package/dist/Pdf-editor/contexts/PdfEditorContextProviderTypes/addNewScale.type.d.ts +24 -0
- package/dist/Pdf-editor/contexts/PdfEditorContextProviderTypes/addNewScale.type.d.ts.map +1 -0
- package/dist/Pdf-editor/hooks/useForceReRender.d.ts +2 -0
- package/dist/Pdf-editor/hooks/useForceReRender.d.ts.map +1 -0
- package/dist/Pdf-editor/hooks/useIsHtmlElementHorizontallyOverflowing.d.ts +8 -0
- package/dist/Pdf-editor/hooks/useIsHtmlElementHorizontallyOverflowing.d.ts.map +1 -0
- package/dist/Pdf-editor/hooks/useIsHtmlElementInViewport.d.ts +11 -0
- package/dist/Pdf-editor/hooks/useIsHtmlElementInViewport.d.ts.map +1 -0
- package/dist/Pdf-editor/hooks/useIsHtmlElementNearViewport.d.ts +13 -0
- package/dist/Pdf-editor/hooks/useIsHtmlElementNearViewport.d.ts.map +1 -0
- package/dist/Pdf-editor/hooks/useIsShiftKeyPressed.d.ts +2 -0
- package/dist/Pdf-editor/hooks/useIsShiftKeyPressed.d.ts.map +1 -0
- package/dist/Pdf-editor/hooks/usePdfPagesCompletedCount.d.ts +10 -0
- package/dist/Pdf-editor/hooks/usePdfPagesCompletedCount.d.ts.map +1 -0
- package/dist/Pdf-editor/hooks/usePdfPagesCreationProgressStatus.d.ts +11 -0
- package/dist/Pdf-editor/hooks/usePdfPagesCreationProgressStatus.d.ts.map +1 -0
- package/dist/Pdf-editor/hooks/useUniqueStringGenerator.d.ts +8 -0
- package/dist/Pdf-editor/hooks/useUniqueStringGenerator.d.ts.map +1 -0
- package/dist/Pdf-editor/hooks/useValueSyncRef.d.ts +3 -0
- package/dist/Pdf-editor/hooks/useValueSyncRef.d.ts.map +1 -0
- package/dist/Pdf-editor/index.d.ts +5 -0
- package/dist/Pdf-editor/index.d.ts.map +1 -0
- package/dist/Pdf-editor/layout/ContentArea/ContentArea.d.ts +8 -0
- package/dist/Pdf-editor/layout/ContentArea/ContentArea.d.ts.map +1 -0
- package/dist/Pdf-editor/layout/ContentArea/PdfPages/PdfPage/PdfPage.component.d.ts +7 -0
- package/dist/Pdf-editor/layout/ContentArea/PdfPages/PdfPage/PdfPage.component.d.ts.map +1 -0
- package/dist/Pdf-editor/layout/ContentArea/PdfPages/PdfPage/ScaleCalibrationLine/ScaleCalibrationLine.d.ts +16 -0
- package/dist/Pdf-editor/layout/ContentArea/PdfPages/PdfPage/ScaleCalibrationLine/ScaleCalibrationLine.d.ts.map +1 -0
- package/dist/Pdf-editor/layout/ContentArea/PdfPages/PdfPages.d.ts +8 -0
- package/dist/Pdf-editor/layout/ContentArea/PdfPages/PdfPages.d.ts.map +1 -0
- package/dist/Pdf-editor/layout/LeftSideBar/LeftSideBar.d.ts +1 -0
- package/dist/Pdf-editor/layout/LeftSideBar/LeftSideBar.d.ts.map +1 -0
- package/dist/Pdf-editor/layout/PdfEditor/PdfEditor.d.ts +7 -0
- package/dist/Pdf-editor/layout/PdfEditor/PdfEditor.d.ts.map +1 -0
- package/dist/Pdf-editor/layout/TabBar/TabBar.d.ts +1 -0
- package/dist/Pdf-editor/layout/TabBar/TabBar.d.ts.map +1 -0
- package/dist/Pdf-editor/layout/Toolbar/Toolbar.d.ts +3 -0
- package/dist/Pdf-editor/layout/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/Pdf-editor/main.d.ts +2 -0
- package/dist/Pdf-editor/main.d.ts.map +1 -0
- package/dist/Pdf-editor/services/Constants.d.ts +4 -0
- package/dist/Pdf-editor/services/Constants.d.ts.map +1 -0
- package/dist/Pdf-editor/services/EnvVarService.d.ts +6 -0
- package/dist/Pdf-editor/services/EnvVarService.d.ts.map +1 -0
- package/dist/Pdf-editor/services/ImageHelperService.d.ts +10 -0
- package/dist/Pdf-editor/services/ImageHelperService.d.ts.map +1 -0
- package/dist/Pdf-editor/services/ImageService.d.ts +15 -0
- package/dist/Pdf-editor/services/ImageService.d.ts.map +1 -0
- package/dist/Pdf-editor/services/NumberService.d.ts +5 -0
- package/dist/Pdf-editor/services/NumberService.d.ts.map +1 -0
- package/dist/Pdf-editor/services/PdfEditorService.d.ts +84 -0
- package/dist/Pdf-editor/services/PdfEditorService.d.ts.map +1 -0
- package/dist/Pdf-editor/services/PdfEditorServiceTypes/annotationApisResponse.type.d.ts +22 -0
- package/dist/Pdf-editor/services/PdfEditorServiceTypes/annotationApisResponse.type.d.ts.map +1 -0
- package/dist/Pdf-editor/services/PdfEditorServiceTypes/fetchOnlyPdfDataMethodResponse.type.d.ts +15 -0
- package/dist/Pdf-editor/services/PdfEditorServiceTypes/fetchOnlyPdfDataMethodResponse.type.d.ts.map +1 -0
- package/dist/Pdf-editor/services/PdfEditorServiceTypes/fetchOnlyPdfPagesDataMethodResponse.type.d.ts +5 -0
- package/dist/Pdf-editor/services/PdfEditorServiceTypes/fetchOnlyPdfPagesDataMethodResponse.type.d.ts.map +1 -0
- package/dist/Pdf-editor/services/PdfEditorServiceTypes/fetchPdfScalesApiResponse.type.d.ts +5 -0
- package/dist/Pdf-editor/services/PdfEditorServiceTypes/fetchPdfScalesApiResponse.type.d.ts.map +1 -0
- package/dist/Pdf-editor/services/PdfEditorServiceTypes/genericTypes.d.ts +18 -0
- package/dist/Pdf-editor/services/PdfEditorServiceTypes/genericTypes.d.ts.map +1 -0
- package/dist/Pdf-editor/services/QueryParamsService.d.ts +4 -0
- package/dist/Pdf-editor/services/QueryParamsService.d.ts.map +1 -0
- package/dist/Pdf-editor/services/TimeService.d.ts +4 -0
- package/dist/Pdf-editor/services/TimeService.d.ts.map +1 -0
- package/dist/Pdf-editor/services/UniqueIdGenerator.d.ts +4 -0
- package/dist/Pdf-editor/services/UniqueIdGenerator.d.ts.map +1 -0
- package/dist/Pdf-editor/theme.d.ts +1 -0
- package/dist/Pdf-editor/theme.d.ts.map +1 -0
- package/dist/Pdf-editor/types/contexts/PdfAnnotationContext.types.d.ts +185 -0
- package/dist/Pdf-editor/types/contexts/PdfAnnotationContext.types.d.ts.map +1 -0
- package/dist/context/DataSelectedContext.d.ts +73 -0
- package/dist/context/DataSelectedContext.d.ts.map +1 -0
- package/dist/features/CodeCitation/CodeCitation.d.ts +31 -0
- package/dist/features/CodeCitation/CodeCitation.d.ts.map +1 -0
- package/dist/features/CodeCitation/_components/CodeCitationPopup.d.ts +26 -0
- package/dist/features/CodeCitation/_components/CodeCitationPopup.d.ts.map +1 -0
- package/dist/features/CodeCitation/_components/CodeEditor.d.ts +13 -0
- package/dist/features/CodeCitation/_components/CodeEditor.d.ts.map +1 -0
- package/dist/features/CodeCitation/_components/ThemeToggle.d.ts +8 -0
- package/dist/features/CodeCitation/_components/ThemeToggle.d.ts.map +1 -0
- package/dist/features/DataSelector/DataSelector.d.ts +18 -0
- package/dist/features/DataSelector/DataSelector.d.ts.map +1 -0
- package/dist/features/DataSelector/components/DataSelectionOptionsScreen.d.ts +3 -0
- package/dist/features/DataSelector/components/DataSelectionOptionsScreen.d.ts.map +1 -0
- package/dist/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts +3 -0
- package/dist/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts.map +1 -0
- package/dist/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts +3 -0
- package/dist/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts.map +1 -0
- package/dist/features/DataSelector/components/RlefDataTabsComponent.d.ts +3 -0
- package/dist/features/DataSelector/components/RlefDataTabsComponent.d.ts.map +1 -0
- package/dist/features/DataSelector/components/RlefHistoricalCopilotData.d.ts +3 -0
- package/dist/features/DataSelector/components/RlefHistoricalCopilotData.d.ts.map +1 -0
- package/dist/features/DataSelector/components/SavedDataSetListScreen.d.ts +13 -0
- package/dist/features/DataSelector/components/SavedDataSetListScreen.d.ts.map +1 -0
- package/dist/features/DataSelector/components/SelectedDataList.d.ts +3 -0
- package/dist/features/DataSelector/components/SelectedDataList.d.ts.map +1 -0
- package/dist/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts +11 -0
- package/dist/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts.map +1 -0
- package/dist/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts +7 -0
- package/dist/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts.map +1 -0
- package/dist/features/DataSelector/tables/ShowSelectedDataTable.d.ts +4 -0
- package/dist/features/DataSelector/tables/ShowSelectedDataTable.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts +3 -0
- package/dist/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts +9 -0
- package/dist/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts +3 -0
- package/dist/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts +9 -0
- package/dist/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts +42 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts +8 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts +13 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts +10 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts +21 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/FilterHandlerUtility.d.ts +33 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/FilterHandlerUtility.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts +19 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts +19 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts +17 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts +26 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts +11 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/RELFInterfaces.d.ts +3 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/RELFInterfaces.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts +3 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts +9 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts +1108 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts +57 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts +643 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts +24 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts +283 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts +58 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts +20 -0
- package/dist/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts +3 -0
- package/dist/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts.map +1 -0
- package/dist/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts +9 -0
- package/dist/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts.map +1 -0
- package/dist/features/UploadData/NotFound.d.ts +4 -0
- package/dist/features/UploadData/NotFound.d.ts.map +1 -0
- package/dist/features/UploadData/main.d.ts +10 -0
- package/dist/features/UploadData/main.d.ts.map +1 -0
- package/dist/hooks/useDebounce.d.ts +2 -0
- package/dist/hooks/useDebounce.d.ts.map +1 -0
- package/dist/hooks/useTableHeadCellsCount.d.ts +6 -0
- package/dist/hooks/useTableHeadCellsCount.d.ts.map +1 -0
- package/dist/hooks/useURLQuery.d.ts +10 -0
- package/dist/hooks/useURLQuery.d.ts.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +45 -0
- package/dist/index.js +45 -0
- package/dist/methodsToExpose.d.ts +13 -0
- package/dist/methodsToExpose.d.ts.map +1 -0
- package/dist/routes/ErrorBoundary.d.ts +20 -0
- package/dist/routes/ErrorBoundary.d.ts.map +1 -0
- package/dist/routes/Routes.d.ts +2 -0
- package/dist/routes/Routes.d.ts.map +1 -0
- package/dist/service/API.d.ts +6 -0
- package/dist/service/API.d.ts.map +1 -0
- package/dist/service/DataService.d.ts +73 -0
- package/dist/service/DataService.d.ts.map +1 -0
- package/dist/service/GoogleFilePickerService.d.ts +61 -0
- package/dist/service/GoogleFilePickerService.d.ts.map +1 -0
- package/dist/service/JavascriptFileService.d.ts +4 -0
- package/dist/service/JavascriptFileService.d.ts.map +1 -0
- package/dist/service/ModelService.d.ts +68 -0
- package/dist/service/ModelService.d.ts.map +1 -0
- package/dist/service/ProjectService.d.ts +16 -0
- package/dist/service/ProjectService.d.ts.map +1 -0
- package/dist/service/SavedDataSetService.d.ts +22 -0
- package/dist/service/SavedDataSetService.d.ts.map +1 -0
- package/dist/service/constants.d.ts +3 -0
- package/dist/service/constants.d.ts.map +1 -0
- package/dist/service/envHelperService.d.ts +5 -0
- package/dist/service/envHelperService.d.ts.map +1 -0
- package/dist/service/variableHelperService.d.ts +6 -0
- package/dist/service/variableHelperService.d.ts.map +1 -0
- package/dist/theme.d.ts +4 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/types/GoogleFilePicker/GoogleFilePickerCallbackFunctionType.d.ts +23 -0
- package/dist/types/GoogleFilePicker/GoogleFilePickerCallbackFunctionType.d.ts.map +1 -0
- package/dist/userProvidedConfig.d.ts +8 -0
- package/dist/userProvidedConfig.d.ts.map +1 -0
- package/dist/utils/CustomSkeleton.d.ts +3 -0
- package/dist/utils/CustomSkeleton.d.ts.map +1 -0
- package/dist/utils/SkeletonLoader.d.ts +7 -0
- package/dist/utils/SkeletonLoader.d.ts.map +1 -0
- package/dist/utils/api.d.ts +2 -0
- package/dist/utils/api.d.ts.map +1 -0
- package/dist/utils/codeCitations.utils.d.ts +2 -0
- package/dist/utils/codeCitations.utils.d.ts.map +1 -0
- package/dist/utils/colors.d.ts +5 -0
- package/dist/utils/colors.d.ts.map +1 -0
- package/dist/utils/date.d.ts +8 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/helperFunctions.d.ts +2 -0
- package/dist/utils/helperFunctions.d.ts.map +1 -0
- package/dist/utils/regexHelperService.d.ts +9 -0
- package/dist/utils/regexHelperService.d.ts.map +1 -0
- package/dist/utils/urlQueryParamService.d.ts +2 -0
- package/dist/utils/urlQueryParamService.d.ts.map +1 -0
- package/dist/utils/variableHelperService.d.ts +7 -0
- package/dist/utils/variableHelperService.d.ts.map +1 -0
- package/package.json +103 -0
|
@@ -0,0 +1,1108 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { collectionMetricsFromAiModelTestResultCSVApiResponse } from "../../../../../service/DataService";
|
|
3
|
+
import { FileMetaData } from "./common";
|
|
4
|
+
import { ICommonQueryParams, ICommonResponse, ICommonState } from "./common";
|
|
5
|
+
import { DataSetSortField, ResourceImageAnnotation, SortOrder, ResourceStatus, TrimmedText, ResourceImageGroupAnnotation, WordMetadata } from './data';
|
|
6
|
+
import { IModel, IModelType } from "./models";
|
|
7
|
+
export interface InputFieldState<ValueType> {
|
|
8
|
+
isPlanogram?: boolean;
|
|
9
|
+
value: ValueType;
|
|
10
|
+
isDirty?: boolean;
|
|
11
|
+
isTouched?: boolean;
|
|
12
|
+
errorMessage?: string;
|
|
13
|
+
canShowErrorToUser?: boolean;
|
|
14
|
+
inProgress?: boolean[];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Collection
|
|
18
|
+
*/
|
|
19
|
+
export type IParentDataSetCollection = {
|
|
20
|
+
_id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
export interface ICollection extends IParentDataSetCollection {
|
|
24
|
+
name: string;
|
|
25
|
+
tags: {
|
|
26
|
+
value: string;
|
|
27
|
+
}[];
|
|
28
|
+
image_data: string[];
|
|
29
|
+
_id: string;
|
|
30
|
+
model: string;
|
|
31
|
+
path_to_csv: string;
|
|
32
|
+
max_models?: string;
|
|
33
|
+
resources?: string[];
|
|
34
|
+
totalNoOfResources?: number;
|
|
35
|
+
max_runtime_secs_per_model?: string;
|
|
36
|
+
response_variable?: string;
|
|
37
|
+
created_at: string;
|
|
38
|
+
updated_at: string;
|
|
39
|
+
description: string;
|
|
40
|
+
isResourcesFileDownloadLinkBeingFetched?: boolean;
|
|
41
|
+
parentCollections?: IParentDataSetCollection[];
|
|
42
|
+
isDeleteHappening?: boolean;
|
|
43
|
+
created_by?: string;
|
|
44
|
+
dataBoost: number;
|
|
45
|
+
dataSetResourcesLabelCount?: IDatasetResourcesLabelCount[];
|
|
46
|
+
remarks?: {
|
|
47
|
+
text: string;
|
|
48
|
+
updated_at: string;
|
|
49
|
+
};
|
|
50
|
+
version?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface IDatasetResourcesLabelCount {
|
|
53
|
+
label: string;
|
|
54
|
+
count: number;
|
|
55
|
+
}
|
|
56
|
+
export interface IResourceAnalyticsCollection {
|
|
57
|
+
predictionStatus: "CORRECT" | "INCORRECT";
|
|
58
|
+
label: string;
|
|
59
|
+
_id: string;
|
|
60
|
+
resourceUrl: string;
|
|
61
|
+
referenceResourceId?: string;
|
|
62
|
+
spectrogram?: string;
|
|
63
|
+
annotations?: string;
|
|
64
|
+
prediction: string;
|
|
65
|
+
/** used only for resources which are part of bookTranslation Models */
|
|
66
|
+
originalLanguageParagraph?: string;
|
|
67
|
+
/** used only for resources which are part of imageAnnotation Models */
|
|
68
|
+
imageAnnotations?: ResourceImageAnnotation[];
|
|
69
|
+
/** applicable for audio model type */
|
|
70
|
+
startTime: number;
|
|
71
|
+
/** applicable for audio model type */
|
|
72
|
+
endTime: number;
|
|
73
|
+
/** applicable for audio model type */
|
|
74
|
+
status?: ResourceStatus;
|
|
75
|
+
/** applicable for audio / image / imageAnnotation / imageAnnotationGroup model types */
|
|
76
|
+
fileName?: string;
|
|
77
|
+
originalResource?: [];
|
|
78
|
+
confidence_score: number;
|
|
79
|
+
statusLastModifiedAt: string;
|
|
80
|
+
labels: ILabelConfidenceScore[];
|
|
81
|
+
dataSetCollections?: {
|
|
82
|
+
_id: string;
|
|
83
|
+
name: string;
|
|
84
|
+
}[];
|
|
85
|
+
modelCollectionSpecificData?: {
|
|
86
|
+
[modelCollectionId: string]: {
|
|
87
|
+
confidenceScore: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
/** applicable for DLP, bookTranslation model type */
|
|
91
|
+
resource?: string;
|
|
92
|
+
/** applicable for DLP model type */
|
|
93
|
+
trimmedTexts?: TrimmedText[];
|
|
94
|
+
resourceMetaData?: FileMetaData;
|
|
95
|
+
resource500WMetaData?: FileMetaData;
|
|
96
|
+
resource500WUrl?: string;
|
|
97
|
+
groundTruthAnnotations?: ResourceImageAnnotation[];
|
|
98
|
+
groundTruthImageAnnotationGroups?: ResourceImageGroupAnnotation[];
|
|
99
|
+
predictedImageAnnotationGroups?: ResourceImageGroupAnnotation[];
|
|
100
|
+
predictedAnnotations?: ResourceImageAnnotation[];
|
|
101
|
+
/** applicable for segmentation analytics */
|
|
102
|
+
groundTruthAnnotation?: ResourceImageAnnotation;
|
|
103
|
+
predictedAnnotation?: ResourceImageAnnotation;
|
|
104
|
+
/** applicable for segmentation analytics end */
|
|
105
|
+
iouScore?: number;
|
|
106
|
+
metadata?: string;
|
|
107
|
+
wordErrorRate?: number;
|
|
108
|
+
audioTranscriptionWordsMetadatas?: WordMetadata[];
|
|
109
|
+
analyticsPurposeModelData?: {
|
|
110
|
+
model?: {
|
|
111
|
+
name: string;
|
|
112
|
+
_id: string;
|
|
113
|
+
project: string;
|
|
114
|
+
type: IModelType;
|
|
115
|
+
};
|
|
116
|
+
isSegmentationModelAnalyticsEnabled?: boolean;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export interface IAnalyticsModelData {
|
|
120
|
+
analyticsAiAssistantDescription: string;
|
|
121
|
+
analyticsAiAssistantEnabled: JSX.Element;
|
|
122
|
+
status: IStatus;
|
|
123
|
+
testDatasetCollection: {
|
|
124
|
+
name: string;
|
|
125
|
+
};
|
|
126
|
+
trainingDatasetCollection: string[];
|
|
127
|
+
version: string;
|
|
128
|
+
modelType: IModelType;
|
|
129
|
+
model: IModel;
|
|
130
|
+
}
|
|
131
|
+
export interface IAnalyticsResourcesResponse {
|
|
132
|
+
modelCollection: IAnalyticsModelData;
|
|
133
|
+
resourcesData: {
|
|
134
|
+
resources: IResourceAnalyticsCollection[];
|
|
135
|
+
totalCount: number;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Action Payloads
|
|
140
|
+
*/
|
|
141
|
+
export type setIsDataSetCollectionResourcesFileDownloadLinkBeingFetchedActionPayload = {
|
|
142
|
+
dataSetCollectionId: string;
|
|
143
|
+
isDownloadLinkBeingFetched: boolean;
|
|
144
|
+
};
|
|
145
|
+
/** Model Collection Fields */
|
|
146
|
+
type IBackgroundFrequency = number;
|
|
147
|
+
type IBackgroundVolume = number;
|
|
148
|
+
type IBatchSize = number;
|
|
149
|
+
type IClipDuration = number;
|
|
150
|
+
type IDctCoefficientCount = number;
|
|
151
|
+
type IEvaluationStepInterval = number;
|
|
152
|
+
type ILearningRate = string;
|
|
153
|
+
export type IStatus = 'Queued' | 'Trained' | 'Failed' | 'Live' | "Training" | "Preparing Request" | "Re-Trained" | "Tested";
|
|
154
|
+
export type IAnalyticsScenario = "integrity" | "classAccuracy";
|
|
155
|
+
export type ITrainingDataDirectory = string;
|
|
156
|
+
export type ITestDataSet = string;
|
|
157
|
+
type ITrainingDataDirectories = ITrainingDataDirectory[];
|
|
158
|
+
type ITestDataSets = ITestDataSet[];
|
|
159
|
+
type ITestModelVersions = string[];
|
|
160
|
+
type IModelArchitecture = string;
|
|
161
|
+
type IModelDescription = string;
|
|
162
|
+
type IModelSizeInfo = string;
|
|
163
|
+
type ISampleRate = number;
|
|
164
|
+
type ISaveStepInterval = number;
|
|
165
|
+
type ISilencePercentage = number;
|
|
166
|
+
type IStartCheckpoint = string;
|
|
167
|
+
type ITestingPercentage = number;
|
|
168
|
+
type ITimeShift = number;
|
|
169
|
+
type ITrainingSteps = string;
|
|
170
|
+
type IUnknownPercentage = number;
|
|
171
|
+
type IValidationPercentage = number;
|
|
172
|
+
export type IModelCollectionVersion = string;
|
|
173
|
+
type IWindowSize = number;
|
|
174
|
+
type IWindowStride = number;
|
|
175
|
+
export type AnalyticsResourceView = "grid-view" | "list-view";
|
|
176
|
+
/** Model Collection Fields End */
|
|
177
|
+
export interface IModelCollectionAdditionalFile {
|
|
178
|
+
description: string;
|
|
179
|
+
name: string[];
|
|
180
|
+
_id: string;
|
|
181
|
+
fileObjects: {
|
|
182
|
+
fileName: string;
|
|
183
|
+
gcsFileName: string;
|
|
184
|
+
}[];
|
|
185
|
+
}
|
|
186
|
+
export interface ICachedMetrics {
|
|
187
|
+
accuracy: IAccuracy;
|
|
188
|
+
integrity: IIntegrity;
|
|
189
|
+
}
|
|
190
|
+
export interface IAccuracy {
|
|
191
|
+
accuracy: number;
|
|
192
|
+
iouThreshold: number;
|
|
193
|
+
}
|
|
194
|
+
export interface IIntegrity {
|
|
195
|
+
dataSetCollectionId?: string;
|
|
196
|
+
integrity: number;
|
|
197
|
+
confidenceScoreThreshold: number;
|
|
198
|
+
iouThreshold: number;
|
|
199
|
+
}
|
|
200
|
+
export interface IModelCollectionAnalysisFile {
|
|
201
|
+
accuracy: number;
|
|
202
|
+
description: string;
|
|
203
|
+
name: string[];
|
|
204
|
+
_id: string;
|
|
205
|
+
defaultDataSetCollectionName?: string;
|
|
206
|
+
defaultDataSetResourcesGcsFileName?: string;
|
|
207
|
+
fileObjects: {
|
|
208
|
+
fileName: string;
|
|
209
|
+
gcsFileName: string;
|
|
210
|
+
}[];
|
|
211
|
+
cachedMetrics: ICachedMetrics;
|
|
212
|
+
dataSetCollection: {
|
|
213
|
+
resources: string[];
|
|
214
|
+
};
|
|
215
|
+
segmentationStatistics?: {
|
|
216
|
+
F1: number;
|
|
217
|
+
IntegrityAccuracy: number;
|
|
218
|
+
Precision: number;
|
|
219
|
+
Recall: number;
|
|
220
|
+
integrityFrequency: number;
|
|
221
|
+
"Mean Average Precision": number;
|
|
222
|
+
"Average IoU": number;
|
|
223
|
+
Labels: {
|
|
224
|
+
[label: string]: {
|
|
225
|
+
F1: number;
|
|
226
|
+
IntegrityAccuracy: number;
|
|
227
|
+
"Mean Average Precision": number;
|
|
228
|
+
Precision: number;
|
|
229
|
+
Recall: number;
|
|
230
|
+
integrityFrequency: number;
|
|
231
|
+
"Average IoU": number;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
export interface IModelCollectionCheckpointFile {
|
|
237
|
+
description: string;
|
|
238
|
+
name: string;
|
|
239
|
+
isDefaultCheckpoint: boolean;
|
|
240
|
+
files: {
|
|
241
|
+
models: {
|
|
242
|
+
description: string;
|
|
243
|
+
name: string[];
|
|
244
|
+
_id: string;
|
|
245
|
+
fileObjects: {
|
|
246
|
+
fileName: string;
|
|
247
|
+
gcsFileName: string;
|
|
248
|
+
}[];
|
|
249
|
+
};
|
|
250
|
+
additionalFiles: IModelCollectionAdditionalFile[];
|
|
251
|
+
analysis: IModelCollectionAnalysisFile[];
|
|
252
|
+
};
|
|
253
|
+
_id: string;
|
|
254
|
+
gcsFileName?: string;
|
|
255
|
+
jsonFileData?: any;
|
|
256
|
+
}
|
|
257
|
+
export type reTestingStatusType = "preparingRequest" | "queued" | "failed";
|
|
258
|
+
export interface ITestCollectionAnalysisFile {
|
|
259
|
+
accuracy: number;
|
|
260
|
+
description: string;
|
|
261
|
+
name: string[];
|
|
262
|
+
_id: string;
|
|
263
|
+
defaultDataSetCollectionName?: string;
|
|
264
|
+
defaultDataSetResourcesGcsFileName?: string;
|
|
265
|
+
fileObjects: {
|
|
266
|
+
fileName: string;
|
|
267
|
+
gcsFileName: string;
|
|
268
|
+
}[];
|
|
269
|
+
}
|
|
270
|
+
export interface ITestCollectionCheckpointFile {
|
|
271
|
+
name?: string;
|
|
272
|
+
files: {
|
|
273
|
+
analysis: ITestCollectionAnalysisFile[];
|
|
274
|
+
};
|
|
275
|
+
_id: string;
|
|
276
|
+
gcsFileName?: string;
|
|
277
|
+
jsonFileData?: any;
|
|
278
|
+
}
|
|
279
|
+
export interface IReTestingDetails {
|
|
280
|
+
defaultDataSetCollectionId: string;
|
|
281
|
+
defaultDataSetCollectionName: string;
|
|
282
|
+
created_at: string;
|
|
283
|
+
status: reTestingStatusType;
|
|
284
|
+
}
|
|
285
|
+
export interface IReTestApiResponse {
|
|
286
|
+
reTestingDetails: IReTestingDetails;
|
|
287
|
+
AlreadyInProgress: boolean;
|
|
288
|
+
}
|
|
289
|
+
export interface IReTestingRequestPayload {
|
|
290
|
+
modelCollectionId: string;
|
|
291
|
+
forceReTest: boolean;
|
|
292
|
+
}
|
|
293
|
+
export interface IReTestingDetailsUpdate {
|
|
294
|
+
id: string;
|
|
295
|
+
reTestingDetail: IReTestingDetails;
|
|
296
|
+
}
|
|
297
|
+
export interface IModelCollection {
|
|
298
|
+
testDataSet: ITestDataSets;
|
|
299
|
+
accuracy?: number;
|
|
300
|
+
defaultDataSetCollectionName?: string;
|
|
301
|
+
defaultDataSetCollectionId?: string;
|
|
302
|
+
defaultDataSetGcsFileName?: string;
|
|
303
|
+
jsonFileDataForAccuracy?: Object;
|
|
304
|
+
_id: string;
|
|
305
|
+
status: IStatus;
|
|
306
|
+
model: {
|
|
307
|
+
_id: string;
|
|
308
|
+
type: IModelType;
|
|
309
|
+
segmentationModelAnalyticsAccuracyMetric: string;
|
|
310
|
+
isSegmentationModelAnalytics: boolean;
|
|
311
|
+
project: {
|
|
312
|
+
_id: string;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
trainingDataDirectory: ITrainingDataDirectories;
|
|
316
|
+
modelArchitecture: IModelArchitecture;
|
|
317
|
+
hyperParameter: string;
|
|
318
|
+
modelDescription: IModelDescription;
|
|
319
|
+
startCheckpoint: IStartCheckpoint;
|
|
320
|
+
startCheckpointFileName?: string;
|
|
321
|
+
startCheckpointFileGCSName?: string;
|
|
322
|
+
startCheckpointFileModelCollectionVersion?: string;
|
|
323
|
+
version: IModelCollectionVersion;
|
|
324
|
+
checkpointFiles: IModelCollectionCheckpointFile[];
|
|
325
|
+
resourcesFileName: string;
|
|
326
|
+
resourcesGcsFileName: string;
|
|
327
|
+
populatedDefaultDataSetCollection?: {
|
|
328
|
+
name?: string;
|
|
329
|
+
};
|
|
330
|
+
numberOfLayersToFreeze?: number;
|
|
331
|
+
created_at: string;
|
|
332
|
+
created_by?: string;
|
|
333
|
+
updated_at: string;
|
|
334
|
+
last_deployed_at?: string;
|
|
335
|
+
reTestingDetail?: IReTestingDetails;
|
|
336
|
+
remarks?: {
|
|
337
|
+
text: string;
|
|
338
|
+
updated_at: string;
|
|
339
|
+
};
|
|
340
|
+
projectName?: string;
|
|
341
|
+
modelName?: string;
|
|
342
|
+
resourceFileDownloadURL?: string;
|
|
343
|
+
defaultDatasetCollectionFileDownloadURL?: string;
|
|
344
|
+
modelCollections: any[];
|
|
345
|
+
trainedModelCollectionPopupQnA?: trainedModelCollectionPopupQnA;
|
|
346
|
+
QnAPopupLastSnoozedAt?: string;
|
|
347
|
+
resourcesFileUrl?: string;
|
|
348
|
+
tags: {
|
|
349
|
+
value: string;
|
|
350
|
+
}[];
|
|
351
|
+
trainingCompletionPercentages?: {
|
|
352
|
+
completionPercentage: Number;
|
|
353
|
+
testDataSetCollectionId: string;
|
|
354
|
+
}[];
|
|
355
|
+
}
|
|
356
|
+
export interface trainedModelCollectionPopupQnA {
|
|
357
|
+
[name: string]: {
|
|
358
|
+
question: string;
|
|
359
|
+
answer: string;
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
export interface ParentCollection {
|
|
363
|
+
_id: string;
|
|
364
|
+
name: string;
|
|
365
|
+
}
|
|
366
|
+
export interface TestDataSetCollection {
|
|
367
|
+
_id: string;
|
|
368
|
+
resources?: string[];
|
|
369
|
+
resourcesFileName?: string;
|
|
370
|
+
description?: string;
|
|
371
|
+
name?: string;
|
|
372
|
+
model?: string;
|
|
373
|
+
parentCollections?: ParentCollection[];
|
|
374
|
+
created_at?: Date;
|
|
375
|
+
updated_at: Date;
|
|
376
|
+
}
|
|
377
|
+
export interface TestFile {
|
|
378
|
+
isDefaultCheckpoint?: boolean;
|
|
379
|
+
description?: string;
|
|
380
|
+
name: string;
|
|
381
|
+
_id: string;
|
|
382
|
+
url: string;
|
|
383
|
+
}
|
|
384
|
+
export interface PopulatedModelCollection {
|
|
385
|
+
_id: string;
|
|
386
|
+
status?: string;
|
|
387
|
+
trainingDataDirectory?: string[];
|
|
388
|
+
startCheckpoint?: string;
|
|
389
|
+
model?: string;
|
|
390
|
+
modelArchitecture?: string;
|
|
391
|
+
modelDescription?: string;
|
|
392
|
+
version: number;
|
|
393
|
+
checkpointFiles: TestFile[];
|
|
394
|
+
created_at?: Date | string;
|
|
395
|
+
updated_at?: Date | string;
|
|
396
|
+
}
|
|
397
|
+
export interface ITestCollection {
|
|
398
|
+
_id: string;
|
|
399
|
+
status: IStatus;
|
|
400
|
+
model?: {
|
|
401
|
+
_id: string;
|
|
402
|
+
project: string;
|
|
403
|
+
};
|
|
404
|
+
version: number;
|
|
405
|
+
files?: TestFile[];
|
|
406
|
+
modelCollections?: TestModelCollectionPayload[];
|
|
407
|
+
description?: string;
|
|
408
|
+
created_at?: string;
|
|
409
|
+
updated_at?: string;
|
|
410
|
+
dataSetCollection?: TestDataSetCollection;
|
|
411
|
+
resourcesFileName?: string;
|
|
412
|
+
checkpointFiles: ITestCollectionCheckpointFile[];
|
|
413
|
+
populatedModelCollections: PopulatedModelCollection[];
|
|
414
|
+
resourcesFileUrl?: string;
|
|
415
|
+
created_by?: string;
|
|
416
|
+
remarks?: {
|
|
417
|
+
text: string;
|
|
418
|
+
updated_at: string;
|
|
419
|
+
};
|
|
420
|
+
testDataSet?: ITestDataSets | undefined;
|
|
421
|
+
trainingDataDirectory?: ITrainingDataDirectories;
|
|
422
|
+
modelArchitecture?: IModelArchitecture;
|
|
423
|
+
hyperParameter?: string;
|
|
424
|
+
modelDescription?: IModelDescription;
|
|
425
|
+
startCheckpoint?: IStartCheckpoint;
|
|
426
|
+
resourcesGcsFileName?: string;
|
|
427
|
+
projectName?: string;
|
|
428
|
+
modelName?: string;
|
|
429
|
+
testedCollectionPopupQnA?: trainedModelCollectionPopupQnA;
|
|
430
|
+
QnAPopupLastSnoozedAt?: string;
|
|
431
|
+
}
|
|
432
|
+
export interface TestModelCollectionPayload {
|
|
433
|
+
modelCollection: string;
|
|
434
|
+
modelCollectionCheckpointFile: string;
|
|
435
|
+
}
|
|
436
|
+
export interface ITestCollectionRequestPayload {
|
|
437
|
+
model: string;
|
|
438
|
+
version: string;
|
|
439
|
+
dataSetCollectionIds: string[];
|
|
440
|
+
modelCollections: TestModelCollectionPayload[];
|
|
441
|
+
description: string;
|
|
442
|
+
}
|
|
443
|
+
export interface IAddCollection {
|
|
444
|
+
title: string;
|
|
445
|
+
}
|
|
446
|
+
export interface IAddCollectionPayload {
|
|
447
|
+
name: string;
|
|
448
|
+
model: string;
|
|
449
|
+
project?: string;
|
|
450
|
+
tags?: string[];
|
|
451
|
+
description: string;
|
|
452
|
+
remarks?: {
|
|
453
|
+
text: string;
|
|
454
|
+
};
|
|
455
|
+
copyResourceLabelsFrom?: {
|
|
456
|
+
dataSetCollectionId: string;
|
|
457
|
+
labelsToNotIncludeInResources: string[];
|
|
458
|
+
labelsCountToSetInRandomOrder: {
|
|
459
|
+
label: string;
|
|
460
|
+
count: number;
|
|
461
|
+
}[];
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
export interface IDatasetCollectionPayload {
|
|
465
|
+
id: string;
|
|
466
|
+
description?: string;
|
|
467
|
+
tags?: string[];
|
|
468
|
+
remarks?: string;
|
|
469
|
+
}
|
|
470
|
+
export interface IModelCollectionPayload {
|
|
471
|
+
id: string;
|
|
472
|
+
modelDescription?: string;
|
|
473
|
+
remarks?: string;
|
|
474
|
+
tags?: string[];
|
|
475
|
+
trainedModelCollectionPopupQnA?: trainedModelCollectionPopupQnA;
|
|
476
|
+
QnAPopupLastSnoozedAt?: string;
|
|
477
|
+
hasUserSeenIncorrectPrediction?: boolean;
|
|
478
|
+
trainingCompletionPercentages?: {
|
|
479
|
+
completionPercentage: Number;
|
|
480
|
+
testDataSetCollectionId: string;
|
|
481
|
+
}[];
|
|
482
|
+
}
|
|
483
|
+
export interface ITestCollectionPayload {
|
|
484
|
+
id: string;
|
|
485
|
+
remarks?: string;
|
|
486
|
+
hasUserSeenIncorrectPrediction?: boolean;
|
|
487
|
+
testedCollectionPopupQnA?: trainedModelCollectionPopupQnA;
|
|
488
|
+
QnAPopupLastSnoozedAt?: string;
|
|
489
|
+
}
|
|
490
|
+
export type ModelCollectionDeployApiRequestPayload = {
|
|
491
|
+
modelCollectionId: string;
|
|
492
|
+
modelCollectionParentCheckpointFileId: string;
|
|
493
|
+
modelCollectionModelFileName: string;
|
|
494
|
+
trainingDataSetCollection: {
|
|
495
|
+
name: string;
|
|
496
|
+
};
|
|
497
|
+
testDataSetCollection: {
|
|
498
|
+
name: string;
|
|
499
|
+
};
|
|
500
|
+
architecture: {
|
|
501
|
+
label: string;
|
|
502
|
+
};
|
|
503
|
+
modelCollectionDescription: string;
|
|
504
|
+
};
|
|
505
|
+
export interface IMergeCollectionPayload {
|
|
506
|
+
name: string;
|
|
507
|
+
model: string;
|
|
508
|
+
description: string;
|
|
509
|
+
parentCollections: {
|
|
510
|
+
_id: string;
|
|
511
|
+
}[];
|
|
512
|
+
}
|
|
513
|
+
export interface IDeleteCollectionPayload {
|
|
514
|
+
collections: string[];
|
|
515
|
+
iterateResource?: () => any;
|
|
516
|
+
}
|
|
517
|
+
export interface IDeleteCollectionConfirmPayload {
|
|
518
|
+
showConfirmDeleteModal: boolean;
|
|
519
|
+
collectionToDelete: ICollection | IModelCollection | ITestCollection | null;
|
|
520
|
+
multiDelete: boolean;
|
|
521
|
+
selectedCollectionIds: string[];
|
|
522
|
+
collectionType: collectionType;
|
|
523
|
+
deletedCollectionFromPopup?: boolean;
|
|
524
|
+
}
|
|
525
|
+
export type accuracyLive = {
|
|
526
|
+
_id: string;
|
|
527
|
+
name: string;
|
|
528
|
+
};
|
|
529
|
+
export interface IIntegrity {
|
|
530
|
+
_id: string;
|
|
531
|
+
isLive?: boolean;
|
|
532
|
+
matchesSuccessCriteria?: string;
|
|
533
|
+
totalDataSetsCount: number;
|
|
534
|
+
version: string;
|
|
535
|
+
accuracy: {
|
|
536
|
+
type: accuracyType;
|
|
537
|
+
value: number;
|
|
538
|
+
};
|
|
539
|
+
bands: IntegrityBand[];
|
|
540
|
+
wordErrorRateBands?: IWordErrorRateBand[];
|
|
541
|
+
model: IModel;
|
|
542
|
+
}
|
|
543
|
+
export interface IIndividualClassAccuracy {
|
|
544
|
+
_id: string;
|
|
545
|
+
status: string;
|
|
546
|
+
totalDataSetsCount: number;
|
|
547
|
+
version: string;
|
|
548
|
+
accuracy: {
|
|
549
|
+
type: accuracyType;
|
|
550
|
+
value: number;
|
|
551
|
+
};
|
|
552
|
+
classes: IIndividualClass[];
|
|
553
|
+
created_at: string;
|
|
554
|
+
}
|
|
555
|
+
export interface IntegrityBand {
|
|
556
|
+
band: string;
|
|
557
|
+
goodConfidenceScore: number;
|
|
558
|
+
noOfDataPoints: number;
|
|
559
|
+
totalGoodDataPointsCount?: number;
|
|
560
|
+
totalDataPointsCount?: number;
|
|
561
|
+
}
|
|
562
|
+
export interface IWordErrorRateBand {
|
|
563
|
+
band: string;
|
|
564
|
+
totalDataPointsCount: number;
|
|
565
|
+
}
|
|
566
|
+
export interface IIndividualClass {
|
|
567
|
+
class: string;
|
|
568
|
+
goodConfidenceScore: number;
|
|
569
|
+
noOfTrainingDataPoints: number;
|
|
570
|
+
totalTestDataSets: number;
|
|
571
|
+
}
|
|
572
|
+
export interface IDefaultDataSetCollection {
|
|
573
|
+
id: string;
|
|
574
|
+
name: string;
|
|
575
|
+
}
|
|
576
|
+
export interface IDeleteModelCollectionPayload {
|
|
577
|
+
collections: string[];
|
|
578
|
+
}
|
|
579
|
+
export type accuracyStatus = "preparingRequest" | "queued" | "failed" | "";
|
|
580
|
+
export interface IModelCollectionFetchApiQueryParams {
|
|
581
|
+
limit?: number;
|
|
582
|
+
model: string;
|
|
583
|
+
ids?: string[];
|
|
584
|
+
offset?: number;
|
|
585
|
+
shouldFetchLiveModelCollection?: boolean;
|
|
586
|
+
shouldCheckBestModelCollection?: boolean;
|
|
587
|
+
sortOrder?: string;
|
|
588
|
+
sortField?: string;
|
|
589
|
+
versions?: string[];
|
|
590
|
+
statuses?: string[];
|
|
591
|
+
trainingDataSetCollectionNames?: string[];
|
|
592
|
+
accuracyStatus?: accuracyStatus[];
|
|
593
|
+
accuracyMinValue?: string;
|
|
594
|
+
accuracyMaxValue?: string;
|
|
595
|
+
architectures?: string[];
|
|
596
|
+
createdAtMinValue?: string;
|
|
597
|
+
createdAtMaxValue?: string;
|
|
598
|
+
jsonFileData: "true";
|
|
599
|
+
shouldFetchModelName?: boolean;
|
|
600
|
+
shouldFetchProjectName?: boolean;
|
|
601
|
+
}
|
|
602
|
+
export interface IModelCollectionToCompareFetchApiQueryParams {
|
|
603
|
+
modelId: string;
|
|
604
|
+
}
|
|
605
|
+
export interface IBestModelCollectionPageQueryParams {
|
|
606
|
+
model: string;
|
|
607
|
+
sortField?: string;
|
|
608
|
+
sortOrder?: string;
|
|
609
|
+
limit?: number;
|
|
610
|
+
}
|
|
611
|
+
export interface IGetAnalyticsResourcesQueryParams {
|
|
612
|
+
offset?: number;
|
|
613
|
+
limit?: number;
|
|
614
|
+
modelId?: string;
|
|
615
|
+
label?: string;
|
|
616
|
+
modelCollectionId?: string;
|
|
617
|
+
bandsRange?: string;
|
|
618
|
+
sortBy?: string;
|
|
619
|
+
sortField?: string;
|
|
620
|
+
sortOrder?: string;
|
|
621
|
+
labelRegex?: string;
|
|
622
|
+
resourceConfidenceScoreMinValue?: string;
|
|
623
|
+
resourceConfidenceScoreMaxValue?: string;
|
|
624
|
+
wordErrorRateMax?: string;
|
|
625
|
+
wordErrorRateMin?: string;
|
|
626
|
+
resourceIouScoreMinValue?: string;
|
|
627
|
+
resourceIouScoreMaxValue?: string;
|
|
628
|
+
getSameHandFeedbackNotYetGiven?: string;
|
|
629
|
+
getSameHandWithMultipleIds?: string;
|
|
630
|
+
getSameHandWithNoMultipleIds?: string;
|
|
631
|
+
predictionStatusFilter?: string;
|
|
632
|
+
predictionRegex?: string;
|
|
633
|
+
/**
|
|
634
|
+
* only for test collection analysis scenario
|
|
635
|
+
*/
|
|
636
|
+
testCollectionId?: string;
|
|
637
|
+
/**
|
|
638
|
+
* used for segmentation analytics scenario
|
|
639
|
+
*/
|
|
640
|
+
iouThreshold?: string;
|
|
641
|
+
purposeModelId?: string;
|
|
642
|
+
/**
|
|
643
|
+
* Used for wordErrorRate Analytics
|
|
644
|
+
*/
|
|
645
|
+
wordErrorRateThreshold?: string;
|
|
646
|
+
}
|
|
647
|
+
export type GetIntegrityAPIModelCollectionsAdditionalDataQueryParamType = {
|
|
648
|
+
modelCollectionId: string;
|
|
649
|
+
iouThreshold?: number;
|
|
650
|
+
};
|
|
651
|
+
export interface IGetIntegrity {
|
|
652
|
+
modelId?: string;
|
|
653
|
+
modelVersions?: string;
|
|
654
|
+
pageClasses?: boolean;
|
|
655
|
+
modelCollectionIds?: string;
|
|
656
|
+
dataSetCollectionId?: string;
|
|
657
|
+
/**
|
|
658
|
+
* only for test collection analytics scenario
|
|
659
|
+
*/
|
|
660
|
+
testCollectionId?: string;
|
|
661
|
+
modelCollectionsAdditionalData?: GetIntegrityAPIModelCollectionsAdditionalDataQueryParamType[] | string;
|
|
662
|
+
purposeModelId?: string;
|
|
663
|
+
purposeModelAdditionalData?: string;
|
|
664
|
+
fetchWordErrorRateBands?: boolean;
|
|
665
|
+
}
|
|
666
|
+
export type modelCollectionAdditionalDataRequestPayloadForIndividualClassAccuracy = {
|
|
667
|
+
modelCollectionId: string;
|
|
668
|
+
labels: {
|
|
669
|
+
label: string;
|
|
670
|
+
confidenceScoreThreshold: number;
|
|
671
|
+
}[];
|
|
672
|
+
};
|
|
673
|
+
export type modelCollectionAdditionalDataRequestPayloadForIntegrity = {
|
|
674
|
+
modelCollectionId: string;
|
|
675
|
+
confidenceScoreThreshold: number;
|
|
676
|
+
};
|
|
677
|
+
export type modelCollectionAdditionalDataRequestPayloadForTopPerforming = {
|
|
678
|
+
modelCollectionId: string;
|
|
679
|
+
confidenceScoreThreshold: number;
|
|
680
|
+
};
|
|
681
|
+
export interface IndividualClassAccuracyAPIRequestPayload {
|
|
682
|
+
modelId: string;
|
|
683
|
+
modelVersions?: string;
|
|
684
|
+
pageClasses?: boolean;
|
|
685
|
+
modelCollectionIds: string;
|
|
686
|
+
modelCollectionsAdditionalData?: modelCollectionAdditionalDataRequestPayloadForIndividualClassAccuracy[];
|
|
687
|
+
/**
|
|
688
|
+
* only for test collection analytics scenario
|
|
689
|
+
*/
|
|
690
|
+
testCollectionId: string;
|
|
691
|
+
}
|
|
692
|
+
export interface IntegrityAPIRequestPayload {
|
|
693
|
+
modelId: string;
|
|
694
|
+
modelCollectionIds: string;
|
|
695
|
+
getTestAccuracy: boolean;
|
|
696
|
+
getTestAccuracyComparisonWithLiveCollection: boolean;
|
|
697
|
+
modelCollectionsAdditionalData?: modelCollectionAdditionalDataRequestPayloadForIntegrity[];
|
|
698
|
+
}
|
|
699
|
+
export interface IGetPredictionValuesQuery {
|
|
700
|
+
modelId: string;
|
|
701
|
+
modelCollectionId: string;
|
|
702
|
+
testCollectionId?: string;
|
|
703
|
+
}
|
|
704
|
+
export interface IDatasetCollectionPageNumberQuery {
|
|
705
|
+
pageRowsLimit: number;
|
|
706
|
+
sortField: string;
|
|
707
|
+
sortOrder: string;
|
|
708
|
+
}
|
|
709
|
+
export interface IDatasetCollectionPageNumberQueryWithModel extends IDatasetCollectionPageNumberQuery {
|
|
710
|
+
modelId: string;
|
|
711
|
+
dataSetCollectionName: string;
|
|
712
|
+
}
|
|
713
|
+
export interface IDatasetCollectionPageNumberQueryWithDataSet extends IDatasetCollectionPageNumberQuery {
|
|
714
|
+
dataSetCollectionId: string;
|
|
715
|
+
}
|
|
716
|
+
export interface IDatasetCollectionPageNumberResponse {
|
|
717
|
+
pageNumber: number;
|
|
718
|
+
dataSetCollectionId: string;
|
|
719
|
+
}
|
|
720
|
+
export interface IResponseUniquePredictionValues {
|
|
721
|
+
uniquePredictionsOfResources: Array<string>;
|
|
722
|
+
}
|
|
723
|
+
export interface ITestCollectionFetchQueryParams {
|
|
724
|
+
limit: number;
|
|
725
|
+
model: string;
|
|
726
|
+
offset: number;
|
|
727
|
+
populateDataSetCollection: boolean;
|
|
728
|
+
populateModelCollection: boolean;
|
|
729
|
+
versions?: string[];
|
|
730
|
+
statuses?: string[];
|
|
731
|
+
datasetIds?: string[];
|
|
732
|
+
modelCollectionIds?: string[];
|
|
733
|
+
sortField?: string;
|
|
734
|
+
sortOrder?: string;
|
|
735
|
+
projectionQuery?: unknown;
|
|
736
|
+
}
|
|
737
|
+
export interface IDeleteTestCollectionPayload {
|
|
738
|
+
collections: string[];
|
|
739
|
+
}
|
|
740
|
+
export interface IModelCollectionFetchBiggestVersionOutOfAllDocumentsQueryParams {
|
|
741
|
+
modelId: string;
|
|
742
|
+
modelArchitecture: string;
|
|
743
|
+
}
|
|
744
|
+
export type accuracyType = "greaterThanLive" | "lessThanLive" | "equalToLive" | "noLiveExists" | "isLive";
|
|
745
|
+
export interface IModelAnalyticsTopPerformingModel {
|
|
746
|
+
modelVersion: string;
|
|
747
|
+
accuracy: {
|
|
748
|
+
value: number;
|
|
749
|
+
type: accuracyType;
|
|
750
|
+
};
|
|
751
|
+
}
|
|
752
|
+
export interface IAnalyticsLabelConfidenceScoreQueryParams {
|
|
753
|
+
modelId: string;
|
|
754
|
+
modelCollectionId: string;
|
|
755
|
+
resourceId: string;
|
|
756
|
+
/**
|
|
757
|
+
* only for test collection analytics scenario
|
|
758
|
+
*/
|
|
759
|
+
testCollectionId: string;
|
|
760
|
+
/**
|
|
761
|
+
* applicable for DLP model type
|
|
762
|
+
*/
|
|
763
|
+
receiveTrimmedTexts: "true" | "false";
|
|
764
|
+
/**
|
|
765
|
+
* applicable for DLP model type
|
|
766
|
+
*/
|
|
767
|
+
receiveResourceText: "true" | "false";
|
|
768
|
+
}
|
|
769
|
+
export interface IUniqueNameCollectionQueryParams {
|
|
770
|
+
modelId: string;
|
|
771
|
+
datasetCollectionName: string;
|
|
772
|
+
}
|
|
773
|
+
export interface IUniqueNameCollectionResponse {
|
|
774
|
+
unique: boolean;
|
|
775
|
+
}
|
|
776
|
+
export interface ICopyCollectionResponse {
|
|
777
|
+
_id: string;
|
|
778
|
+
}
|
|
779
|
+
export interface ICopyCollectionPayload {
|
|
780
|
+
dataSetCollectionIdToCopyFrom: string;
|
|
781
|
+
dataSetCollectionIdToCopyIn: string;
|
|
782
|
+
isImageAnnotationsToBeCopied: boolean;
|
|
783
|
+
}
|
|
784
|
+
export interface ILabelConfidenceScore {
|
|
785
|
+
name: string;
|
|
786
|
+
confidenceScore: number;
|
|
787
|
+
}
|
|
788
|
+
export interface ILabelConfidenceScoreResponse {
|
|
789
|
+
/**
|
|
790
|
+
* applicable for DLP model type
|
|
791
|
+
*/
|
|
792
|
+
resource?: string;
|
|
793
|
+
created_at: string;
|
|
794
|
+
labels: Array<ILabelConfidenceScore>;
|
|
795
|
+
/**
|
|
796
|
+
* applicable for DLP model type
|
|
797
|
+
*/
|
|
798
|
+
trimmedTexts?: TrimmedText[];
|
|
799
|
+
prediction?: string;
|
|
800
|
+
}
|
|
801
|
+
export interface ILabelConfidenceScoreObject {
|
|
802
|
+
[name: string]: ILabelConfidenceScoreResponse;
|
|
803
|
+
}
|
|
804
|
+
export interface IResourceLabels {
|
|
805
|
+
resourceId: string;
|
|
806
|
+
labels: ILabelConfidenceScoreObject;
|
|
807
|
+
}
|
|
808
|
+
export interface IModelAnalyticsTestStatisticalData {
|
|
809
|
+
modelCollectionId: string;
|
|
810
|
+
version: string;
|
|
811
|
+
status: string;
|
|
812
|
+
integrityFrequency: number;
|
|
813
|
+
integrityFrequencyAccuracy: {
|
|
814
|
+
value: number;
|
|
815
|
+
type: accuracyType;
|
|
816
|
+
};
|
|
817
|
+
testAccuracy: {
|
|
818
|
+
value: number;
|
|
819
|
+
type: accuracyType;
|
|
820
|
+
};
|
|
821
|
+
created_at: string;
|
|
822
|
+
}
|
|
823
|
+
export interface IAnalyticsTableFiltersQueryParam {
|
|
824
|
+
sortField: string;
|
|
825
|
+
sortOrder: string;
|
|
826
|
+
labelRegex: string[];
|
|
827
|
+
resourceConfidenceScoreMinValue: string;
|
|
828
|
+
resourceConfidenceScoreMaxValue: string;
|
|
829
|
+
resourceIouScoreMinValue: string;
|
|
830
|
+
resourceIouScoreMaxValue: string;
|
|
831
|
+
resourceWordErrorRateMinValue?: string;
|
|
832
|
+
resourceWordErrorRateMaxValue?: string;
|
|
833
|
+
predictionStatusFilter: string;
|
|
834
|
+
predictedStatusRegex: string[];
|
|
835
|
+
getSameHandFeedbackNotYetGiven: string;
|
|
836
|
+
getSameHandWithMultipleIds: string;
|
|
837
|
+
getSameHandWithNoMultipleIds: string;
|
|
838
|
+
}
|
|
839
|
+
export type ResourceLabelFilterOperator = "contains" | "equals" | "starts with" | "ends with";
|
|
840
|
+
export interface IAnalyticsTableFilterObject extends IAnalyticsTableFiltersQueryParam {
|
|
841
|
+
labelFilterOperator: ResourceLabelFilterOperator;
|
|
842
|
+
statusFilterOperator: ResourceLabelFilterOperator;
|
|
843
|
+
}
|
|
844
|
+
export interface IModelAnalyticsIntegrity {
|
|
845
|
+
modelVersion: string;
|
|
846
|
+
integrityFrquency?: string;
|
|
847
|
+
totalAccuracy?: string;
|
|
848
|
+
}
|
|
849
|
+
export interface IModelAnalyticsTestDataSet {
|
|
850
|
+
label: string;
|
|
851
|
+
totalLabelCount: number;
|
|
852
|
+
}
|
|
853
|
+
export interface IModelAnalyticsTrainDataSetForEachModelVersion {
|
|
854
|
+
label: string;
|
|
855
|
+
totalLabelCount: number;
|
|
856
|
+
}
|
|
857
|
+
export interface IModelAnalyticsTrainDataSet {
|
|
858
|
+
modelCollectionId: string;
|
|
859
|
+
labels: IModelAnalyticsTrainDataSetForEachModelVersion[];
|
|
860
|
+
}
|
|
861
|
+
export interface IModelAnalyticsAccuracy {
|
|
862
|
+
modelCollectionId?: string;
|
|
863
|
+
modelVersion: string;
|
|
864
|
+
accuracy: {
|
|
865
|
+
accuracyJsonData?: {
|
|
866
|
+
[key: string]: any;
|
|
867
|
+
};
|
|
868
|
+
type: accuracyType;
|
|
869
|
+
value: number;
|
|
870
|
+
} | null;
|
|
871
|
+
status?: string;
|
|
872
|
+
created_at?: string;
|
|
873
|
+
totalTrainedDataSetsCount?: number;
|
|
874
|
+
}
|
|
875
|
+
export type IUniqueTestCollectionDataSet = {
|
|
876
|
+
_id: string;
|
|
877
|
+
name: string;
|
|
878
|
+
};
|
|
879
|
+
export type IUniqueTestCollectionDataSets = {
|
|
880
|
+
uniqueTestCollectionDatasets: IUniqueTestCollectionDataSet[];
|
|
881
|
+
};
|
|
882
|
+
export type IUniqueTestCollectionModel = {
|
|
883
|
+
version: string;
|
|
884
|
+
_id: string;
|
|
885
|
+
};
|
|
886
|
+
export type IUniqueTestCollectionModels = {
|
|
887
|
+
uniqueModelCollections: IUniqueTestCollectionModel[];
|
|
888
|
+
};
|
|
889
|
+
export interface ITestCollectionUniqueDataPayload {
|
|
890
|
+
modelId: string;
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* Params
|
|
894
|
+
*/
|
|
895
|
+
export interface ICollectionQueryParams extends ICommonQueryParams {
|
|
896
|
+
model?: string;
|
|
897
|
+
sortOrder?: SortOrder;
|
|
898
|
+
sortField?: DataSetSortField;
|
|
899
|
+
nameRegex?: string;
|
|
900
|
+
descriptionRegex?: string;
|
|
901
|
+
collectionCreatedDateMinValue?: string;
|
|
902
|
+
collectionCreatedDateMaxValue?: string;
|
|
903
|
+
projectionQuery?: string;
|
|
904
|
+
collectionIds?: Array<string>;
|
|
905
|
+
limit?: string;
|
|
906
|
+
}
|
|
907
|
+
export type Navigation = "moveToLeft" | "moveToRight";
|
|
908
|
+
export interface IModelAnalyticsFetchAccuracyQueryParams {
|
|
909
|
+
modelId: string;
|
|
910
|
+
modelCollectionIds?: string;
|
|
911
|
+
accuracyJsonData?: boolean;
|
|
912
|
+
getStatus?: boolean;
|
|
913
|
+
getCreatedTime?: boolean;
|
|
914
|
+
getTotalTrainedDataSetsCount?: boolean;
|
|
915
|
+
testCollectionId?: string;
|
|
916
|
+
}
|
|
917
|
+
export interface IModelAnalyticsFetchTestStatisticalDataQueryParams {
|
|
918
|
+
modelId?: string;
|
|
919
|
+
modelCollectionIds?: string;
|
|
920
|
+
getIntegrityFrequency?: boolean;
|
|
921
|
+
getIntegrityFrequencyAccuracyPercent?: boolean;
|
|
922
|
+
getIntegrityFrequencyAccuracyPercentComparisonWithLiveCollection?: boolean;
|
|
923
|
+
getTestAccuracy?: boolean;
|
|
924
|
+
getTestAccuracyComparisonWithLiveCollection?: boolean;
|
|
925
|
+
getModelCollectionCreatedTime?: boolean;
|
|
926
|
+
testCollectionId?: string;
|
|
927
|
+
modelCollectionsAdditionalData?: string;
|
|
928
|
+
purposeModelId?: string;
|
|
929
|
+
}
|
|
930
|
+
export interface IModelCollectionsAdditionalData {
|
|
931
|
+
modelCollectionId: string;
|
|
932
|
+
confidenceScoreThreshold: number;
|
|
933
|
+
iouThreshold?: number;
|
|
934
|
+
}
|
|
935
|
+
export interface IDataSetModelCollectionDataBoostUpdate {
|
|
936
|
+
id: string;
|
|
937
|
+
dataBoost: number;
|
|
938
|
+
}
|
|
939
|
+
export interface IModelAnalyticsFetchTestDatSetQueryParams {
|
|
940
|
+
modelId: string;
|
|
941
|
+
modelCollectionId?: string;
|
|
942
|
+
}
|
|
943
|
+
export interface IModelAnalyticsFetchTestDatSetForTestCollectionScenarioQueryParams {
|
|
944
|
+
modelId: string;
|
|
945
|
+
testCollectionId: string;
|
|
946
|
+
}
|
|
947
|
+
export interface IModelAnalyticsFetchTrainDataSetQueryParams {
|
|
948
|
+
modelId: string;
|
|
949
|
+
modelCollectionId?: string;
|
|
950
|
+
}
|
|
951
|
+
export interface IModelAnalyticsFetchIntegrityQueryParams {
|
|
952
|
+
modelId: string;
|
|
953
|
+
modelVersions?: string[];
|
|
954
|
+
}
|
|
955
|
+
export interface IModelAnalyticsFetchTopPerformingModelQueryParams {
|
|
956
|
+
modelId: string;
|
|
957
|
+
modelVersions?: string[];
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Responses
|
|
961
|
+
*/
|
|
962
|
+
export type GetDataSetCollectionUniqueNamesApiResponse = ITrainingDataDirectories;
|
|
963
|
+
export interface ICollectionsResponse extends ICommonResponse {
|
|
964
|
+
collections: ICollection[];
|
|
965
|
+
}
|
|
966
|
+
export interface IModelCollectionsResponse extends ICommonResponse {
|
|
967
|
+
collections: IModelCollection[];
|
|
968
|
+
}
|
|
969
|
+
export interface IModelCollectionsToCompare {
|
|
970
|
+
modelCollection: string;
|
|
971
|
+
modelVersion: string;
|
|
972
|
+
}
|
|
973
|
+
export interface ITestCollectionsResponse extends ICommonResponse {
|
|
974
|
+
collections: ITestCollection[];
|
|
975
|
+
totalCount: number;
|
|
976
|
+
}
|
|
977
|
+
export interface ITestUniqueVersions {
|
|
978
|
+
uniqueTestCollectionVersions: string[];
|
|
979
|
+
}
|
|
980
|
+
export interface ITestUniqueStatuses {
|
|
981
|
+
uniqueTestCollectionStatuses: string[];
|
|
982
|
+
}
|
|
983
|
+
export interface ITestUniqueModels {
|
|
984
|
+
uniqueModelCollections: IUniqueTestCollectionModel[];
|
|
985
|
+
}
|
|
986
|
+
export interface ITestUniqueDataSets {
|
|
987
|
+
uniqueTestCollectionDatasets: IUniqueTestCollectionDataSet[];
|
|
988
|
+
}
|
|
989
|
+
export type UniqueTestCollectionVersionsApiResponse = ITestUniqueVersions;
|
|
990
|
+
export type UniqueTestCollectionStatusesApiResponse = ITestUniqueStatuses;
|
|
991
|
+
export type UniqueTestCollectionModelsApiResponse = ITestUniqueModels;
|
|
992
|
+
export type UniqueTestCollectionDataSetsApiResponse = ITestUniqueDataSets;
|
|
993
|
+
export interface IModelAnalyticsAccuracyResponse {
|
|
994
|
+
modelAnalyticsAccuracy: IModelAnalyticsAccuracy[];
|
|
995
|
+
}
|
|
996
|
+
export interface IModelAnalyticsTestDataSetResponse {
|
|
997
|
+
modelAnalyticsTestDataSet: IModelAnalyticsTestDataSet[];
|
|
998
|
+
}
|
|
999
|
+
export interface IModelAnalyticsTrainDataSetResponse {
|
|
1000
|
+
modelAnalyticsTrainDataSet: IModelAnalyticsTrainDataSetForEachModelVersion[];
|
|
1001
|
+
}
|
|
1002
|
+
export interface IModelAnalyticsIntegrityResponse {
|
|
1003
|
+
modelAnalyticsIntegrity: IModelAnalyticsIntegrity[];
|
|
1004
|
+
}
|
|
1005
|
+
export interface IModelAnalyticsTopPerformingModelResponse {
|
|
1006
|
+
modelAnalalyticsTopPerformingModel: IModelAnalyticsTopPerformingModel[];
|
|
1007
|
+
}
|
|
1008
|
+
export interface IDeleteCollectionErrors {
|
|
1009
|
+
dataSetCollection: string;
|
|
1010
|
+
linkedToCollections: {
|
|
1011
|
+
modelCollection?: string[] | number[];
|
|
1012
|
+
testCollection?: string[] | number[];
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
export interface ICollectionDeleteResponse {
|
|
1016
|
+
ok?: number;
|
|
1017
|
+
n?: number;
|
|
1018
|
+
deletedCount: number;
|
|
1019
|
+
deletedDataSetCount: number;
|
|
1020
|
+
errorMessagesDueToDataSetLinkedSomewhereElse?: IDeleteCollectionErrors[];
|
|
1021
|
+
}
|
|
1022
|
+
export interface IDeleteModelCollectionErrors {
|
|
1023
|
+
modelCollection: string;
|
|
1024
|
+
linkedToCollections: {
|
|
1025
|
+
testCollection?: string[] | number[];
|
|
1026
|
+
modelCollection?: string[] | number[];
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
export interface ICollectionMetrics extends collectionMetricsFromAiModelTestResultCSVApiResponse {
|
|
1030
|
+
modelCollectionId?: string;
|
|
1031
|
+
testCollectionId?: string;
|
|
1032
|
+
modelCollectionVersion?: string;
|
|
1033
|
+
}
|
|
1034
|
+
export interface IModelCollectionDeleteResponse {
|
|
1035
|
+
deletedModelCollectionCount: number;
|
|
1036
|
+
ok: number;
|
|
1037
|
+
n: number;
|
|
1038
|
+
deletedCount: number;
|
|
1039
|
+
errorMessagesDueToDataSetLinkedSomewhereElse?: IDeleteModelCollectionErrors[];
|
|
1040
|
+
}
|
|
1041
|
+
export interface ITestCollectionDeleteResponse extends IModelCollectionDeleteResponse {
|
|
1042
|
+
}
|
|
1043
|
+
export interface IAddModelCollectionJsonFieldData {
|
|
1044
|
+
backgroundFrequency: IBackgroundFrequency;
|
|
1045
|
+
backgroundVolume: IBackgroundVolume;
|
|
1046
|
+
batchSize: IBatchSize;
|
|
1047
|
+
clipDuration: IClipDuration;
|
|
1048
|
+
dctCoefficientCount: IDctCoefficientCount;
|
|
1049
|
+
evaluationStepInterval: IEvaluationStepInterval;
|
|
1050
|
+
learningRate: ILearningRate;
|
|
1051
|
+
modelArchitecture: IModelArchitecture;
|
|
1052
|
+
modelDescription: IModelDescription;
|
|
1053
|
+
modelSizeInfo: IModelSizeInfo;
|
|
1054
|
+
sampleRate: ISampleRate;
|
|
1055
|
+
saveStepInterval: ISaveStepInterval;
|
|
1056
|
+
silencePercentage: ISilencePercentage;
|
|
1057
|
+
testingPercentage: ITestingPercentage;
|
|
1058
|
+
timeShift: ITimeShift;
|
|
1059
|
+
trainingSteps: ITrainingSteps;
|
|
1060
|
+
unknownPercentage: IUnknownPercentage;
|
|
1061
|
+
validationPercentage: IValidationPercentage;
|
|
1062
|
+
windowSize: IWindowSize;
|
|
1063
|
+
windowStride: IWindowStride;
|
|
1064
|
+
}
|
|
1065
|
+
export type ITrainingDataDirectoriesSelectedStateForAddModelCollection = InputFieldState<ITrainingDataDirectories>;
|
|
1066
|
+
export type ITestVersionSelectedStateForTestModelCollection = InputFieldState<ITestModelVersions>;
|
|
1067
|
+
export type collectionType = "dataSet" | "model" | "test" | undefined;
|
|
1068
|
+
/**
|
|
1069
|
+
* Redux
|
|
1070
|
+
*/
|
|
1071
|
+
export interface ICollectionState extends ICommonState {
|
|
1072
|
+
collections: ICollectionsResponse;
|
|
1073
|
+
shouldFetchLatestDataSetCollectionResourceLabelsIfCurrentlyShowingInScreen: boolean;
|
|
1074
|
+
selected?: ICollection | null;
|
|
1075
|
+
addErrorMessage: string;
|
|
1076
|
+
dataSetCollectionsSelected: ICollection[];
|
|
1077
|
+
ConfirmDeleteModal: {
|
|
1078
|
+
showConfirmDeleteModal: boolean;
|
|
1079
|
+
collectionToDelete: ICollection | IModelCollection | ITestCollection | null;
|
|
1080
|
+
multiDelete: boolean;
|
|
1081
|
+
selectedCollectionIds: string[];
|
|
1082
|
+
collectionType: collectionType;
|
|
1083
|
+
deletedCollectionFromPopup: boolean;
|
|
1084
|
+
};
|
|
1085
|
+
errorMessagesDueToDataSetLinkedSomewhereElse: IDeleteCollectionErrors[] | [];
|
|
1086
|
+
modelCollection: {
|
|
1087
|
+
shouldFetchModelCollections: boolean;
|
|
1088
|
+
modelCollectionSelected: string;
|
|
1089
|
+
modelCollectionsSelected: IModelCollection[];
|
|
1090
|
+
modelCollectionsSelectedToCompare: string[];
|
|
1091
|
+
trainingDataDirectoriesSelectedStateForAddModelCollection: ITrainingDataDirectoriesSelectedStateForAddModelCollection;
|
|
1092
|
+
modelCollections: IModelCollection[] | null;
|
|
1093
|
+
totalModelCollectionsTableCount: number;
|
|
1094
|
+
biggestTestModelVersion: ITestVersionSelectedStateForTestModelCollection;
|
|
1095
|
+
errorMessagesDueToModelCollectionLinkedSomewhereElse: IDeleteModelCollectionErrors[] | [];
|
|
1096
|
+
deletedModelCollectionCount: number;
|
|
1097
|
+
};
|
|
1098
|
+
testCollection: {
|
|
1099
|
+
shouldFetchTestCollections: boolean;
|
|
1100
|
+
testCollectionSelected: ITestCollection | null;
|
|
1101
|
+
testCollectionsSelected: ITestCollection[];
|
|
1102
|
+
testCollectionIdSelectedByUser: string | null;
|
|
1103
|
+
testCollections: ITestCollectionsResponse | null;
|
|
1104
|
+
};
|
|
1105
|
+
defaultDataSetCollection: IDefaultDataSetCollection | null;
|
|
1106
|
+
}
|
|
1107
|
+
export {};
|
|
1108
|
+
//# sourceMappingURL=collections.d.ts.map
|