From c89f930f6f94fbb20ca8af3245c5d860a617c603 Mon Sep 17 00:00:00 2001 From: lprovost Date: Fri, 27 Dec 2024 10:50:31 -0500 Subject: [PATCH] feat(modeldetails): migrate type to record --- .../ModelDetailedInfo/details/ModelDetails.ts | 14 +++++++------- .../details/ModelDetailsLanguages.ts | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/resources/MachineLearning/ModelDetailedInfo/details/ModelDetails.ts b/src/resources/MachineLearning/ModelDetailedInfo/details/ModelDetails.ts index 391c750e8..c965c35a7 100644 --- a/src/resources/MachineLearning/ModelDetailedInfo/details/ModelDetails.ts +++ b/src/resources/MachineLearning/ModelDetailedInfo/details/ModelDetails.ts @@ -5,15 +5,15 @@ import {ModelDetailsSubModels} from './ModelDetailsSubModels.js'; export interface ModelDetails { possibleRecommendations?: number; totalQueries?: number; - recommendationsPerLanguage?: Map; + recommendationsPerLanguage?: Record; userContextFields?: string[]; contentIDKeys?: string[]; - candidatesPerFilters?: Map; - contextCandidateExamples?: Map; - languages?: Map; - candidateExamples?: Map; - candidatesPerLanguages?: Map; - minClickCountByLang?: Map; + candidatesPerFilters?: Record; + contextCandidateExamples?: Record; + languages?: Record; + candidateExamples?: Record; + candidatesPerLanguages?: Record; + minClickCountByLang?: Record; subModels?: {[key: string]: ModelDetailsSubModels}; candidates?: number; modelDetailedBuildingStats?: ModelDetailsBuildingStats; diff --git a/src/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsLanguages.ts b/src/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsLanguages.ts index 4bb051963..d61b10b8f 100644 --- a/src/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsLanguages.ts +++ b/src/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsLanguages.ts @@ -3,6 +3,6 @@ export interface ModelDetailsLanguages { words?: number; stopwords?: number; topfacets?: string[]; - contextKeysToDocuments?: Map; - docPerFilters?: Map; + contextKeysToDocuments?: Record; + docPerFilters?: Record; }