Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
#!/usr/bin/env bash | |
# Find the latest Amazon-created "Deep Learning AMI (Ubuntu 18.04)" AMI image ID | |
# | |
# args explanation: | |
# --region us-east-1 | |
# Specifies the AWS region (you can also specify it in your | |
# ~/.aws/config or via the `AWS_REGION` or `AWS_DEFAULT_REGION` | |
# env vars) | |
# |
name: CI | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: |
In a classic hadoop job, you've got mappers and reducers. The "thing" being mapped and reduced are key-value pairs for some arbitrary pair of types. Most of your parallelism comes from the mappers, since they can (ideally) split the data and transform it without any coordination with other processes.
By contrast, the amount of parallelism in the reduction phase has an important limitation: although you may have many reducers, any given reducer is guaranteed to receive all the values for some particular key.
So if there are a HUGE number of values for some particular key, you're going to have a bottleneck because they're all going to be processed by a single reducer.
However, there is another way! Certain types of data fit into a pattern:
import sys | |
import numpy | |
from nltk.cluster import KMeansClusterer, GAAClusterer, euclidean_distance | |
import nltk.corpus | |
from nltk import decorators | |
import nltk.stem | |
stemmer_func = nltk.stem.EnglishStemmer().stem | |
stopwords = set(nltk.corpus.stopwords.words('english')) |
Copyright © 2017 Fantasyland Institute of Learning. All rights reserved.
A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.
val square : Int => Int = x => x * x
import akka.actor.{ Actor, Props } | |
object $NAME$ { | |
def props: Props = Props(new $NAME$) | |
} | |
class $NAME$ extends Actor { | |
override def receive = ??? | |
} |