Skip to content

Remove number of classes parameter from *-LDA - #199

Merged
wildart merged 5 commits into
JuliaStats:masterfrom
wildart:mlda-params
Aug 6, 2022
Merged

Remove number of classes parameter from *-LDA#199
wildart merged 5 commits into
JuliaStats:masterfrom
wildart:mlda-params

Conversation

@wildart

@wildart wildart commented Aug 4, 2022

Copy link
Copy Markdown
Collaborator

Previously, in MC-LDA & SubLDA, labels required to be from a set of integers in the range 1:nc where nc is a total number of classes. That created a problem when some labels in this range where not present in the label collection. e.g. [1,1,3,3,3] label collection has two classes but maximum value of label is 3. This was intentional design decision because label set was used for indexing features during calculation of feature centers. Thus, to avoid incorrect indexing the number of classes parameter was used.
This PR removes the "number of classes" parameter and estimates a number of classes from a number of unique labels. Additionally, PR removes type limitation on label collection.

@wildart
wildart merged commit 1c95f82 into JuliaStats:master Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant