Professional Documents
Culture Documents
NO
ABSTRACT 06
LITERATURE REVIEW 07
INTRODUCTION 08
1. CO-LABORATORY
1.1 COLAB SOFTWARE DETAILS 09
1.2 PROJECTS 10
2. METHODOLOGY
2.1 TENSOR FLOW 11
2.2 MATPLOTLIB
2.3 RELU 12
2.4 ARGMAX
2.5 SOFTMAX 13
K. Gaurav, Bhatia P. K. Et al, this paper deals with the various pre-processing
techniques involved in the character recognition with different kind of images
ranges from a simple handwritten form based documents and documents
containing colored and complex background and varied intensities. In this,
different preprocessing techniques like skew detection and correction, image
enhancement techniques of contrast stretching, binarization, noise removal
techniques, normalization and segmentation, morphological processing
techniques are discussed. It was concluded that using a single technique for
preprocessing, we can’t completely process the image. However, even after
applying all the said techniques might not possible to achieve the full accuracy
in a preprocessing system.
INTRODUCTION
Advocating a form of cultural activism that was purely artist driven, the
group created artworks, negotiated venues, curated shows, and engaged
in discourse that responded to the political themes and predicaments of
their time, among them the recessions of the 1970s, the Reagan era of
budget cuts and nuclear armament, the housing crisis and gentrification
in New York City, and other pressing social issues.
TensorFlow can train and run deep neural networks for handwritten
digit classification, image recognition, word embeddings, recurrent
neural networks, sequence-to-sequence models for machine
translation, natural language processing, and PDE (partial
differential equation) based simulations. Best of all,TensorFlow
supports production prediction at scale, with the same models used
for training.
2.2 MATPLOTLIB
The ReLU is the most used activation function in the world right
now. Since, it is used in almost all the convolutional neural networks
or deep learning. As you can see, the ReLU is half rectified (from
bottom). f(z) is zero when z is less than zero and f(z) is equal to z
when z is above or equal to zero.
2.4 ARGMAX
Argmax is a mathematical function that you may encounter
in applied machine learning.
Argmax is an operation that finds the argument that gives
the maximum value from a target function. Argmax is most
commonly used in machine learning for finding the class
with the largest predicted probability.
import numpy as np
# New Section
mnist = tf.keras.datasets.mnist
(xtrain,ytrain),(xtest,ytest) = mnist.load_data()
len(xtest)
xtrain[12]
ytrain[12]
plt.imshow(xtrain[12])
plt.show()
plt.imshow(xtrain[100])
plt.show()
plt.imshow(xtrain[100],cmap='gray')
plt.show()
for i in range(25):
plt.subplot(5,5,i+1)
plt.imshow(xtrain[i],cmap='gray')
plt.show()
for i in range(25):
plt.subplot(5,5,i+1)
plt.xticks([])
plt.yticks([])
plt.imshow(xtrain[i],cmap='gray')
plt.show()
model = tf.keras.models.Sequential()
model.add(tf.keras.layers.Dense(10,activation='softmax'))
model.compile(optimizer='adam',loss='sparse_categorical_crossentropy',metrics=['accuracy'])
## model.fit(xtrain,ytrain,epochs=3,batch_size=20)
model.fit(xtrain,ytrain,epochs=3)
##### Predictions
predictions = model.predict(xtest)
plt.figure(figsize=(10,10))
for i in range(25):
plt.subplot(5,5,i+1)
plt.xticks([])
plt.yticks([])
plt.imshow(xtest[i],cmap='gray')
plt.show()
ytest[4]
np.argmax(predictions[4])
np.argmax(predictions[20])
predictions[20]
loss,accu = model.evaluate(xtest,ytest)
loss,accu
OUTPUT
CONCLUSION
The main goal is purely educational one, a moderate recognition rate of
98% was reached on a test set.