All Projects → amsukdu → SimplePythonCNN

amsukdu / SimplePythonCNN

Licence: other
Only in native python & numpy with Keras interface

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to SimplePythonCNN

Image-Classifier
Final Project of the Udacity AI Programming with Python Nanodegree
Stars: ✭ 63 (+103.23%)
Mutual labels:  numpy, image-classification
Poke-Pi-Dex
Our deep learning for computer vision related project for nostalgic poke weebs (Sistemi digitali, Unibo).
Stars: ✭ 18 (-41.94%)
Mutual labels:  numpy, image-classification
linbaser
The program on a given grid from a file builds an approximation of the function by a piecewise linear basis. Made mostly in Russian, because of university subject.
Stars: ✭ 10 (-67.74%)
Mutual labels:  numpy
auslan-party
✌Real-time translation of the Auslan Alphabet
Stars: ✭ 38 (+22.58%)
Mutual labels:  image-classification
image-sorter2
One-click image sorting/labelling script
Stars: ✭ 65 (+109.68%)
Mutual labels:  image-classification
AlphaTree-graphic-deep-neural-network
AI Roadmap:机器学习(Machine Learning)、深度学习(Deep Learning)、对抗神经网络(GAN),图神经网络(GNN),NLP,大数据相关的发展路书(roadmap), 并附海量源码(python,pytorch)带大家消化基本知识点,突破面试,完成从新手到合格工程师的跨越,其中深度学习相关论文附有tensorflow caffe官方源码,应用部分含推荐算法和知识图谱
Stars: ✭ 2,221 (+7064.52%)
Mutual labels:  image-classification
Batch-First
A JIT compiled chess engine which traverses the search tree in batches in a best-first manner, allowing for neural network batching, asynchronous GPU use, and vectorized CPU computations.
Stars: ✭ 27 (-12.9%)
Mutual labels:  numpy
CC33Z
Curso de Ciência da Computação
Stars: ✭ 50 (+61.29%)
Mutual labels:  numpy
PVMismatch
An explicit Python PV system IV & PV curve trace calculator which can also calculate mismatch.
Stars: ✭ 51 (+64.52%)
Mutual labels:  numpy
datascienv
datascienv is package that helps you to setup your environment in single line of code with all dependency and it is also include pyforest that provide single line of import all required ml libraries
Stars: ✭ 53 (+70.97%)
Mutual labels:  numpy
CGvsPhoto
Computer Graphics vs Real Photographic Images : A Deep-learning approach
Stars: ✭ 24 (-22.58%)
Mutual labels:  image-classification
Data-Science-Resources
A guide to getting started with Data Science and ML.
Stars: ✭ 17 (-45.16%)
Mutual labels:  numpy
transonic
🚀 Make your Python code fly at transonic speeds!
Stars: ✭ 93 (+200%)
Mutual labels:  numpy
Plant AI
Performing Leaf Image classification for Recognition of Plant Diseases using various types of CNN Architecture, For detection of Diseased Leaf and thus helping the increase in crop yield.
Stars: ✭ 36 (+16.13%)
Mutual labels:  image-classification
ros2-tensorflow
ROS2 nodes for computer vision tasks in Tensorflow
Stars: ✭ 41 (+32.26%)
Mutual labels:  image-classification
hamilton
A scalable general purpose micro-framework for defining dataflows. You can use it to create dataframes, numpy matrices, python objects, ML models, etc.
Stars: ✭ 612 (+1874.19%)
Mutual labels:  numpy
MNIST
Handwritten digit recognizer using a feed-forward neural network and the MNIST dataset of 70,000 human-labeled handwritten digits.
Stars: ✭ 28 (-9.68%)
Mutual labels:  image-classification
skinner
Skin export / import tools for Autodesk Maya
Stars: ✭ 68 (+119.35%)
Mutual labels:  numpy
favorite-research-papers
Listing my favorite research papers 📝 from different fields as I read them.
Stars: ✭ 12 (-61.29%)
Mutual labels:  image-classification
introduction to ml with python
도서 "[개정판] 파이썬 라이브러리를 활용한 머신 러닝"의 주피터 노트북과 코드입니다.
Stars: ✭ 211 (+580.65%)
Mutual labels:  numpy

SimplePythonCNN

This is Convolutional Neural Network only in python & numpy. It is simple and slow but will get the job done 👍

Specification

Weight Initialization : HE Normal

Weight Update Policy : ADAM, NAG, Momentum, Vanila

Active Function : ReLU, Sigmoid

Regulization : Droupout(only on fc), L2

Pooling : Max, Average

Loss Function : Softmax, Logistic

Prerequisites

numpy (+ mkl for intel processors. recommend anaconda)
Used sklearn for LabelEncoder & utils.shuffle on examples.

Example

AND gate and CIFAR-10 examples are included.

lr = 1e-4
l2_reg = 8e-6

cnn = NeuralNetwork(train_images.shape[1:],
                    [
                        {'type': 'conv', 'k': 16, 'u_type': 'nag', 'f': 5, 's': 1, 'p': 2},
                        {'type': 'pool', 'method': 'average'},
                        {'type': 'conv', 'k': 20, 'u_type': 'nag', 'f': 5, 's': 1, 'p': 2},
                        {'type': 'pool', 'method': 'average'},
                        {'type': 'conv', 'k': 20, 'u_type': 'nag', 'f': 5, 's': 1, 'p': 2},
                        {'type': 'pool', 'method': 'average'},
                        {'type': 'output', 'k': len(le.classes_), 'u_type': 'adam'}
                    ]
                    , lr, l2_reg=l2_reg)

CIFAR-10 example gets ~72% test accuracy in 20 epoch.

API Reference

classes.NeuralNetwork(self, input_shape, layer_list, lr, l2_reg=0, loss='softmax'):

Parameter Description
input_shape Data's numpy shape.
layer_list List of layers you want to be networked. All of properties goes to **kwargs.
lr Learning rate.
l2_reg L2 regularization
loss Loss function. 'softmax', 'logistic'
# type fc, output
classes.NeuralLayer(input_size, k, f=3, s=1, p=1, u_type='adam', a_type='relu', dropout=1)

# type pool
classes.PoolLayer(input_size, f=2, s=2, method='max', dropout=1):

# type conv
classes.ConvLayer(input_size, k, f=3, s=1, p=1, u_type='adam', a_type='relu', dropout=1)

Update Policy u_type
ADAM 'adam'
Momentum 'm'
Vanilla 'v'
NAG 'nag'
RMSProp 'rmsprop'
Activation Function a_type
ReLU 'relu'
Sigmoid 'sigmoid'
Pooling method
Max 'max'
Avverage 'average'

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].