How to save and load keras model ? The easiest way to save and load keras model is: Save model
from keras.models import load_model
new_model = load_model('/user/path-to-dir/saved-model.h5')
This technique of saving the model is very useful. This approach saves: Architecture of the model Weights of the model Training state (like loss, optimizer etc.) State of the optimizer, which… Read More »
unzip: cannot find zipfile directory in one of dogscats.zip I was going through first lesson on fast.ai. I got stuck while unzipping the file containing dataset. After trying different solutions, like using 7z, jar etc. I finally found the solution! Error ‘On running the unzip command, I was getting the following error: Archive: dogscats.zip End-of-central-directory signature… Read More »
K-Nearest Neighbours Visual Demo Please check this graphical demo of K-Nearest Neighbours algorithm. I found it on Stanford website: http://vision.stanford.edu/teaching/cs231n-demos/knn/ I will explain how this algorithm works in another blog.
Understanding Visual Cortex: for Deep Learning Working in deep learning, one would often encounter the term ‘visual cortex’. Especially, while studying ConvNets. We are not the biologists, so we need not to go deeper into this. Yet, it is very essential to know, as what we use today in AI, is inspired from nature. According… Read More »
Hey brahmins! have courage. Do not let yourself down. “Never get discouraged. Remember always, you are the son of those perfected beings, the givers of the great Vedas. Close your eyes and call them“ Read the next motivational brahmin quote here!
Run Jupyter Notebook on AWS EC2 Instance Data scientists largely prefer working on Jupyter Notebook for number of reasons. It makes Python code more visible and easy to interpret. Simultaneously with programming, we can visualise our data using different Python libraries. I personally enjoy working in this environment. It let’s me visualise each step of… Read More »
Transfer files between laptop and Amazon web server is an essential function one must learn. I needed to learn this for the purpose of transferring my Jupyter Notebooks from my machine to AWS server and vice versa. Deep learning has become popular and it is evolving each day. Training deep learning models with large data… Read More »
Move specific number of files mac/unix terminal In order to move specific number of files from one directory to another on mac, use the following command in mac terminal. This command is very useful in data science for segregating the data for training and testing purpose. Credit for this post goes to @hardikthaker. Thanks to… Read More »
Kaggle Digit Recognizer using Softmax regression As a machine learning enthusiast, one would definitely want to solve some practical problems. Kaggle is one of the best platform to do so. It provides list of data science problems, including paid competitions. Kaggle digit recognizer is one of those problems. One of the tutorial problem is called… Read More »
“When the world around him chatters, he remains silent. Silence is not his weakness but strength. Deep within his silence resides Brahma. ” (Brahmin Quote #2) Read the next motivational brahmin quote here!