Skip to contents

Function to fit BirdFlow model by executing update_hdf.py in Python. Arguments typically passed from batch_modelfit_wrapper() via birdflow_modelfit_args_df()

Usage

birdflow_modelfit(
  py_script = file.path(the$python_repo_path, "update_hdf.py"),
  dir,
  species,
  res,
  dist_weight,
  ent_weight,
  dist_pow,
  obs_weight = 1,
  learning_rate = 0.1,
  training_steps = 600,
  rng_seed = 17,
  ebirdst_year
)

Arguments

py_script

Path of Python script to fit a model (update_hdf.py)

dir

Argument for update_hdf.py - the directory for output

species

Argument for update_hdf.py - the species code to fit

res

Argument for update_hdf.py - the model resolution

dist_weight

Argument for update_hdf.py - the distance weight

ent_weight

Argument for update_hdf.py - the entropy weight

dist_pow

Argument for update_hdf.py - the distance power

obs_weight

Argument for update_hdf.py - the observation weight

learning_rate

Argument for update_hdf.py

training_steps

Argument for update_hdf.py.

rng_seed

Argument for update_hdf.py.

ebirdst_year

Argument for update_hdf.py.