Package: datafsm 0.2.5

Jonathan M. Gilligan

datafsm: Estimating Finite State Machine Models from Data

Automatic generation of finite state machine models of dynamic decision-making that both have strong predictive power and are interpretable in human terms. We use an efficient model representation and a genetic algorithm-based estimation process to generate simple deterministic approximations that explain most of the structure of complex stochastic processes. We have applied the software to empirical data, and demonstrated it's ability to recover known data-generating processes by simulating data with agent-based models and correctly deriving the underlying decision models for multiple agent models and degrees of stochasticity.

Authors:John J. Nay [aut], Jonathan M. Gilligan [cre, aut]

datafsm_0.2.5.tar.gz
datafsm_0.2.5.zip(r-4.7-x86_64)datafsm_0.2.5.zip(r-4.7-arm64)datafsm_0.2.5.zip(r-4.6-x86_64)datafsm_0.2.5.zip(r-4.6-arm64)datafsm_0.2.5.zip(r-4.5-x86_64)
datafsm_0.2.5.tgz(r-4.6-x86_64)datafsm_0.2.5.tgz(r-4.6-arm64)datafsm_0.2.5.tgz(r-4.5-x86_64)datafsm_0.2.5.tgz(r-4.5-arm64)
datafsm_0.2.5.tar.gz(r-4.7-arm64)datafsm_0.2.5.tar.gz(r-4.7-x86_64)datafsm_0.2.5.tar.gz(r-4.6-arm64)datafsm_0.2.5.tar.gz(r-4.6-x86_64)
datafsm_0.2.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
datafsm/json (API)

# Install 'datafsm' in R:
install.packages('datafsm', repos = c('https://j-magnolia.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jonathan-g/datafsm/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • NV_games - Empirical prisoner's dilemma games from Nay and Vorobeychik

On CRAN:

Conda:

machine-learningcpp

6.07 score 11 stars 36 scripts 367 downloads 22 exports 76 dependencies

Last updated from:099f308dae. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK160
linux-devel-x86_64OK165
source / vignettesOK264
linux-release-arm64OK181
linux-release-x86_64OK137
macos-release-arm64OK218
macos-release-x86_64OK327
macos-oldrel-arm64OK195
macos-oldrel-x86_64OK295
windows-devel-arm64OK342
windows-devel-x86_64OK159
windows-release-arm64OK343
windows-release-x86_64OK114
windows-oldrel-x86_64OK122
wasm-releaseOK147

Exports:action_vecadd_interact_numbarplotbest_performancebuild_bitstringcompare_fsmdecode_action_vecdecode_state_matdegeneracy_checkdotchartestimation_detailsevolve_modelevolve_model_cvevolve_model_ntimesfind_wildcardsfitnessCPPperformanceplotpredictstatesvar_impvarImp

Dependencies:caretclasscliclockcodetoolscpp11crayondata.tablediagramdigestdplyre1071farverforeachfuturefuture.applyGAgenericsggplot2globalsgluegowergtablehardhatipredisobanditeratorsKernSmoothlabelinglatticelavalifecyclelistenvlubridatemagrittrMASSMatrixModelMetricsnlmennetnumDerivparallellypillarpkgconfigplyrpROCprodlimprogressrproxypurrrR6RColorBrewerRcppRcppArmadillorecipesreshape2rlangrpartS7scalesshapesparsevctrsSQUAREMstringistringrsurvivaltibbletidyrtidyselecttimechangetimeDatetzdbutf8vctrsviridisLitewithr

Introduction to datafsm
Abstract | Introduction | Fake Data Example | Documentation for evolve_model | Acknowledgments | Session Info

Last update: 2021-05-25
Started: 2018-08-05

Example with real data
0.125 0.099 0.165 -15.37 | 0.125 0.099 0.165 2 | References

Last update: 2021-05-25
Started: 2018-08-05

Readme and manuals

Help Manual

Help pageTopics
Extracts slot of action_vecaction_vec
Add interaction numbers for panel dataadd_interact_num
Extracts performancebest_performance
Builds Bitstringbuild_bitstring
Compares FSMscompare_fsm
datafsm: A package for estimating FSM models.datafsm-package datafsm
Decodes Action Vectordecode_action_vec
Decodes State Matrixdecode_state_mat
Determines if State Matrix is Degenerate for Given Data Set.degeneracy_check
Extracts slot relevant to estimating the fsmestimation_details
Use a Genetic Algorithm to Estimate a Finite-state Machine Modelevolve_model
Estimate Optimal Number of States of a Finite-state Machine Modelevolve_model_cv
Use a Genetic Algorithm to Estimate a Finite-state Machine Model n-timesevolve_model_ntimes
Find Indices for Non-identifiable Elements of State Matrix.find_wildcards
Fitness Function in C++fitnessCPP
An S4 class to return the results of using a GA to estimate a FSM with 'evolve_model'.action_vec,ga_fsm-method barplot,ga_fsm-method best_performance,ga_fsm-method dotchart,ga_fsm-method estimation_details,ga_fsm-method ga_fsm-class plot,ga_fsm,ANY-method plot,ga_fsm-method predict,ga_fsm-method print,ga_fsm-method show,ga_fsm-method states,ga_fsm-method summary,ga_fsm-method varImp,ga_fsm-method
Empirical prisoner's dilemma games from Nay and VorobeychikNV_games
Measure Model Performanceperformance
Extracts number of statesstates
Variable Importance Measure for A FSM Modelvar_imp
Extracts slot of variable importancesvarImp