Skip to content

Commit 875cdfc

Browse files
[ML] DF Analytics job creation: Add 'excludes' input field to form (#53856)
* Add exclude fields input to df analytics creation form * rename explain api endpoint to general explainDataFrameAnalytics * wip: use explain api for exclude fields * show error message if classification depVar has cardinality of > 2 * update types * updates after conflict resolution * prevent creation if more than 2 distinct classes for class job. create form field validation file
1 parent 12e9fbd commit 875cdfc

File tree

11 files changed

+316
-86
lines changed

11 files changed

+316
-86
lines changed

x-pack/legacy/plugins/ml/public/application/data_frame_analytics/common/analytics.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,23 @@ export enum INDEX_STATUS {
5858
ERROR,
5959
}
6060

61+
export interface FieldSelectionItem {
62+
name: string;
63+
mappings_types: string[];
64+
is_included: boolean;
65+
is_required: boolean;
66+
feature_type?: string;
67+
reason?: string;
68+
}
69+
70+
export interface DfAnalyticsExplainResponse {
71+
field_selection: FieldSelectionItem[];
72+
memory_estimation: {
73+
expected_memory_without_disk: string;
74+
expected_memory_with_disk: string;
75+
};
76+
}
77+
6178
export interface Eval {
6279
meanSquaredError: number | string;
6380
rSquared: number | string;

x-pack/legacy/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/create_analytics_form/create_analytics_form.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('Data Frame Analytics: <CreateAnalyticsForm />', () => {
4040
);
4141

4242
const euiFormRows = wrapper.find('EuiFormRow');
43-
expect(euiFormRows.length).toBe(8);
43+
expect(euiFormRows.length).toBe(9);
4444

4545
const row1 = euiFormRows.at(0);
4646
expect(row1.find('label').text()).toBe('Job type');

0 commit comments

Comments
 (0)