Skip to content

Commit

Permalink
[ML] DF Analytics: UI improvements (#71949) (#72127)
Browse files Browse the repository at this point in the history
* make hyper parameters one word

* update analytics job types help text

* update job type text

* ensure long description has word break to prevent overflow
  • Loading branch information
alvarezmelissa87 authored Jul 16, 2020
1 parent 01008ad commit 79416c1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export const AdvancedStepDetails: FC<{ setCurrentStep: any; state: State }> = ({
<EuiTitle size="xs">
<h3>
{i18n.translate('xpack.ml.dataframe.analytics.create.hyperParametersDetailsTitle', {
defaultMessage: 'Hyper parameters',
defaultMessage: 'Hyperparameters',
})}
</h3>
</EuiTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ export const AdvancedStepForm: FC<CreateAnalyticsStepProps> = ({
<EuiTitle size="xs">
<h3>
{i18n.translate('xpack.ml.dataframe.analytics.create.hyperParametersSectionTitle', {
defaultMessage: 'Hyper parameters',
defaultMessage: 'Hyperparameters',
})}
</h3>
</EuiTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,21 @@ export const JobType: FC<Props> = ({ type, setFormState }) => {
const outlierHelpText = i18n.translate(
'xpack.ml.dataframe.analytics.create.outlierDetectionHelpText',
{
defaultMessage:
'Outlier detection jobs require a source index that is mapped as a table-like data structure and analyze only numeric and boolean fields. Use the advanced editor to add custom options to the configuration.',
defaultMessage: 'Outlier detection identifies unusual data points in the data set.',
}
);

const regressionHelpText = i18n.translate(
'xpack.ml.dataframe.analytics.create.outlierRegressionHelpText',
{
defaultMessage:
'Regression jobs analyze only numeric fields. Use the advanced editor to apply custom options, such as the prediction field name.',
defaultMessage: 'Regression predicts numerical values in the data set.',
}
);

const classificationHelpText = i18n.translate(
'xpack.ml.dataframe.analytics.create.classificationHelpText',
{
defaultMessage:
'Classification jobs require a source index that is mapped as a table-like data structure and support fields that are numeric, boolean, text, keyword, or ip. Use the advanced editor to apply custom options, such as the prediction field name.',
defaultMessage: 'Classification predicts labels of data points in the data set.',
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ export const DetailsStepDetails: FC<{ setCurrentStep: any; state: State }> = ({
<EuiDescriptionList compressed listItems={detailsFirstCol} />
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiDescriptionList compressed listItems={detailsSecondCol} />
<EuiDescriptionList
style={{ wordBreak: 'break-word' }}
compressed
listItems={detailsSecondCol}
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiDescriptionList compressed listItems={detailsThirdCol} />
Expand Down

0 comments on commit 79416c1

Please sign in to comment.