Skip to content
This repository was archived by the owner on May 21, 2022. It is now read-only.

ERROR: UndefVarError: indmax not defined #51

Closed
drozzy opened this issue Nov 27, 2020 · 3 comments
Closed

ERROR: UndefVarError: indmax not defined #51

drozzy opened this issue Nov 27, 2020 · 3 comments

Comments

@drozzy
Copy link
Contributor

drozzy commented Nov 27, 2020

Going through the docs https://mldatapatternjl.readthedocs.io/en/latest/documentation/targets.html when I reach this line:

targets(indmax, X, obsdim=1)

The indmax function was never defined up to this point, so we get the error:

ERROR: UndefVarError: indmax not defined
@drozzy
Copy link
Contributor Author

drozzy commented Nov 29, 2020

My understanding is this is some deprecated function in Julia, and now argmax is used instead?

@johnnychen94
Copy link
Member

Correct, indmax was a Base function and was removed in v1.0. Glad you have worked this out by yourself, would you mind to update the docs accordingly?

@drozzy
Copy link
Contributor Author

drozzy commented Nov 30, 2020

Sure see #52

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants