github.com/JJ/science-data-science
github.com/JJ
tvtropes.org
Individuals and interactions over processes and tools
Working software over comprehensive documentation
Customer collaboration over contract negotiation
Responding to change over following a plan
\ref
→
\cite
import pandas as pd
import pygraphviz as pgv
from IPython.display import display, Latex
from scipy import stats
DBTROPES_GENERATED_FILE_PATH = '/Users/phd/Downloads/dbtropes/dbtropes-20160701.nt'
TROPESCRAPER_GENERATED_FILE_PATH = '/Users/phd/workspace/made/tropescraper/bin/tvtropes.json'
# tasks.py
@task
def build_paper_latex_arxiv(context):
print("Building latex file and figures through pweave ...")
command = 'cd papers && pweave -f texminted tropescraper_arxiv.texw'
run(command, hide=False, warn=True)
We would need to find out first if this method really works....
%
\begin{figure}
<<generations.fs.table,echo=FALSE, results="asis">>=
library(ggplot2)
library(ggthemes)
generations <- read.csv("data/ng-spambase1-generations.csv")
ggplot(generations,aes(x=Generation,y=Average.F2,group=Generation,color="Average F2"))+geom_boxplot()+geom_boxplot(aes(x=Generation,y=Max.F2,group=Generation, color="Max F2", fill="Max F2"))+theme_tufte()
@
\caption{Boxplot of the best F2 (filled) and average F2 (clear, transparent) over 15 different runs for the spambase1 dataset partition.}
\label{fig:gen:f2}
\end{figure}
lint-python:
runs-on: ubuntu-18.04
name: Python source lint
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Export neccesary variables
run: |
echo "::set-env name=PYTHONPATH::${{github.workspace}}"
echo "::set-env name=KERAS_BACKEND::theano"
- name: Install necessary tools
run: pip install nox
- name: Perform linting
working-directory: ${{ github.workspace }}
run: nox -e lint