Skip to content

Commit

Permalink
[ML] More doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Dec 17, 2020
1 parent 099775e commit 45b425c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ function getZeroClassesMessage(elasaticUrl: string, version: string) {
defaultMessage="To evaluate the {wikiLink}, select all classes or a value greater than the total number of categories."
values={{
wikiLink: (
<EuiLink
href={`${elasaticUrl}guide/en/machine-learning/${version}/ml-dfanalytics-evaluate.html#ml-dfanalytics-roc`}
target="_blank"
external
>
<EuiLink href={docLink} target="_blank" external>
{i18n.translate('xpack.ml.dataframe.analytics.create.aucRocLabel', {
defaultMessage: 'AUC ROC',
})}
Expand Down Expand Up @@ -136,7 +132,7 @@ export const AdvancedStepForm: FC<CreateAnalyticsStepProps> = ({
const {
services: { docLinks },
} = useMlKibana();
const { ELASTIC_WEBSITE_URL, DOC_LINK_VERSION } = docLinks;
const docLink = docLinks.links.ml.outlierDetectionRoc;

const { setEstimatedModelMemoryLimit, setFormState } = actions;
const { form, isJobCreated, estimatedModelMemoryLimit } = state;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export const EvaluatePanel: FC<EvaluatePanelProps> = ({ jobConfig, jobStatus, se
return <span>{columnId === ACTUAL_CLASS_ID ? cellValue : accuracy}</span>;
};

const { ELASTIC_WEBSITE_URL, DOC_LINK_VERSION } = docLinks;
const docLink = docLinks.links.ml.classificationEvaluation;

const showTrailingColumns = columnsData.length > MAX_COLUMNS;
const extraColumns = columnsData.length - MAX_COLUMNS;
Expand Down Expand Up @@ -300,7 +300,7 @@ export const EvaluatePanel: FC<EvaluatePanelProps> = ({ jobConfig, jobStatus, se
iconType="help"
iconSide="left"
color="primary"
href={`${ELASTIC_WEBSITE_URL}guide/en/machine-learning/${DOC_LINK_VERSION}/ml-dfanalytics-evaluate.html#ml-dfanalytics-classification`}
href={docLink}
>
{i18n.translate(
'xpack.ml.dataframe.analytics.classificationExploration.classificationDocsLink',
Expand Down

0 comments on commit 45b425c

Please sign in to comment.