Skip to content

Adding a CNN-based classifier for the task of entries/other classification#5

Open
iamgroot42 wants to merge 2 commits intoFreeUKGen:masterfrom
iamgroot42:image_classification
Open

Adding a CNN-based classifier for the task of entries/other classification#5
iamgroot42 wants to merge 2 commits intoFreeUKGen:masterfrom
iamgroot42:image_classification

Conversation

@iamgroot42
Copy link
Copy Markdown

Addresses issue #2

I've implemented a small, basic CNN for this task of classification. Images have been resized to a convenient shape, with their colors stripped off. I've added measures to take care of the small amount of data as well as the variations in it; using batch normalization, low learning rates.

In addition to this, I've also used a class-balanced error while training (to account for the class imbalance).
Using the classifier at my end, I achieved a test accuracy of 86.55% and no over-fitting.

Comment thread classification/model.py Outdated
model.add(Activation('relu'))
model.add(Conv2D(32, (3, 3)))
model.add(BatchNormalization())
model.add(Activation('relu'))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is indentation change not causing Python to vomit?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Oh well. Not sure how I missed it :(
Fixed it now

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.

2 participants