Convolutional Neural Networks

Overview


Tensor Flow can be used to create convolutional neural networks.

A convolutional neural network is just a standard neural network, but includes a few extrac layer types.

Convolution Layers





model.add(tf.layers.conv2d({
    inputShape: [IMAGE_WIDTH, IMAGE_HEIGHT, IMAGE_CHANNELS],
    kernelSize: 5,
    filters: 8,
    strides: 1,
    activation: 'relu',
    kernelInitializer: 'varianceScaling'
  }));
				

Max Pooling Layers





 model.add(tf.layers.maxPooling2d({poolSize: [2, 2], strides: [2, 2]}));
				

Flatten Layers





model.add(tf.layers.flatten());
				

Contents