This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
ENV SCALA_VERSION=2.10.4 | |
ENV CASSANDRA_VERSION=2.2.3 | |
ENV SPARK_CASSANDRA_CONNECTOR_VERSION=1.4.0 | |
ENV CONFLUENT_VERSION=1.0.1 | |
ENV ELASTICSEARCH_VERSION=1.7.3 | |
ENV ELASTICSEARCH_SPARK_CONNECTOR_VERSION=2.1.2 | |
ENV LOGSTASH_VERSION=2.0.0 | |
ENV KIBANA_VERSION=4.2.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set up spark configuration | |
conf = SparkConf().setMaster("yarn-client").setAppName("sparK-mer") | |
#conf = SparkConf().setMaster("local[16]").setAppName("sparK-mer") | |
conf.set("yarn.nodemanager.resource.cpu_vcores",args.C) | |
# Saturate with executors | |
conf.set("spark.executor.instances",executorInstances) | |
conf.set("spark.executor.heartbeatInterval","5s") | |
# cores per executor | |
conf.set("spark.executor.cores",args.E) | |
# set driver cores |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Question by @nntaleb | |
Throw a coin, H=head, T= Tail. Which sequence one is more likely? | |
A={H,T,H,T,H,T,H,T,H,T,T,H,T,H,H,T,T,T,H,H} | |
B={H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H} | |
C={H,H,H,H,H,H,H,H,H,H,T,T,T,T,T,T,T,T,T,T} | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import openai | |
import requests | |
from pprint import pprint | |
import dotenv | |
dotenv.load_dotenv() | |
openai_api_key = os.environ.get("OPENAI_API_KEY") | |
bing_search_api_key = os.environ['BING_SEARCH_V7_SUBSCRIPTION_KEY'] |
OlderNewer