Deploying Laravel 5.4 project in shared-hosting with no SSH

Despite lack of compact guides in the internet, deploying Laravel 5.4 project in cheap shared hosting (with no SSH support) is actually quite simple. The steps are: 1.  Import database to the shared hosting’s database using available tool such as phpMyAdmin 2. Upload the content of public directory in your Laravel project to public area…

Training NER model using Stanford Core NLP CRF Classifier

Download latest Stanford Core NLP suite from https://stanfordnlp.github.io/CoreNLP/ Prepare files: Training dataset. List of word tokens annotated with their Named-Entity class (eg. PERS for Person entity). Example: jane-austen-emma-ch1.tsv Training properties. Training cofiguration properties for a CRF classifier (eg. input file(s), output file, features .etc). Example: jane-austen.prop Test dataset. Similar to training dataset but with different…

Understanding LeNet (LeCun, 1998)

As an attempt to understand Convolutional Neural Network (CNN/ConvNet) better, I was suggested to read the section about LeNet5 in the original paper and figure out where every numbers come from 🤔 Input layer The input of this neural network is an image of size 32*32 pixels where each pixels are represented by an input…

Keras VGG16 with different input shape

Keras graciously provides an API to use pretrained models such as VGG16 easily. Unfortunatey, if we try to use different input shape other than 224 x 224 using given API (keras 1.1.1 & theano 0.9.0dev4) from keras.layers import Input from keras.optimizers import SGD from keras.applications.vgg16 import VGG16 … model = VGG16(weights=’imagenet’, input_tensor=Input(shape=(3, 300, 300))) sgd…

Loopback automatic creation & modification timestamp

In certain cases, it’s convenience to have automatic creation & modification timestamp where system automatically records when and who create/update a record. So far, I find that the most efficient way to do this in Loopback is by utilizing hook feature. Based on the docs, there are 3 types of hooks provided by loopback based…

Restricted Boltzmann Machine with DeepLearnToolbox

In attempt to learn about deep learning’s fundamentals (and to fulfill a course assignment too), I tried to write a simple Restricted Boltzmann Machine (RBM) in GNU Octave by extracting Deep Belief Network (DBN) code example of DeepLearnToolbox. In case you are wondering, RBM is a machine learning algorithm that is promoted by Geoffrey Hinton…

Bash script to batch-convert MKV to MP4 (Linux)

I have been looking a simple way to convert my *.mkv TV series collections to *.mp4 so I can watch it on my TV. Luckily, I stumbled upon a post in stackoverflow about it. So I took the code and modified it a bit so it can automatically find all *.mkv files in a directory…