# Month: June 2018

## [2-min CS Concepts] What is a Hypergraph?

You most likely know graphs. The web graph consists of websites connected via hyperlinks. The websites are graph vertices and the hyperlinks are graph edges. Each graph edge connects exactly two vertices. What happens if you drop this limitation and allow each edge to connect an arbitrary number of vertices? Simple: you get a hypergraph. …

## [2-min CS Papers] A Short Introduction to the TensorFlow System

Machine Learning (ML) is a sought-after skill in today’s automated world. Google is one of the key players in the Machine Learning space. With the growing scale and popularity of deep learning, the limitations of a single machine become more and more pronounced. Google’s response to this challenge is the distributed TensorFlow system. TensorFlow is …

## [2-min Computer Science Papers] A Short Introduction into the MapReduce System

Google processes huge data sets. For example, the search engine needs to know how often words occur in web documents. The data sets are too large for a single computer. As a single computer has only eight CPUs, processing the data takes forever. Hence, Google uses hundreds of computers in parallel. But writing parallel programs …

## [2-min Computer Science Concepts] What are Arrays?

Do you know the matrix movie? A matrix is a data structure that holds a bunch of data items of the same type. For example, a matrix of integers holds a set of numbers.   An array is the exact same thing as a matrix. In fact, a matrix is nothing but an array, or …

## Is This an Average Puzzle? Yes!

Daily Data Science Puzzle [python] import numpy as np # Goals in five matches goals_brazil = np.array( [1,2,3,1,2]) goals_germany = np.array( [1,0,1,2,0]) br = np.average(goals_brazil) ge = np.average(goals_germany) print(br>ge) [/python] What is the output of this puzzle? *Beginner Level* Numpy is a popular Python library for data science focusing on arrays, vectors, and matrices. This …

## NumPy Matrix Multiplication — np.matmul() and @ [Ultimate Guide]

Have you ever tried to multiply two NumPy arrays together and got a result you didn’t expect? NumPy’s multiplication functions can be confusing. In this article, we’ll explain everything you need to know about matrix multiplication in NumPy. Watch the video where I go over the article in detail: To perform matrix multiplication between 2 …

## How to Multiply 2D Matrices in Numpy?

Daily Data Science Puzzle [python] import numpy as np # graphics data a = [[1, 1], [1, 0]] # stretch vectors b = [[2, 0], [0, 2]] c = np.matmul(a, b) print(c[0,1]) [/python] What is the output of this puzzle? Numpy is a popular Python library for data science focusing on arrays, vectors, and matrices. …

## The Dot Product in Numpy

Daily Data Science Puzzle [python] import numpy as np # simple regression model W = np.array([0.7, 0.2, 0.1]) # Google stock prices (in US-\$) # [today, yesterday, 2 days ago] x = np.array([1131, 1142, 1140]) # prediction y = np.dot(W, x) # do we expect growing prices? if y > x[0]: print("buy") else: print("sell") [/python] …

## Who Dominates Instagram or Comparing Each Element of a Numpy Array

Daily Data Science Puzzle [python] import numpy as np # popular instagram accounts # (millions followers) inst = [232, #"@instagram" 133, #"@selenagomez" 59, #"@victoriassecret" 120, #"@cristiano" 111, #"@beyonce" 76] #"@nike" inst = np.array(inst) superstars = inst > 100 print(superstars[0]) print(superstars[2]) [/python] What is the output of this puzzle? Numpy is a popular Python library for …