Category Archives: Deep Learning

SSLError, URLError – URL fetch error occurs Keras, Python

SSLError, URLError – URL fetch error occurs Keras, Python Recently, I was trying to use pre-trained InceptionResNetV2 model in one of my project. The following error(sslerror) occurred when the program tried to download the weights of the pre-trained model: “SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645)” “URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol… Read More »

model-how to save and load keras model ?

How to save and load keras model ? The easiest way to save and load keras model is: Save model

Load model

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

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

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.

Run Jupyter Notebook on AWS EC2 Instance

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 AWS server

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 »

Kaggle Digit Recognizer using Softmax regression

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 »