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

Default hash cleanup #45

Merged
merged 7 commits into from
Sep 15, 2015
Merged

Default hash cleanup #45

merged 7 commits into from
Sep 15, 2015

Conversation

kreynolds
Copy link
Contributor

Few things got done here:

  • Set up a few things to use default hash values
  • made auto-categorization optional, defaulting to false
  • Fixed the bug where adding the same category a second time would completely clobber the category that was already there
  • If a category name is already a symbol, just return it

kreynolds referenced this pull request Sep 10, 2015
This mod makes it soe that you can train categories that have not been previously defined in the constructor.
@@ -6,23 +6,26 @@

module ClassifierReborn
class Bayes
class CategoryNotFound < StandardError; end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! Please suffix this with Error or Exception.

What do you think about CategoryNotFoundError = Class.new(StandardError) to create them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add Error. Is there a compelling reason to choose one exception definition over another?

@Ch4s3
Copy link
Member

Ch4s3 commented Sep 11, 2015

I'll take a look this weekend 👍

Ch4s3 added a commit that referenced this pull request Sep 15, 2015
@Ch4s3 Ch4s3 merged commit 3413071 into jekyll:master Sep 15, 2015
@kreynolds kreynolds deleted the default-hash-cleanup branch November 11, 2015 21:32
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.

None yet

3 participants