Skip to contents

Package overview

patternscaper-package patternscaper
patternscaper: Classify Spatial Landscape Patterns Using Neural Networks

Landscape creation

Functions for generating artificial landscapes with different spatial patterns

create_landscape()
Create a Single Landscape
create_landscapes()
Create Multiple Landscapes

Pattern parameters

One constructor per pattern, holding that pattern’s parameters. Pass the result to create_landscape(params = …) or create_landscapes(params_list = …).

pattern_random()
Parameters for the Random Pattern
pattern_bare()
Parameters for the Bare Pattern
pattern_dense()
Parameters for the Dense Pattern
pattern_sharp()
Parameters for the Sharp Pattern
pattern_diffuse()
Parameters for the Diffuse Pattern
pattern_fingers()
Parameters for the Fingers Pattern
pattern_clustered()
Parameters for the Clustered Pattern
pattern_bands()
Parameters for the Bands Pattern
pattern_spots()
Parameters for the Spots Pattern
pattern_gaps()
Parameters for the Gaps Pattern
pattern_labyrinth()
Parameters for the Labyrinth Pattern

Landscape objects

Functions for creating and manipulating landscape objects

landscape()
Create a Landscape Object
plot(<landscape>)
Plot a Landscape Object
print(<landscape>)
Print a Landscape Object
set_landscape_name()
Set a Landscape Name
set_landscape_pattern()
Set a Landscape Pattern

Landscape metrics

Calculate and evaluate landscape metrics

calculate_metrics()
Calculate Landscape Metrics
evaluate_metrics()
Evaluate Landscape Metrics
print(<metrics_evaluation>)
Print a metrics evaluation

Neural network training

Train neural network classifiers

train_metric_model()
Train a Multi-Layer Neural Network for Landscape Pattern Classification
train_pixel_model()
Train a Convolutional Neural Network for Landscape Pattern Classification
set_random_seed()
Set Random Seeds for Neural Network Training

Neural network application

Apply trained classifiers to new landscapes

apply_metric_model()
Apply Neural Network for Landscape Pattern Classification Based on their Landscape Metrics
apply_pixel_model()
Apply a Keras CNN Model for Landscape Pattern Classification

Model persistence

Save and reload trained classifiers

save_pixel_model()
Save a Trained Pixel Model
load_pixel_model()
Load a Trained Pixel Model

Visualization

Plot landscapes, metrics, and classification results

plot_landscapes()
Plot One or More Landscapes
plot_classified_landscapes()
Plot Neural Network Classification Landscapes
plot_metrics()
Plot Landscape Metrics