Team Contract: "https://docs.google.com/document/d/1mg8IGLf3wtWFVM-_ZApg03Z35te-7wXVeA3zK4PfNCk/edit#heading=h.kwgdq5on8tby"
Forest fires are a type of uncontrolled and unwanted fires that usually have a negative impact. In 2007, forest fires in the Atlas Mountains, located on the northern coast of Algeria, killed several people as they spread rapidly due to hot, dry winds.
In this project, the main question which we want to answer is: Can we predict forest fires given the weather conditions by using k-nearest neighbours?
For the DSCI310 project which is based on this previous project created in DSCI100, we intend to realize trustworthy and reproductive workflows according to the lectures' content and any extra relevant resources.
To run the project in docker, follow the steps below:
- Ensure that you have the latest version of docker installed. Run docker.
- Clone the project into your local environment using
git clone https://github.com/miniatureseal/dsci-310-group-10-GCC.git
in Terminal. - Download the latest docker image of the project using
docker pull miniatureseal/dsci-310-group-10-gcc:latest
in Terminal. - Navigate to the root directory of the project using
cd dsci-310-group-10-GCC
in Terminal. - To run the container for this project, in Terminal, run
make run
or if you use Windows and have issues running the command above trymake run_windows
. Ensure that you run the command on Windows from git bash.
- Open up the URL
localhost:8787
. You should see a login mask. Enterrstudio
in the user field andasdf
in the password field and press login. - Open up the Terminal in the bottom left panel and run
make all
. This runs the analysis and generates two output files in the folderresults/
, one is an.html
file and the other one a.pdf
file. Please note that this step may take some time, as libraries for the latex pdf generation need to be loaded in the background. - Open the preferred file in the
/results
folder and read the report.
You can freely edit and interact with the code in the docker container.
To run the project in your local environment you need to have RStudio 4.1.3 and R installed. You will need the following libraries to run everything:
- tidyverse ‘1.3.1’
- tidymodels ‘1.0.0’
- bookdown ‘0.27’
- markdown ‘1.5’
- kknn ‘1.3.1’
- GGally ‘2.1.2’
- here ‘1.0.1’
- docopt ‘0.7.1’
- knitr ‘1.39’
- FFire ‘0.1.0’
If you are running windows, ensure that you have git bash installed.
You can install RStudio from here.
If you have the above packages installed, just run make all
from the root directory of the project.
The make command generates two output files in the folder results/
, one is an .html
file and the other one a .pdf
file.
The Makefile contains many different commands which can be run. All of the commands should be run from the root directory of the project. These three are of most interest:
make all
: Runs all the needed scripts to generate the final analysis file. The output reports will be generated in theresults/
foldermake run
: Runs the project in a docker container, so that there is no need to install all the needed dependencies. Only docker is needed! A description how docker can be installed can be found above.make run_windows
: Same asmake run
, but for windows users. In some cases themake run
command may run into issues on windows systems. In case that that happens just run this command.make clean
: Deletes all irrelevant files in theresults/
folder
In case that a file is missing which would be needed for the analysis you can always run:
make <file_name>
: This will generate the needed file with all its dependencies!
The software provided in this project is offered under the MIT open source license. See the license file for more information.