[ML] DF Analytics: UI improvements (#71949)

* make hyper parameters one word

* update analytics job types help text

* update job type text

* ensure long description has word break to prevent overflow
This commit is contained in:
Melissa Alvarez 2020-07-16 14:32:22 -04:00 committed by GitHub
parent 46eba14669
commit acf0617762
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 9 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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.',
}
);

View file

@ -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} />