-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now with interface!
- Loading branch information
Showing
33 changed files
with
549 additions
and
778 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,6 @@ | |
# Word files | ||
*.docx | ||
|
||
# TeX files | ||
*.tex | ||
|
||
# TeX aux files | ||
*.aux | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,80 @@ | ||
PDF := persimmon.pdf # PDF Main Target | ||
MARKDOWN := introduction.md state_of_the_art.md objectives.md risk_analysis.md \ | ||
implementation.md postmortem.md # Markdown files | ||
MARKDOWN := introduction.md state_of_the_art.md workflow.md objectives.md \ | ||
risk_analysis.md implementation.md postmortem.md # Markdown files | ||
BODY := body.tex # Markdown files will be converted to this intermediate step | ||
#APPENDICES := appendixX.md # Markdown Appendices | ||
#APPENDIX := appendix.tex # And appendices to this intermediate step | ||
# METADATA := metadata.yaml # Metadata files (Author, Date, Title, etc..) | ||
#METADATA := metadata.yaml # Metadata files (Author, Date, Title, etc..) | ||
BIBLIOGRAPHY := persimmon.bib # BibLaTeX bibliography | ||
CSL := emerald-harvard.csl # CSL file used for citations | ||
TEMPLATE := template.tex # LaTeX template for producing PDF | ||
|
||
GRAPHS := $(wildcard graphs/*.tex) # Latex diagrams | ||
IMAGES := $(wildcard graphs/*.png) # .png images | ||
IMAGES += $(GRAPHS:.tex=.pdf) # Generated PDF Images | ||
IMAGES := $(wildcard images/*.png) # .png images | ||
IMAGES += $(addprefix images/, $(notdir $(GRAPHS:.tex=.pdf))) # Generated PDF Images | ||
|
||
all: $(PDF) | ||
|
||
# Main PDF, travis ci and book to print version | ||
$(PDF): $(BODY) $(TEMPLATE) $(IMAGES) # TODO: Add abstract | ||
|
||
$(PDF): $(BODY) $(APPENDIX) $(TEMPLATE) $(IMAGES) # TODO: Add abstract | ||
pandoc --smart --standalone --latex-engine xelatex --template $(TEMPLATE) \ | ||
--metadata author:"Álvaro Bermejo" \ | ||
--metadata date:"$(shell date +"%d/%m/%Y") ($(shell git describe --abbrev=0 --tags))" \ | ||
--metadata title:"Persimmon" --metadata fontsize:"12pt" --toc \ | ||
--metadata subtitle:"A scikitlearn visual programming interface" \ | ||
--metadata mainlang:"English" --metada keywords:"Machine Learning","Visual Programming" \ | ||
--metadata papersize:"A4" --metadata sansfont:"Helvetica Neue LT Com" \ | ||
--metadata colorlinks --metadata documentclass:"scrreprt" \ | ||
--top-level-division chapter $(BODY) -o $@ | ||
--metadata title:Persimmon --metadata fontsize:12pt --toc \ | ||
--metadata subtitle:"A sklearn visual programming interface" \ | ||
--metadata mainlang:English --metada keywords:"Machine Learning","Visual Programming" \ | ||
--metadata papersize:A4 --metadata sansfont:"Helvetica Neue LT Com" \ | ||
--metadata colorlinks --metadata documentclass:scrreprt \ | ||
--top-level-division chapter $(BODY) $(APPENDIX) -o $@ | ||
|
||
# Main PDF, travis ci and book to print version | ||
travis: $(BODY) $(APPENDIX) $(TEMPLATE) $(IMAGES) | ||
pandoc --smart --standalone --latex-engine xelatex --template $(TEMPLATE) \ | ||
--metadata author:"Álvaro Bermejo" \ | ||
--metadata author:"Álvaro Bermejo" --metadata papersize:A4 \ | ||
--metadata date:"$(shell date +"%d/%m/%Y") ($(shell git describe --abbrev=0 --tags))" \ | ||
--metadata title:"Persimmon" --metadata fontsize:"12pt" --toc \ | ||
--metadata title:Persimmon --metadata fontsize:12pt --toc \ | ||
--metadata subtitle:"A sklearn visual programming interface" \ | ||
--metadata mainlang:"English" --metada keywords:"Machine Learning","Visual Programming" \ | ||
--metadata papersize:"A4" \ | ||
--metadata colorlinks --metadata documentclass:"scrreprt" \ | ||
--metadata mainlang:English --metada keywords:"Machine Learning","Visual Programming" \ | ||
--metadata colorlinks --metadata documentclass:scrreprt \ | ||
--chapters $(BODY) $(APPENDIX) -o $(PDF) | ||
|
||
|
||
book_complu: $(BODY) $(APPENDIX) $(TEMPLATE) $(IMAGES) | ||
complutense: $(BODY) $(APPENDIX) $(TEMPLATE) $(IMAGES) | ||
pandoc --smart --standalone --latex-engine xelatex --template $(TEMPLATE) \ | ||
--metadata author:"Álvaro Bermejo" --metadata date:"Director: Pablo Moreno Ger" \ | ||
--metadata title:"Persimmon" --metadata fontsize:"12pt" --toc \ | ||
--metadata title:Persimmon --metadata fontsize:12pt --toc \ | ||
--metadata subtitle:"A scikitlearn visual programming interface" \ | ||
--metadata mainlang:"English" \ | ||
--metadata papersize:"A4" --metadata sansfont:"Helvetica Neue LT Com" \ | ||
--metadata documentclass:"scrbook" --metadata institute:"Universidad Complutense" \ | ||
--top-level-division chapter $(BODY) $(APPENDIX) -o bool_$(PDF) | ||
--metadata mainlang:English --metadata colorlinks --metadata titlepic:images/fdi.png \ | ||
--metadata papersize:A4 --metadata sansfont:"Helvetica Neue LT Com" \ | ||
--metadata documentclass:scrreprt --metadata institute:"Universidad Complutense" \ | ||
--metada keywords:"Machine Learning","Visual Programming","Serious Games" \ | ||
--top-level-division chapter $(BODY) $(APPENDIX) -o $(PDF) | ||
|
||
twocol: $(BODY) $(APPENDIX) $(TEMPLATE) $(IMAGES) # Adjust Spacing with geometry | ||
pandoc --smart --standalone --latex-engine xelatex --template $(TEMPLATE) \ | ||
--metadata author:"Álvaro Bermejo" --metadata colorlinks \ | ||
--metadata date:"$(shell date +"%d/%m/%Y") ($(shell git describe --abbrev=0 --tags))" \ | ||
--metadata title:Persimmon --metadata fontsize:12p --toc \ | ||
--metadata subtitle:"A sklearn visual programming interface" \ | ||
--metadata mainlang:English --metada keywords:"Machine Learning","Visual Programming" \ | ||
--metadata papersize:A4 --metadata classoption:twocolumn \ | ||
--metadata sansfont:"Helvetica Neue LT Com" --metadata documentclass:scrreprt \ | ||
--top-level-division chapter $(BODY) $(APPENDIX) -o $(PDF) | ||
|
||
# For standalone images | ||
graphs/%.pdf: graphs/%.tex | ||
# For standalone images | ||
images/%.pdf: graphs/%.tex | ||
xelatex $< > /dev/null # TODO: actually output in graphs directory | ||
mv $*.pdf graphs/ | ||
mv $*.pdf images/ | ||
|
||
# Body and Appendices Middle Steps creation | ||
$(BODY): $(MARKDOWN) | ||
$(BODY): $(MARKDOWN) $(BIBLIOGRAPHY) $(CSL) | ||
pandoc --no-tex-ligatures --bibliography $(BIBLIOGRAPHY) --csl $(CSL) \ | ||
metadata.yaml $(MARKDOWN) -o $@ | ||
|
||
$(APPENDIX): $(APPENDICES) | ||
pandoc --no-tex-ligatures $(APPENDICES) -o $@ | ||
|
||
clean: | ||
rm -f $(BODY) $(APPENDIX) graphs/*.pdf *.pdf *.log *.aux | ||
rm -f $(BODY) $(APPENDIX) images/*.pdf *.pdf *.log *.aux | ||
|
||
test: | ||
@echo $(GRAPHS) | ||
@echo $(IMAGES) |
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
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
\documentclass{standalone} | ||
|
||
\usepackage{tikz} | ||
|
||
\begin{document} | ||
\begin{tikzpicture} | ||
\draw (-0.5, -2.3) rectangle (0.5, -1) node[midway, gray] {.csv}; | ||
\draw [->, gray, thick] (0, -0.9) -- (0, -0.4); | ||
\draw (0, 0) ellipse (28pt and 10pt) node {Estimator}; | ||
\draw [->, gray, thick] (1.1, 0) -- (1.9, 0); | ||
\draw (3, 0) ellipse (28pt and 10pt) node {Adjustment}; | ||
\draw [->, gray, thick] (4.1, 0) -- (4.9, 0); | ||
\draw (6, 0) ellipse (28pt and 10pt) node {Validation}; | ||
\draw [->, gray, thick] (7.1, 0) -- (7.9, 0); | ||
\draw (9, 0) ellipse (28pt and 10pt) node {Prediction}; | ||
\draw [->, gray, thick] (9, -0.9) -- (9, -0.4); | ||
\draw (8.5, -2.3) rectangle (9.5, -1) node[midway, gray] {.csv}; | ||
\draw [->, gray, thick] (10.1, 0) --(10.9, 0); | ||
\draw (11, -0.65) rectangle (12, 0.65) node[midway, gray] {.csv}; | ||
\end{tikzpicture} | ||
\end{document} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
\documentclass{standalone} | ||
|
||
\usepackage{tikz} | ||
|
||
\begin{document} | ||
\begin{tikzpicture} | ||
\draw (-0.5, -2.3) rectangle (0.5, -1) node[midway, gray] {.csv}; | ||
\draw [->, gray, thick] (0, -0.9) -- (0, -0.4); | ||
\draw (0, 0) ellipse (28pt and 10pt) node {Estimator}; | ||
\draw [->, gray, thick] (1.1, 0) -- (1.9, 0); | ||
\draw (3, 0) ellipse (28pt and 10pt) node {Validation}; | ||
\draw [->, gray, thick] (4.1, 0) -- (4.9, 0); | ||
\draw (6, 0) ellipse (28pt and 10pt) node {Prediction}; | ||
\draw [->, gray, thick] (6, -0.9) -- (6, -0.4); | ||
\draw (5.5, -2.3) rectangle (6.5, -1) node[midway, gray] {.csv}; | ||
\draw [->, gray, thick] (7.1, 0) --(7.9, 0); | ||
\draw (8, -0.65) rectangle (9, 0.65) node[midway, gray] {.csv}; | ||
\end{tikzpicture} | ||
\end{document} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
\documentclass{standalone} | ||
|
||
\usepackage{tikz} | ||
|
||
\begin{document} | ||
\begin{tikzpicture} | ||
\draw (-0.5, -2.3) rectangle (0.5, -1) node[midway, gray] {.csv}; | ||
\draw [->, gray, thick] (0, -0.9) -- (0, -0.4); | ||
\draw (0, 0) ellipse (28pt and 10pt) node {Estimator}; | ||
\draw [->, gray, thick] (1.1, 0) -- (1.9, 0); | ||
\draw (3, 0) ellipse (28pt and 10pt) node {Validation}; | ||
%\draw [->, gray, thick] (4.1, 0) -- (4.9, 0); | ||
%\draw (6, 0) ellipse (28pt and 10pt) node {Prediction}; | ||
\end{tikzpicture} | ||
\end{document} | ||
|
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
Oops, something went wrong.