Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 16 additions & 82 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,91 +1,25 @@
# Resampling methods for evaluating classification accuracy of wildlife habitat models

### ReScience submission repository
![](article/resampling-results.png)

This is the submission repository for the [Re**Science** journal](https://rescience.github.io).
This is a replication of the following article:

### How to submit an article ?
Verbyla DL, Litvaitis JA (1989) Resampling methods for evaluating classification accuracy
of wildlife habitat models. Environmental Management 13:783-787 https://doi.org/10.1007/BF01868317

where the authors examined different resampling methods to test wildife habitat models.

1. Create a [github](https://github.com) account
## Pre-requisites

2. [Fork](https://help.github.com/articles/fork-a-repo/) the [ReScience submission](https://github.com/ReScience/ReScience-submission) repository
This replication has been written and tested on Windows 10 using the
following packages:

3. Clone this new repository into your desktop environment
* Python 3.6.4
* Numpy 1.14.2
* Scikit-learn 0.19.1
* Matplotlib 2.1.2
* pandas 0.22.0

```
$ git clone https://github.com/YOUR-USERNAME/ReScience-submission
```
An installation of LaTeX is required to reproduce the figure annontations exactly, but is not required by the replication.

4. Create a branch (the branch name should be author names separated with dashes)

```
$ git checkout -b AUTHOR1-AUTHOR2
```


5. Add your code & article (see [author guidelines](https://rescience.github.io/write)) and commit your changes:

```
$ git commit -a -m "Some comment"
```


6. [Push](https://help.github.com/articles/pushing-to-a-remote/) to github

```
$ git push origin AUTHOR1-AUTHOR2
```

7. Issue a [pull request](https://help.github.com/articles/using-pull-requests/) (PR) to Re**Science** with title containing author(s) name and follow the template that will appear once you opened the pull request:

```
**AUTHOR**

Dear @ReScience/editors,

I request a review for the following replication:

### Original article

**Title:**
**Author(s):**
**Journal (or Conference):**
**Year:**
**DOI:**
**PDF:**

### Replication

**Author(s)**:
**Repository**:
**PDF**:
**Keywords**:
**Language**:
**Domain**:

### Results

* [ ] Article has been fully replicated
* [ ] Article has been partially replicated
* [ ] Article has not been replicated

### Potential reviewers
<!-- If you know potential reviewers, you can tell us here -->
<!-- You can look at http://rescience.github.io/board for the -->
<!-- list of registered reviewers (but you can propose others) -->

---

**EDITOR**

* [ ] Editor acknowledgment
* [ ] Reviewer 1
* [ ] Reviewer 2
* [ ] Review 1 decision [accept/reject]
* [ ] Review 2 decision [accept/reject]
* [ ] Editor decision [accept/reject]
```

8. You can suggest reviewers from [editorial board](https://rescience.github.io/board).

9. Answer questions and requests made in the PR conversation page.
Unix users have reported a requirement for an installation of ```dvipng``` for Matplotlib to successfully export the plot.
11 changes: 11 additions & 0 deletions article-latex/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*.aux
*.idx
*.log
*.toc
*.ist
*.bbl
*.blg
*.bcf
*.run.xml
*.out

35 changes: 35 additions & 0 deletions article-latex/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# From https://tex.stackexchange.com/questions/40738/how-to-properly-make-a-latex-project
# -----------------------------------------------------------------------------
# You want latexmk to *always* run, because make does not have all the info.
# Also, include non-file targets in .PHONY so they are run regardless of any
# file of the given name existing.
.PHONY: clean

# The first rule in a Makefile is the one executed by default ("make"). It
# should always be the "all" rule, so that "make" and "make all" are identical.

all: article
article: article.pdf


# CUSTOM BUILD RULES
# -----------------------------------------------------------------------------
metadata.tex: metadata.yaml
./yaml-to-latex.py -i $< -o $@


# MAIN LATEXMK RULE
# -----------------------------------------------------------------------------
# -pdf tells latexmk to generate PDF directly (instead of DVI).
# -pdflatex="" tells latexmk to call a specific backend with specific options.
# -use-make tells latexmk to call make for generating missing files.
# -interaction=nonstopmode keeps the pdflatex backend from stopping at a
# missing file reference and interactively asking you for an alternative.

article.pdf: article.tex content.tex metadata.tex rescience.cls
latexmk -pdf -pdflatex="xelatex -interaction=nonstopmode" -use-make article.tex

clean:
@latexmk -CA
@rm -f *.bbl
@rm -f *.run.xml
30 changes: 30 additions & 0 deletions article-latex/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
### [ReScience C](https://rescience.github.io/) article template

This repository contains the Latex (optional) template for writing a ReScience
C article and the (mandatory) YAML metadata file. For the actual article,
you're free to use any software you like as long as you enforce the proposed
PDF style. A tool is available for the latex template that produces latex
definitions from the metadata file. If you use another software, make sure that
metadata and PDF are always synced.

You can also use overleaf with the [provided template](https://www.overleaf.com/read/kfrwdmygjyqw) but in this case, you'll have to enter `metadata.tex` manually.

#### Usage

For a submission, fill in information in
[metadata.yaml](./metadata.yaml), modify [content.tex](content.tex)
and type:

```bash
$ make
```

This will produce an `article.pdf` using xelatex and provided font.


After acceptance, you'll need to complete [metadata.yaml](./metadata.yaml) with information provided by the editor and type again:

```bash
$ make
```

Binary file added article-latex/__pycache__/article.cpython-35.pyc
Binary file not shown.
Loading