You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Missing Value Imputation Options and Update Shingle Size Limit (opensearch-project#851)
* Add Missing Value Imputation Options and Update Shingle Size Limit
This PR introduces a new missing value imputation feature with three options: zero, fixed values, and previous values. When the fixed values option is selected, users can input custom values for each feature. Validation logic has been added to ensure that the feature names and the number of custom values match the number of enabled features.
Additionally, the review page and model configuration page have been updated to properly display these new parameters.
This PR also increases the maximum shingle size to 128, aligning with the backend implementation.
Testing:
* Updated existing unit tests to reflect these changes.
* Conducted manual end-to-end testing.
Signed-off-by: Kaituo Li <kaituo@amazon.com>
* remove console log
Signed-off-by: Kaituo Li <kaituo@amazon.com>
---------
Signed-off-by: Kaituo Li <kaituo@amazon.com>
* This method replaces all missing values with 0's. It's a simple approach, but it may introduce bias if the data is not centered around zero.
24
+
*/
25
+
ZERO='ZERO',
26
+
/**
27
+
* This method replaces missing values with a predefined set of values. The values are the same for each input dimension, and they need to be specified by the user.
28
+
*/
29
+
FIXED_VALUES='FIXED_VALUES',
30
+
/**
31
+
* This method replaces missing values with the last known value in the respective input dimension. It's a commonly used method for time series data, where temporal continuity is expected.
`The number of custom values (${(imputationOption.custom_value||[]).length}) does not match the number of enabled features (${enabledFeatures.length}).`
196
+
);
197
+
}
198
+
199
+
// Validate that each enabled feature has a corresponding custom value
0 commit comments