Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding epoch cost functionality to both algorithms. #79

Merged
merged 8 commits into from
Jun 5, 2019

Conversation

daffidwilde
Copy link
Contributor

Following issue #59, I have added the ability to access the epoch costs in the 'best' iteration of either algorithm. This is done by using the epoch_costs_ attribute of a KModes or KPrototypes object.

I am open to suggestions with regard to my writing style and I hope to hear from you soon.

Cheers

Now the cost of the k-modes algorithm at each epoch can be accessed
through the `epoch_costs_` attribute of a `KModes` object after fitting
to some data. These are particularly useful when trying to visualise or
analyse the convergence of the k-modes algorithm.
@nicodv
Copy link
Owner

nicodv commented Jun 22, 2018

Thanks, @daffidwilde ! This looks good, but could you have a look at the failing tests, please?

@daffidwilde
Copy link
Contributor Author

@nicodv Sorry about how long it's been now. Everything seems to be fine on my fork but I hadn't seen the incorporation of parallelism (something else I had thought of opening a ticket about).

Would you rather I resolved these conflicts locally or are you happy to edit yourself?

@daffidwilde
Copy link
Contributor Author

Just had a proper look over the new implementation. I'll redo this now.

@coveralls
Copy link

coveralls commented Aug 22, 2018

Coverage Status

Coverage increased (+0.04%) to 96.552% when pulling 033d087 on daffidwilde:hdw-epoch-costs into f2ee318 on nicodv:master.

@nicodv nicodv merged commit ac729f2 into nicodv:master Jun 5, 2019
@nicodv
Copy link
Owner

nicodv commented Jun 5, 2019

Sorry for forgetting about this PR. Merged now.

Thanks for the contribution, @daffidwilde !

FYI, I've added a simple test case for this too: 8d0e1fc

@daffidwilde daffidwilde deleted the hdw-epoch-costs branch November 4, 2019 12:30
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.

3 participants