View source: R/call_strategy.R
call_strategy | R Documentation |
Calculates search strategies from path metrics.
call_strategy(metrics, model = "default")
metrics |
An |
model |
The strategy calling model that should be used. Default models
have been implemented for for Morris water maze and Barnes maze
( |
This function implements a classifier based on a trained random forest model.
If the model
parameter is left at "default", then the default model
for the appropriate experiment type will be automatically selected. Please
note that search strategies are only available for Morris water maze and
Barnes maze at this stage. It is expected that other models will be added in
the future and your feedback is welcome.
An rtrack_strategies
object. The calls
element contains
the called strategy/strategies as well as confidence scores for all
possible strategies.
threshold_strategies
, plot_strategies
.
require(Rtrack)
track_file <- system.file("extdata", "Track_1.tab", package = "Rtrack")
arena_description <- system.file("extdata", "Arena.txt", package = "Rtrack")
arena <- read_arena(arena_description)
path <- read_path(track_file, arena, track.format = "raw.tab")
metrics <- calculate_metrics(path, arena)
strategies <- call_strategy(metrics)
# Inspect the strategy call
strategies$calls
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.