-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ML] DF Analytics Regression exploration: replace table with data grid #63650
[ML] DF Analytics Regression exploration: replace table with data grid #63650
Conversation
Pinging @elastic/ml-ui (:ml) |
Any idea why @peteharverson - added 'boolean' schema for 'boolean' type fields in e825faa |
Not needed here (as I think it used to show an error before too), but is there a way we can not show an error in this case, when filtering for training/testing data, and the doc count is zero as expected: @peteharverson - good question. This particular error can be returned for reasons other than no documents being returned from the given query to run the evaluate analysis on so I defaulted to always showing it. One thing we could do is only show the error if the docCount is greater than 0. Happy to add it in a follow up as I'll need to do it for both regression/classification views. |
Can we prevent the user trying to sort on the object type @peteharverson - good catch! Fixed in e825faa |
featureImportanceFields.push({ | ||
id: `${resultsField}.feature_importance`, | ||
name: `${resultsField}.feature_importance`, | ||
type: KBN_FIELD_TYPES.NUMBER, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand this change, can you explain why having the individual fields is no longer necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The feature_importance
field is an array of objects so the <results_field>.feature_importance.<id>
field name wasn't actually mapping to anything - that column was just empty.
Setting it as just feature_importance
lets the whole array show up in the popup.
Regarding this comment by @peteharverson:
In the parallel PR I'm working on to consolidate data grid code, I fixed it the following way: whenever the query changes, the paging will reset to the first page. https://github.com/elastic/kibana/pull/63447/files#diff-3a8487254a622f633414d662c4e7a84dR45 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested latest edits and LGTM.
I think it would be nice to hide that 'error' shown in #63650 (comment) when filtering for testing / training, as long as we don't hide genuine errors which are causing the doc count to be zero.
Happy for the paging issue when the query changes the total number of pages to be done in a follow-up.
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
elastic#63650) * add feature_importance column correctly * wip: switch regression table to datagrid * add search bar to regression view * ensure feature importance fields show up correctly * wip: filter by training/testing * remove separate testing/training filter * make error more clear * handle lucene queries * remove unnecessary comment * ensure boolean shows up correctly.no sorting by feature importance * remove unused translations
#63650) (#63739) * add feature_importance column correctly * wip: switch regression table to datagrid * add search bar to regression view * ensure feature importance fields show up correctly * wip: filter by training/testing * remove separate testing/training filter * make error more clear * handle lucene queries * remove unnecessary comment * ensure boolean shows up correctly.no sorting by feature importance * remove unused translations
Summary
Related meta issue: #51288
EuiInMemoryTable
withEuiDataGrid
componentQueryStringInput
componentNOTE
Paging issue @peteharverson mentioned will be fixed in a follow up once @walterra 's fix has been merged in order to use the same solution.
Checklist
Delete any items that are not applicable to this PR.