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 Concepts] What is a Hypergraph? Read More »

[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 CS Papers] A Short Introduction to the TensorFlow System Read More »

[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 Papers] A Short Introduction into the MapReduce System Read More »

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 …

Is This an Average Puzzle? Yes! Read More »

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 …

NumPy Matrix Multiplication — np.matmul() and @ [Ultimate Guide] Read More »

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 …

Who Dominates Instagram or Comparing Each Element of a Numpy Array Read More »

Exploring Shape, Reshape, and Average in Numpy

Daily Data Science Puzzle [python] import numpy as np def makeTwoDim(x): if len(x.shape)==1: x = x.reshape(len(x) // 2, 2) return x # apple stock prices (May 2018) prices = [ 189, 186, 186, 188, 187, 188, 188, 186, 188, 188, 187, 186 ] data = np.array(prices) data = makeTwoDim(data) print(np.average(data[-1])) [/python] What is the output …

Exploring Shape, Reshape, and Average in Numpy Read More »