Git Product home page Git Product logo

iucnn's Introduction

Travis build status Codecov test coverage Project Status: Active – The project has reached a stable, usable state and is being actively developed.

IUCNN

Batch estimation of species' IUCN Red List threat status using neural networks.

Installation

  1. install IUCNN directly from Github using devtools.
install.packages("devtools")
library(devtools)

install_github("azizka/IUCNN")
  1. Python needs to be installed, for instance using miniconda and reticulated from within R (this will need c. 3 GB disk space). If problems occur at this step, check the excellent documentation of reticulate.
install.packages(reticulate)
library(reticulate)
install_miniconda()

If python has been installed before, you can specify the python version to sue with reticulate::use_python()

  1. Install the tensorflow module
reticulate::py_install("tensorflow==2.0.0", pip = TRUE)

Usage

A vignette with a detailed tutorial on how to use IUCNN is available as part of the package: vignette("Approximate_IUCN_Red_List_assessments_with_IUCNN"). Running IUCNN will write files to your working directory.

library(tidyverse)
library(IUCNN)

#load example data 
data("training_occ") #geographic occurrences of species with IUCN assessment
data("training_labels")# the corresponding IUCN assessments
data("prediction_occ") #occurrences from Not Evaluated species to prdict

# Training
## Generate features
geo <- geo_features(training_occ) #geographic
cli <- clim_features(training_occ) #climate
bme <- biome_features(training_occ) #biomes

features <- geo %>% 
  left_join(cli) %>% 
  left_join(bme)

# Prepare training labels
labels_train <- prepare_labels(training_labels)

# train the model
train_iucnn(x = features,
            labels = labels_train)

#Prediction
## Generate features
geo <- geo_features(prediction_occ)
cli <- clim_features(prediction_occ)
bme <- biome_features(prediction_occ)

features_predict <- geo %>% 
  left_join(cli) %>% 
  left_join(bme)

predict_iucnn(x = features_predict,
              model_dir = "iuc_nn_model")

Citation

library(IUCNN)
citation("IUCNN")

Zizka A, Silvestro D, Vitt P, Knight T (2020). “Automated conservation assessment of the orchid family with deep learning.” Conservation Biology, 0, 0-0. doi: doi.org/10.1111/cobi.13616 (URL: https://doi.org/doi.org/10.1111/cobi.13616), <URL: https://github.com/azizka/IUCNN>.

iucnn's People

Contributors

azizka avatar dsilvestro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.