Skip to content

Commit

Permalink
[ML] DF Analytics job creation: Add 'excludes' input field to form (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
alvarezmelissa87 authored Jan 7, 2020
1 parent 6a2fb61 commit 865462a
Show file tree
Hide file tree
Showing 11 changed files with 316 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,23 @@ export enum INDEX_STATUS {
ERROR,
}

export interface FieldSelectionItem {
name: string;
mappings_types: string[];
is_included: boolean;
is_required: boolean;
feature_type?: string;
reason?: string;
}

export interface DfAnalyticsExplainResponse {
field_selection: FieldSelectionItem[];
memory_estimation: {
expected_memory_without_disk: string;
expected_memory_with_disk: string;
};
}

export interface Eval {
meanSquaredError: number | string;
rSquared: number | string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Data Frame Analytics: <CreateAnalyticsForm />', () => {
);

const euiFormRows = wrapper.find('EuiFormRow');
expect(euiFormRows.length).toBe(8);
expect(euiFormRows.length).toBe(9);

const row1 = euiFormRows.at(0);
expect(row1.find('label').text()).toBe('Job type');
Expand Down
Loading

0 comments on commit 865462a

Please sign in to comment.