Redis Data Types

BY

Redis has these data types: Binary-safe strings Lists Sets Sorted sets Hashes Bit arrays HyperLogLogs Here, we briefly explain each of these. Redis keys The first element of any Redis data structure is a key. One notable difference with Redis than other systems is that they you can set keys to expire after a certain … [Read more...]

Apache Redis In Memory Database

BY

Architecture Redis is a distributed in-memory database. It stores data in key, value pairs. There are no tables, schema, or collections. Redis processes data in memory but stores it on disk. Processing it in memory means it is very fast, because there are no mechanical moving parts as there is no disk I/O. Of course in memory processes that … [Read more...]

Redis Clustering and Partitioning for Beginners

BY

One way to boost the performance of Redis is to put all records with the same keys into the same node. In that case only one node needs to be read when looking for values with that key. Here we explain the principles behind that. Suppose you want to separate customers, employees, and vendors into separate nodes. The way to do that would be … [Read more...]

Using GPUs (Graphical Processing Units) for Machine Learning

BY

You are probably familiar with Nvidia as they have been developing graphics chips for laptops and desktops for many years now. But the company has found a new application for its graphic processing units (GPUs): machine learning. It is called CUDA. Nvidia says: "CUDA® is a parallel computing platform and programming model invented by NVIDIA. It … [Read more...]

Introduction to Neural Networks Part II

BY

In the previous post we introduced the concept of perceptrons, which take inputs from simple linear equations and output 1 (true) or 0 (false). They are the left-hand side of the neural network. But as Michael Nielsen explains, in his book, perceptrons are not suitable for tasks like image recognition because small changes to the weights and … [Read more...]

What is a Neural Network? Introduction to Neural Networks Part I

BY

We want to explore machine learning on a deeper level by discussing neural networks. We will do that by explaining how you can use Tensor Flow to recognize handwriting. But to do that we first must understand what are neural networks. We begin our discussion, based upon our knowledge of linear models, and draw some introductory material from … [Read more...]

Introduction to TensorFlow and Logistic Regression

BY

Here we introduce TensorFlow, an opensource machine learning library developed by Google. We explain what it does and show how to use it to do logistic regression. Background TensorFlow has many applications to machine learning, including neural networks. One application of neural networks is handwriting analysis. Another is facial recognition. … [Read more...]

Working with MongoDB Aggregate Functions

BY

This is the second part of the tutorial on how to use NodeJS with MongoDB. Here we switch to using the regular MongoDB shell and commands to make the study of aggregate functions simpler. To show how to use aggregate functions, we will first explain how to do basic queries. Then we will show how to do the WordCount program, which is what people … [Read more...]