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
# https://www.tensorflow.org/install/install_sources | |
brew install bazel | |
conda create -n tensorflow python six numpy wheel -y | |
source activate tensorflow | |
git clone https://github.com/tensorflow/tensorflow | |
cd tensorflow | |
./configure |
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
# -*- coding: utf-8 -*- | |
u""" | |
Beta regression for modeling rates and proportions. | |
References | |
---------- | |
Grün, Bettina, Ioannis Kosmidis, and Achim Zeileis. Extended beta regression | |
in R: Shaken, stirred, mixed, and partitioned. No. 2011-22. Working Papers in | |
Economics and Statistics, 2011. |
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
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import sys, os | |
import re | |
try: | |
bibtexdb = open(sys.argv[1]).read() | |
except IndexError: | |
print("Error: specify the file to be processed!") |
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
def bin_prop_jeffreys_interval(trials, successes, α=0.05): | |
"""Binomial proportions confidence Jeffrey's interval. | |
Parameters | |
---------- | |
trials : np.ndarray | |
number of trials | |
successes : int | |
number of successes | |
α : float, 0<α<1 |
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
main_bib=~/library.bib | |
ms_bib=bibtex.bib | |
citation_keys=citation_keys | |
pdf=ms.pdf | |
md=ms.md | |
csl=evolution.csl | |
diagram_dot = diagram.dot | |
diagram_pdf = diagram.pdf |
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 contextlib | |
class ExceptionWarning(Warning): | |
pass | |
@contextlib.contextmanager | |
def warn_and_suppress(*exceptions): | |
try: | |
yield | |
except exceptions as e: |
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
# if you don't have a digitalocean account, use this link to create an account with $10 free credit: http://m.do.co/c/7a0c04ea8030 | |
# create an Ubuntu droplet: https://cloud.digitalocean.com/droplets/new | |
# ssh to your new droplet; this is might be the hardest part so don't give up. | |
# install miniconda 3 | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
chmod +x Miniconda3-latest-Linux-x86_64.sh | |
./Miniconda3-latest-Linux-x86_64.sh | |
which python | |
# if previous command didn't show "/root/miniconda3/bin/python" then run the next command, otherwise skip it |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder