Machines learn by means of a loss function which reflects how well a specific model performs with the given data. If predictions deviate too much from actual results, loss function would yield a very large value. Gradually, with function, parameters are modified accordingly to reduce the error in prediction. In this article, we will quickly review some common loss functions and their usage in the...
A.I in agriculture – Fruit Grading with Keras (part 2)
In part 1, we introduced fruit classification with pure python implementation. In this part, we will use the Keras library instead. What is Keras Keras is an open-sourceneural-network library written in Python. It is capable of running on top of TensorFlow, Microsoft Cognitive Toolkit, Theano, or PlaidML. Designed to enable fast experimentation...
AI in agriculture: fruit grading (Part 1)
During a meet up last month, a friend told me about the current project on a farm in New Zealand. They want to build a system to grade their fruits and AI is the technology they are looking for. It inspired me to write about how machine learning can help in solving such a problem. Fig 1: Apple grading The grading task Given an apple, we need to sort it to correct category in three available...
Convolutional Neural Network with CIFAR and Tensorflow (example)
Fig 1: A CNN sequence to classify handwritten digits (src: medium) In this article, we assume that you already understand the basic concepts of a convolutional neural network (CNN), e.g. one-hot coding, convolution, pooling, fully-connected layer, activation functions. If you are totally new to these terms, please find and read our other articles. The problem We will use Tensorflow to build a...
Machine learning quick note
Machine learning is a terminology to describe the uses statistical techniques to give computer systems the ability to “learn” (e.g., progressively improve performance on a specific task) from data, without being explicitly programmed. You can think of machine learning as the brains behind AI technologies, and AI technologies do the actions. More technically, machine learning...