diff --git a/src/assets/howso.caml b/src/assets/howso.caml index dad2b63..ea6a050 100644 Binary files a/src/assets/howso.caml and b/src/assets/howso.caml differ diff --git a/src/assets/migrations.caml b/src/assets/migrations.caml index 2dac1f7..f3d5724 100644 Binary files a/src/assets/migrations.caml and b/src/assets/migrations.caml differ diff --git a/src/types/schemas/CaseMaps.ts b/src/types/schemas/Case.ts similarity index 76% rename from src/types/schemas/CaseMaps.ts rename to src/types/schemas/Case.ts index 529b8aa..4b6a79e 100644 --- a/src/types/schemas/CaseMaps.ts +++ b/src/types/schemas/Case.ts @@ -2,10 +2,10 @@ * 🛑 WARNING: DO NOT EDIT! 🛑 * This file is auto generated and should not be modified directly. * - * CaseMaps + * Case */ /** * A list of maps representing the cases that influenced a react. */ -export type CaseMaps = Record[]; +export type Case = Record[]; diff --git a/src/types/schemas/ConfusionMatrixMap.ts b/src/types/schemas/ConfusionMatrix.ts similarity index 93% rename from src/types/schemas/ConfusionMatrixMap.ts rename to src/types/schemas/ConfusionMatrix.ts index 0568afe..5d4b844 100644 --- a/src/types/schemas/ConfusionMatrixMap.ts +++ b/src/types/schemas/ConfusionMatrix.ts @@ -2,13 +2,13 @@ * 🛑 WARNING: DO NOT EDIT! 🛑 * This file is auto generated and should not be modified directly. * - * ConfusionMatrixMap + * ConfusionMatrix */ /** * The confusion matrix in the form of maps from actual classes to maps of predicted classes to frequencies alongside counts for insignficant predictions. */ -export type ConfusionMatrixMap = { +export type ConfusionMatrix = { /** * Total number of correct predictions for classes that were not statistically significant. */ diff --git a/src/types/schemas/DerivationParameters.ts b/src/types/schemas/DerivationParameters.ts index 871d930..60c7ffe 100644 --- a/src/types/schemas/DerivationParameters.ts +++ b/src/types/schemas/DerivationParameters.ts @@ -4,7 +4,7 @@ * * DerivationParameters */ -import type { FeatureValueMap } from "./FeatureValueMap"; +import type { FeatureMetricIndex } from "./FeatureMetricIndex"; /** * A map containing the parameters used in the derivation of a reaction. @@ -21,7 +21,7 @@ export type DerivationParameters = { /** * A map of feature names to feature weights. */ - feature_weights?: FeatureValueMap; + feature_weights?: FeatureMetricIndex; /** * The number of most similar cases used to make the prediction. */ @@ -29,7 +29,7 @@ export type DerivationParameters = { /** * A map of nominal feature names to the number of unique classes for each feature. */ - nominal_class_counts?: FeatureValueMap; + nominal_class_counts?: FeatureMetricIndex; /** * The parameter of the Lebesgue space used in the Minkowski distance. */ diff --git a/src/types/schemas/FeatureAttributes.ts b/src/types/schemas/FeatureAttributes.ts index 083babe..b185b48 100644 --- a/src/types/schemas/FeatureAttributes.ts +++ b/src/types/schemas/FeatureAttributes.ts @@ -4,7 +4,7 @@ * * FeatureAttributes */ -import type { FeatureBoundsMap } from "./FeatureBoundsMap"; +import type { FeatureBounds } from "./FeatureBounds"; import type { FeatureDataType } from "./FeatureDataType"; import type { FeatureType } from "./FeatureType"; @@ -33,7 +33,7 @@ export type FeatureAttributes = { */ series_id_features?: string[]; }; - bounds?: FeatureBoundsMap; + bounds?: FeatureBounds; /** * Cyclic features are set by specifying a `cycle_length` value in the feature attributes. `cycle_length` requires a single value, which is the upper bound of the difference for the cycle range. For example, if `cycle_length` is 360, then a value of 1 and 359 will have a difference of 2. Cyclic features have no restrictions in the input dataset, however, cyclic features will be output on a scale from 0 to `cycle_length`. To constrain the output to a different range, modify the `min` and `max` `bounds` feature attribute. * diff --git a/src/types/schemas/FeatureBoundsMap.ts b/src/types/schemas/FeatureBounds.ts similarity index 94% rename from src/types/schemas/FeatureBoundsMap.ts rename to src/types/schemas/FeatureBounds.ts index 36d19f5..f32d444 100644 --- a/src/types/schemas/FeatureBoundsMap.ts +++ b/src/types/schemas/FeatureBounds.ts @@ -2,13 +2,13 @@ * 🛑 WARNING: DO NOT EDIT! 🛑 * This file is auto generated and should not be modified directly. * - * FeatureBoundsMap + * FeatureBounds */ /** * A map defining any feature bounds, allowed values, and constraints. */ -export type FeatureBoundsMap = { +export type FeatureBounds = { /** * Explicitly allowed values to be output. */ diff --git a/src/types/schemas/FeatureDataType.ts b/src/types/schemas/FeatureDataType.ts index ff1d05c..3039b58 100644 --- a/src/types/schemas/FeatureDataType.ts +++ b/src/types/schemas/FeatureDataType.ts @@ -6,7 +6,7 @@ */ /** - * Specify the data type for features with a type of nominal or continuous. Default is `string` for nominals and `number` for continuous. + * The data type of a feature. Default is `string` for nominals and `number` for continuous. * * Valid values include: * - `string`, `number`, `formatted_date_time`, `json`, `amalgam`, `yaml`: Valid for both nominal and continuous. diff --git a/src/types/schemas/FeatureValueMap.ts b/src/types/schemas/FeatureMetricIndex.ts similarity index 67% rename from src/types/schemas/FeatureValueMap.ts rename to src/types/schemas/FeatureMetricIndex.ts index 1d9647b..09439cf 100644 --- a/src/types/schemas/FeatureValueMap.ts +++ b/src/types/schemas/FeatureMetricIndex.ts @@ -2,10 +2,10 @@ * 🛑 WARNING: DO NOT EDIT! 🛑 * This file is auto generated and should not be modified directly. * - * FeatureValueMap + * FeatureMetricIndex */ /** * Map of feature names to numeric values. */ -export type FeatureValueMap = Record; +export type FeatureMetricIndex = Record; diff --git a/src/types/schemas/HyperparameterMap.ts b/src/types/schemas/HyperparameterMap.ts index 32bd0ce..7aeebef 100644 --- a/src/types/schemas/HyperparameterMap.ts +++ b/src/types/schemas/HyperparameterMap.ts @@ -21,11 +21,11 @@ export type HyperparameterMap = { /** * Internal map of features to their deviations. Includes null deviations and sparse deviation matrices. */ - featureDeviations?: Record; + featureDeviations?: Record | null; /** * Internal map of features to various domain attributes. */ - featureDomainAttributes?: Record; + featureDomainAttributes?: Record | null; /** * Map of ordinal features to their deviations. */ @@ -33,11 +33,11 @@ export type HyperparameterMap = { /** * Map of features to their computed feature residuals. */ - featureResiduals?: Record; + featureResiduals?: Record; /** * Map of features to feature weights used in the distance metric. */ - featureWeights?: Record; + featureWeights?: Record | null; /** * Error computed during the grid search in analysis. */ @@ -49,7 +49,7 @@ export type HyperparameterMap = { /** * Map of features to null uncertainties which describes the distances in the context of missing values. */ - nullUncertainties?: Record; + nullUncertainties?: Record; /** * The parameter of the Lebesgue space. */ diff --git a/src/types/schemas/FullHyperparameterMap.ts b/src/types/schemas/HyperparameterMapTree.ts similarity index 72% rename from src/types/schemas/FullHyperparameterMap.ts rename to src/types/schemas/HyperparameterMapTree.ts index d66f39a..de925ec 100644 --- a/src/types/schemas/FullHyperparameterMap.ts +++ b/src/types/schemas/HyperparameterMapTree.ts @@ -2,8 +2,8 @@ * 🛑 WARNING: DO NOT EDIT! 🛑 * This file is auto generated and should not be modified directly. * - * FullHyperparameterMap + * HyperparameterMapTree */ import type { HyperparameterMap } from "./HyperparameterMap"; -export type FullHyperparameterMap = Record>>>; +export type HyperparameterMapTree = Record>>>; diff --git a/src/types/schemas/OutlyingFeatureValues.ts b/src/types/schemas/OutlyingFeatureValuesIndex.ts similarity index 89% rename from src/types/schemas/OutlyingFeatureValues.ts rename to src/types/schemas/OutlyingFeatureValuesIndex.ts index fc21875..510f822 100644 --- a/src/types/schemas/OutlyingFeatureValues.ts +++ b/src/types/schemas/OutlyingFeatureValuesIndex.ts @@ -2,13 +2,13 @@ * 🛑 WARNING: DO NOT EDIT! 🛑 * This file is auto generated and should not be modified directly. * - * OutlyingFeatureValues + * OutlyingFeatureValuesIndex */ /** * Map of feature name to map indicating the case value and the maximum or minimum value of the feature observed in the most similar cases. */ -export type OutlyingFeatureValues = Record< +export type OutlyingFeatureValuesIndex = Record< string, { /** diff --git a/src/types/schemas/React.ts b/src/types/schemas/React.ts index fc2d1e3..be0473a 100644 --- a/src/types/schemas/React.ts +++ b/src/types/schemas/React.ts @@ -8,7 +8,7 @@ */ import type { CaseIndices } from "./CaseIndices"; import type { DesiredConviction } from "./DesiredConviction"; -import type { FeatureBoundsMap } from "./FeatureBoundsMap"; +import type { FeatureBounds } from "./FeatureBounds"; import type { GenerateNewCases } from "./GenerateNewCases"; import type { ReactDetails } from "./ReactDetails"; import type { UseCaseWeights } from "./UseCaseWeights"; @@ -281,7 +281,7 @@ export type ReactRequest = { * Only used when desired_conviction is specified * @default {} */ - feature_bounds_map?: Record; + feature_bounds_map?: Record; /** * Enum, acceptable values are: diff --git a/src/types/schemas/ReactAggregate.ts b/src/types/schemas/ReactAggregate.ts index 22f79b2..12175b2 100644 --- a/src/types/schemas/ReactAggregate.ts +++ b/src/types/schemas/ReactAggregate.ts @@ -7,7 +7,7 @@ * Computes, caches, and returns specified details and feature prediction statistics such as Mean Decrease in Accuracy (MDA), residuals (accuracy, Mean Absolute Error), * precision, recall, etc. Returns details and feature prediction stats for all features in the format of feature -> assoc stat -> value */ -import type { ConfusionMatrixMap } from "./ConfusionMatrixMap"; +import type { ConfusionMatrix } from "./ConfusionMatrix"; import type { ReactAggregateDetails } from "./ReactAggregateDetails"; import type { UseCaseWeights } from "./UseCaseWeights"; @@ -201,7 +201,7 @@ export type ReactAggregateResponse = Record< * The symmetric mean absolute percentage error with added the min gap / 2 to the actual and predicted values. */ adjusted_smape?: number | null; - confusion_matrix?: ConfusionMatrixMap; + confusion_matrix?: ConfusionMatrix; /** * The mean difference of predicting the specified action feature with and without this feature while using the full set of remaining context features. */ diff --git a/src/types/schemas/ReactDetails.ts b/src/types/schemas/ReactDetails.ts index 394bbbe..39b108f 100644 --- a/src/types/schemas/ReactDetails.ts +++ b/src/types/schemas/ReactDetails.ts @@ -16,7 +16,7 @@ export type ReactDetails = { */ boundary_cases_familiarity_convictions?: boolean; /** - * If true outputs each influential case's differences between the + * If true outputs each influential case's differences between the predicted action feature value and the predicted action feature value if each individual case were not included. Uses only the context features of the reacted case to determine that area. Uses full calculations, which uses leave-one-out for cases for computations. */ case_contributions_full?: boolean; /** diff --git a/src/types/schemas/ReactSeries.ts b/src/types/schemas/ReactSeries.ts index 9e1b958..8aea590 100644 --- a/src/types/schemas/ReactSeries.ts +++ b/src/types/schemas/ReactSeries.ts @@ -10,7 +10,7 @@ */ import type { CaseIndices } from "./CaseIndices"; import type { DesiredConviction } from "./DesiredConviction"; -import type { FeatureBoundsMap } from "./FeatureBoundsMap"; +import type { FeatureBounds } from "./FeatureBounds"; import type { GenerateNewCases } from "./GenerateNewCases"; import type { NewCaseThreshold } from "./NewCaseThreshold"; import type { ReactDetails } from "./ReactDetails"; @@ -113,7 +113,7 @@ export type ReactSeriesRequest = { * allow_null - default is true, if true nulls may be generated per their distribution in the data * @default {} */ - feature_bounds_map?: Record; + feature_bounds_map?: Record; /** * Time step values at which to end synthesis for each series, applicable only for time series. diff --git a/src/types/schemas/Reaction.ts b/src/types/schemas/Reaction.ts index 63392d0..3b477ba 100644 --- a/src/types/schemas/Reaction.ts +++ b/src/types/schemas/Reaction.ts @@ -4,16 +4,16 @@ * * Reaction */ +import type { Case } from "./Case"; import type { CaseMDA } from "./CaseMDA"; -import type { CaseMaps } from "./CaseMaps"; import type { CategoricalActionProbabilities } from "./CategoricalActionProbabilities"; import type { DistanceRatioParts } from "./DistanceRatioParts"; -import type { FeatureValueMap } from "./FeatureValueMap"; +import type { FeatureMetricIndex } from "./FeatureMetricIndex"; import type { FullCaseContribution } from "./FullCaseContribution"; -import type { OutlyingFeatureValues } from "./OutlyingFeatureValues"; +import type { OutlyingFeatureValuesIndex } from "./OutlyingFeatureValuesIndex"; import type { ReactionPredictionStats } from "./ReactionPredictionStats"; import type { RobustCaseContribution } from "./RobustCaseContribution"; -import type { SimilarCaseMap } from "./SimilarCaseMap"; +import type { SimilarCaseIndex } from "./SimilarCaseIndex"; /** * The response payload for #react. @@ -30,7 +30,7 @@ export type Reaction = { /** * A list of lists of boundary cases for each given case. */ - boundary_cases?: CaseMaps[]; + boundary_cases?: Case[]; /** * A list of lists of maps containing the case index and full contribution to the action feature for each influential case of each given case. */ @@ -42,35 +42,35 @@ export type Reaction = { /** * A list of lists of maps containing the case index and full directional contribution to the action feature each given case. */ - case_directional_feature_contributions_full?: FeatureValueMap[]; + case_directional_feature_contributions_full?: FeatureMetricIndex[]; /** * A list of lists of maps containing the case index and robust directional contribution to the action feature each given case. */ - case_directional_feature_contributions_robust?: FeatureValueMap[]; + case_directional_feature_contributions_robust?: FeatureMetricIndex[]; /** * A list of lists of maps containing the case index and full contribution to the action feature each given case. */ - case_feature_contributions_full?: FeatureValueMap[]; + case_feature_contributions_full?: FeatureMetricIndex[]; /** * A list of lists of maps containing the case index and robust contribution to the action feature each given case. */ - case_feature_contributions_robust?: FeatureValueMap[]; + case_feature_contributions_robust?: FeatureMetricIndex[]; /** * A list of maps from feature name to the full prediction residual for each given case. */ - case_feature_residuals_full?: FeatureValueMap[]; + case_feature_residuals_full?: FeatureMetricIndex[]; /** * A list of maps from feature name to the robust prediction residual for each given case. */ - case_feature_residuals_robust?: FeatureValueMap[]; + case_feature_residuals_robust?: FeatureMetricIndex[]; /** * A list of maps from feature name to feature full residual conviction for each given case. */ - case_feature_residual_convictions_full?: FeatureValueMap[]; + case_feature_residual_convictions_full?: FeatureMetricIndex[]; /** * A list of maps from feature name to feature robust residual conviction for each given case. */ - case_feature_residual_convictions_robust?: FeatureValueMap[]; + case_feature_residual_convictions_robust?: FeatureMetricIndex[]; /** * A list of lists of maps containing the case index and full MDA for each influential case of each given case. */ @@ -86,11 +86,11 @@ export type Reaction = { /** * A list of maps defining the local feature robust directional contributions of the action feature for each feature in the query. */ - directional_feature_contributions_full?: FeatureValueMap[]; + directional_feature_contributions_full?: FeatureMetricIndex[]; /** * A list of maps defining the local feature robust directional contributions of the action feature for each feature in the query. */ - directional_feature_contributions_robust?: FeatureValueMap[]; + directional_feature_contributions_robust?: FeatureMetricIndex[]; /** * The computed distance contribution for each given case. */ @@ -106,35 +106,35 @@ export type Reaction = { /** * A list of maps defining the local feature full contributions of the action feature for each feature in the query. */ - feature_contributions_full?: FeatureValueMap[]; + feature_contributions_full?: FeatureMetricIndex[]; /** * A list of maps defining the local feature robust contributions of the action feature for each feature in the query. */ - feature_contributions_robust?: FeatureValueMap[]; + feature_contributions_robust?: FeatureMetricIndex[]; /** * A list of maps defining the local feature full MDA of the action feature for each feature in the query given the prediction was already made as the given action value. */ - feature_mda_ex_post_full?: FeatureValueMap[]; + feature_mda_ex_post_full?: FeatureMetricIndex[]; /** * A list of maps defining the local feature robust MDA of the action feature for each feature in the query given the prediction was already made as the given action value. */ - feature_mda_ex_post_robust?: FeatureValueMap[]; + feature_mda_ex_post_robust?: FeatureMetricIndex[]; /** * A list of maps defining the local feature full MDA of the action feature for each feature in the query. */ - feature_mda_full?: FeatureValueMap[]; + feature_mda_full?: FeatureMetricIndex[]; /** * A list of maps defining the local feature robust MDA of the action feature for each feature in the query. */ - feature_mda_robust?: FeatureValueMap[]; + feature_mda_robust?: FeatureMetricIndex[]; /** * A list of maps defining the local feature full residuals for each feature in the query. */ - feature_residuals_full?: FeatureValueMap[]; + feature_residuals_full?: FeatureMetricIndex[]; /** * A list of maps defining the local feature robust residuals for each feature in the query. */ - feature_residuals_robust?: FeatureValueMap[]; + feature_residuals_robust?: FeatureMetricIndex[]; /** * A list of the amount of generation attempts taken for each synthesized case. Only returned if `generate_new_cases` is 'attempt' or 'always'. */ @@ -146,23 +146,23 @@ export type Reaction = { /** * A list of lists of influential cases for each given case. */ - influential_cases?: CaseMaps[]; + influential_cases?: Case[]; /** * A list of lists of the most similar cases to each given case. */ - most_similar_cases?: CaseMaps[]; + most_similar_cases?: Case[]; /** * A list of lists of maps describing the most similar case indices and their distance from each given case. */ - most_similar_case_indices?: SimilarCaseMap[][]; + most_similar_case_indices?: SimilarCaseIndex[][]; /** * A list of maps defining the observational errors for each feature defined in the feature attributes. */ - observational_errors?: FeatureValueMap[]; + observational_errors?: FeatureMetricIndex[]; /** - * A list of lists of boundary cases for each given case. + * A list of maps from feature name to map describing the outlying values and the extreme observed among similar cases. */ - outlying_feature_values?: OutlyingFeatureValues[]; + outlying_feature_values?: OutlyingFeatureValuesIndex[]; /** * A list of maps containing the resulting prediction stats for the region of cases nearest to each given case. */ diff --git a/src/types/schemas/ReactionPredictionStats.ts b/src/types/schemas/ReactionPredictionStats.ts index 50a3156..7a59e42 100644 --- a/src/types/schemas/ReactionPredictionStats.ts +++ b/src/types/schemas/ReactionPredictionStats.ts @@ -4,23 +4,23 @@ * * ReactionPredictionStats */ -import type { ConfusionMatrixMap } from "./ConfusionMatrixMap"; -import type { FeatureValueMap } from "./FeatureValueMap"; +import type { ConfusionMatrix } from "./ConfusionMatrix"; +import type { FeatureMetricIndex } from "./FeatureMetricIndex"; /** * A map of prediction statistic names to maps of feature names to the computed values for each statistic. */ export type ReactionPredictionStats = { - accuracy?: FeatureValueMap; - adjusted_smape?: FeatureValueMap; - confusion_matrix?: Record; - mae?: FeatureValueMap; - mcc?: FeatureValueMap; - missing_value_accuracy?: FeatureValueMap; - precision?: FeatureValueMap; - r2?: FeatureValueMap; - recall?: FeatureValueMap; - rmse?: FeatureValueMap; - smape?: FeatureValueMap; - spearman_coeff?: FeatureValueMap; + accuracy?: FeatureMetricIndex; + adjusted_smape?: FeatureMetricIndex; + confusion_matrix?: Record; + mae?: FeatureMetricIndex; + mcc?: FeatureMetricIndex; + missing_value_accuracy?: FeatureMetricIndex; + precision?: FeatureMetricIndex; + r2?: FeatureMetricIndex; + recall?: FeatureMetricIndex; + rmse?: FeatureMetricIndex; + smape?: FeatureMetricIndex; + spearman_coeff?: FeatureMetricIndex; }; diff --git a/src/types/schemas/SeriesReaction.ts b/src/types/schemas/SeriesReaction.ts index 49cf0e3..bd3f6ee 100644 --- a/src/types/schemas/SeriesReaction.ts +++ b/src/types/schemas/SeriesReaction.ts @@ -4,16 +4,16 @@ * * SeriesReaction */ +import type { Case } from "./Case"; import type { CaseMDA } from "./CaseMDA"; -import type { CaseMaps } from "./CaseMaps"; import type { CategoricalActionProbabilities } from "./CategoricalActionProbabilities"; import type { DistanceRatioParts } from "./DistanceRatioParts"; -import type { FeatureValueMap } from "./FeatureValueMap"; +import type { FeatureMetricIndex } from "./FeatureMetricIndex"; import type { FullCaseContribution } from "./FullCaseContribution"; -import type { OutlyingFeatureValues } from "./OutlyingFeatureValues"; +import type { OutlyingFeatureValuesIndex } from "./OutlyingFeatureValuesIndex"; import type { ReactionPredictionStats } from "./ReactionPredictionStats"; import type { RobustCaseContribution } from "./RobustCaseContribution"; -import type { SimilarCaseMap } from "./SimilarCaseMap"; +import type { SimilarCaseIndex } from "./SimilarCaseIndex"; /** * The response payload for #react_series. @@ -34,7 +34,7 @@ export type SeriesReaction = { /** * A list of the detail result lists for each case of each series. */ - boundary_cases?: CaseMaps[][]; + boundary_cases?: Case[][]; /** * A list of the detail result lists for each case of each series. */ @@ -46,35 +46,35 @@ export type SeriesReaction = { /** * A list of the detail result lists for each case of each series. */ - case_directional_feature_contributions_full?: FeatureValueMap[][]; + case_directional_feature_contributions_full?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - case_directional_feature_contributions_robust?: FeatureValueMap[][]; + case_directional_feature_contributions_robust?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - case_feature_contributions_full?: FeatureValueMap[][]; + case_feature_contributions_full?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - case_feature_contributions_robust?: FeatureValueMap[][]; + case_feature_contributions_robust?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - case_feature_residuals_full?: FeatureValueMap[][]; + case_feature_residuals_full?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - case_feature_residuals_robust?: FeatureValueMap[][]; + case_feature_residuals_robust?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - case_feature_residual_convictions_full?: FeatureValueMap[][]; + case_feature_residual_convictions_full?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - case_feature_residual_convictions_robust?: FeatureValueMap[][]; + case_feature_residual_convictions_robust?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ @@ -90,11 +90,11 @@ export type SeriesReaction = { /** * A list of the detail result lists for each case of each series. */ - directional_feature_contributions_full?: FeatureValueMap[][]; + directional_feature_contributions_full?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - directional_feature_contributions_robust?: FeatureValueMap[][]; + directional_feature_contributions_robust?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ @@ -110,35 +110,35 @@ export type SeriesReaction = { /** * A list of the detail result lists for each case of each series. */ - feature_contributions_full?: FeatureValueMap[][]; + feature_contributions_full?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - feature_contributions_robust?: FeatureValueMap[][]; + feature_contributions_robust?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - feature_mda_ex_post_full?: FeatureValueMap[][]; + feature_mda_ex_post_full?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - feature_mda_ex_post_robust?: FeatureValueMap[][]; + feature_mda_ex_post_robust?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - feature_mda_full?: FeatureValueMap[][]; + feature_mda_full?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - feature_mda_robust?: FeatureValueMap[][]; + feature_mda_robust?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - feature_residuals_full?: FeatureValueMap[][]; + feature_residuals_full?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - feature_residuals_robust?: FeatureValueMap[][]; + feature_residuals_robust?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ @@ -150,23 +150,23 @@ export type SeriesReaction = { /** * A list of the detail result lists for each case of each series. */ - influential_cases?: CaseMaps[][]; + influential_cases?: Case[][]; /** * A list of the detail result lists for each case of each series. */ - most_similar_cases?: CaseMaps[][]; + most_similar_cases?: Case[][]; /** * A list of the detail result lists for each case of each series. */ - most_similar_case_indices?: SimilarCaseMap[][][]; + most_similar_case_indices?: SimilarCaseIndex[][][]; /** * A list of the detail result lists for each case of each series. */ - observational_errors?: FeatureValueMap[][]; + observational_errors?: FeatureMetricIndex[][]; /** * A list of the detail result lists for each case of each series. */ - outlying_feature_values?: OutlyingFeatureValues[][]; + outlying_feature_values?: OutlyingFeatureValuesIndex[][]; /** * A list of the detail result lists for each case of each series. */ diff --git a/src/types/schemas/SetParams.ts b/src/types/schemas/SetParams.ts index 43b99c3..91b3117 100644 --- a/src/types/schemas/SetParams.ts +++ b/src/types/schemas/SetParams.ts @@ -6,8 +6,8 @@ * * Sets internal hyperparameters */ -import type { FullHyperparameterMap } from "./FullHyperparameterMap"; import type { HyperparameterMap } from "./HyperparameterMap"; +import type { HyperparameterMapTree } from "./HyperparameterMapTree"; export type SetParamsRequest = { /** @@ -43,5 +43,5 @@ export type SetParamsRequest = { * ... * } */ - hyperparameter_map?: FullHyperparameterMap; + hyperparameter_map?: HyperparameterMapTree; }; diff --git a/src/types/schemas/SimilarCaseMap.ts b/src/types/schemas/SimilarCaseIndex.ts similarity index 86% rename from src/types/schemas/SimilarCaseMap.ts rename to src/types/schemas/SimilarCaseIndex.ts index 276e341..29bd407 100644 --- a/src/types/schemas/SimilarCaseMap.ts +++ b/src/types/schemas/SimilarCaseIndex.ts @@ -2,13 +2,13 @@ * 🛑 WARNING: DO NOT EDIT! 🛑 * This file is auto generated and should not be modified directly. * - * SimilarCaseMap + * SimilarCaseIndex */ /** * Map describing a case similar to the case being reacted to. Includes the distance from the query case, session, and index. */ -export type SimilarCaseMap = { +export type SimilarCaseIndex = { ".distance"?: number; ".session"?: string; ".session_training_index"?: number; diff --git a/src/types/schemas/index.ts b/src/types/schemas/index.ts index 7bb2ca6..38ca95f 100644 --- a/src/types/schemas/index.ts +++ b/src/types/schemas/index.ts @@ -6,13 +6,13 @@ export * from "./AddFeature"; export * from "./Analyze"; export * from "./AppendToSeriesStore"; export * from "./BuiltInFeatures"; +export * from "./Case"; export * from "./CaseIndices"; export * from "./CaseMDA"; -export * from "./CaseMaps"; export * from "./CategoricalActionProbabilities"; export * from "./ClearImputedData"; export * from "./Condition"; -export * from "./ConfusionMatrixMap"; +export * from "./ConfusionMatrix"; export * from "./CopySubtrainee"; export * from "./CreateSubtrainee"; export * from "./DeleteSession"; @@ -28,12 +28,11 @@ export * from "./ExecuteOnSubtrainee"; export * from "./ExportTrainee"; export * from "./FeatureAttributes"; export * from "./FeatureAttributesIndex"; -export * from "./FeatureBoundsMap"; +export * from "./FeatureBounds"; export * from "./FeatureDataType"; +export * from "./FeatureMetricIndex"; export * from "./FeatureType"; -export * from "./FeatureValueMap"; export * from "./FullCaseContribution"; -export * from "./FullHyperparameterMap"; export * from "./GenerateNewCases"; export * from "./GetAutoAblationParams"; export * from "./GetCases"; @@ -54,11 +53,12 @@ export * from "./GetSessionTrainingIndices"; export * from "./GetSessions"; export * from "./GetSubstituteFeatureValues"; export * from "./HyperparameterMap"; +export * from "./HyperparameterMapTree"; export * from "./Impute"; export * from "./LoadSubtrainee"; export * from "./MoveCases"; export * from "./NewCaseThreshold"; -export * from "./OutlyingFeatureValues"; +export * from "./OutlyingFeatureValuesIndex"; export * from "./Precision"; export * from "./PredictionStat"; export * from "./React"; @@ -89,7 +89,7 @@ export * from "./SetRandomSeed"; export * from "./SetSessionMetadata"; export * from "./SetSubstituteFeatureValues"; export * from "./SetTraineeId"; -export * from "./SimilarCaseMap"; +export * from "./SimilarCaseIndex"; export * from "./Train"; export * from "./UpgradeTrainee"; export * from "./UseCaseWeights";