-
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] DFAnalytics results: ensure ml result fields are shown in data grid #68305
[ML] DFAnalytics results: ensure ml result fields are shown in data grid #68305
Conversation
Pinging @elastic/ml-ui (:ml) |
@@ -110,7 +111,10 @@ export const getDataGridSchemasFromFieldTypes = (fieldTypes: FieldTypes, results | |||
schema = 'numeric'; | |||
} | |||
|
|||
if (field.includes(`${resultsField}.${FEATURE_IMPORTANCE}`)) { | |||
if ( |
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.
e17963c
to
3324d71
Compare
The PR that removed the The removal of the |
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 and LGTM.
Happy for the removal of the ml.top_classes and ml.feature_importance leaf node fields from the column picker to be done in a follow-up.
3324d71
to
000d61b
Compare
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.
Code LGTM
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…rid (elastic#68305) * wip: ensure top classes and influencer result col show up correctly * ensure ml subFields columns are populated
…rid (elastic#68305) * wip: ensure top classes and influencer result col show up correctly * ensure ml subFields columns are populated
* master: [ML] DFAnalytics results: ensure ml result fields are shown in data grid (elastic#68305) [security_solution] enable react-hooks/exhaustive-deps (elastic#68470) Closes elastic#66867 by adding missing, requried API params (elastic#68465) [Telemetry] collect number of visualization saved in the past 7, 30 and 90 days (elastic#67865) [Logs UI] View in context tweaks (elastic#67777) Kibana developer examples landing page (elastic#67049) Bump decompress package version (elastic#68386) fix elastic#66185 (elastic#66186) Bump pdfmake package version (elastic#68395) Unskip embeddables/adding_children suite (elastic#68111) Add embed mode options in the Share UI (elastic#58435) Adding key to avoid react warning (elastic#68491)
Summary
This PR fixes the issue of seeing blank
ml
subfield columns.ml.feature_importance
andml.top_classes
are arrays of objects. The fields API used to create the columns incorrectly returns a path likeml.top_classes.class_name
referencing theclass_name
property in the object in the array. This leads to blank column values as dot paths can only be in nested objects.This PR fixes the issue by adding a
ml.top_classes
column and correctly displaying the array of objects as the values. It also hides the blank path columns by default.This PR also ensures
ml.feature_importance
column shows up correctly.ml.top_classes
ml.feature_importance
Checklist
Delete any items that are not applicable to this PR.