Skip to content

Commit

Permalink
[ML] Adds context sensitive placeholder text to dependent variable on…
Browse files Browse the repository at this point in the history
… data frame analytics configuration page (#103086) (#103750)

Co-authored-by: István Zoltán Szabó <[email protected]>
  • Loading branch information
kibanamachine and szabosteve authored Jun 29, 2021
1 parent e4600b6 commit 20581d6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -598,12 +598,22 @@ export const ConfigurationStepForm: FC<ConfigurationStepProps> = ({
defaultMessage: 'Enter field to be used as dependent variable.',
}
)}
placeholder={i18n.translate(
'xpack.ml.dataframe.analytics.create.dependentVariablePlaceholder',
{
defaultMessage: 'dependent variable',
}
)}
placeholder={
jobType === ANALYSIS_CONFIG_TYPE.REGRESSION
? i18n.translate(
'xpack.ml.dataframe.analytics.create.dependentVariableRegressionPlaceholder',
{
defaultMessage: 'Select the numeric field that you want to predict.',
}
)
: i18n.translate(
'xpack.ml.dataframe.analytics.create.dependentVariableClassificationPlaceholder',
{
defaultMessage:
'Select the numeric, categorical, or boolean field that you want to predict.',
}
)
}
isDisabled={isJobCreated}
isLoading={loadingDepVarOptions}
singleSelection={true}
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -14037,7 +14037,6 @@
"xpack.ml.dataframe.analytics.create.dependentVariableMaxDistictValuesError": "無効です。 {message}",
"xpack.ml.dataframe.analytics.create.dependentVariableOptionsFetchError": "フィールドの取得中にエラーが発生しました。ページを更新して再起動してください。",
"xpack.ml.dataframe.analytics.create.dependentVariableOptionsNoNumericalFields": "このインデックスパターンの数値型フィールドが見つかりませんでした。",
"xpack.ml.dataframe.analytics.create.dependentVariablePlaceholder": "従属変数",
"xpack.ml.dataframe.analytics.create.destinationIndexHelpText": "この名前のインデックスがすでに存在します。この分析ジョブを実行すると、デスティネーションインデックスが変更されます。",
"xpack.ml.dataframe.analytics.create.destinationIndexInputAriaLabel": "固有の宛先インデックス名を選択してください。",
"xpack.ml.dataframe.analytics.create.destinationIndexInvalidError": "無効なデスティネーションインデックス名。",
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -14219,7 +14219,6 @@
"xpack.ml.dataframe.analytics.create.dependentVariableMaxDistictValuesError": "无效。{message}",
"xpack.ml.dataframe.analytics.create.dependentVariableOptionsFetchError": "获取字段时出现问题。请刷新页面并重试。",
"xpack.ml.dataframe.analytics.create.dependentVariableOptionsNoNumericalFields": "没有为此索引模式找到任何数值类型字段。",
"xpack.ml.dataframe.analytics.create.dependentVariablePlaceholder": "因变量",
"xpack.ml.dataframe.analytics.create.destinationIndexHelpText": "已存在具有此名称的索引。请注意,运行此分析作业将会修改此目标索引。",
"xpack.ml.dataframe.analytics.create.destinationIndexInputAriaLabel": "选择唯一目标索引名称。",
"xpack.ml.dataframe.analytics.create.destinationIndexInvalidError": "目标索引名称无效。",
Expand Down

0 comments on commit 20581d6

Please sign in to comment.