Git Product home page Git Product logo

heuristicsminer's Issues

Error in causal_net: causal_performance()

I get an error when trying to generate a causal_performance map


library(eventdataR)
library(heuristicsmineR)
data(traffic_fines)
causal_net(traffic_fines, type = causal_performance(FUN= mean, units = "days"))`

The output is
Error in summarize():
! Problem while recycling bindings_output = first(bindings_output).
x bindings_output must be size 8 or 1, not 0.
i An earlier column had size 8.
i The error occurred in group 4: act = "End", from_id = 4.
Run rlang::last_error() to see where the error occurred.

sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server x64 (build 17763)

Matrix products: default

locale:
[1] LC_COLLATE=English_Ireland.1252 LC_CTYPE=English_Ireland.1252 LC_MONETARY=English_Ireland.1252 LC_NUMERIC=C
[5] LC_TIME=English_Ireland.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] eventdataR_0.2.0 heuristicsmineR_0.2.5

loaded via a namespace (and not attached):
[1] zoo_1.8-9 tidyselect_1.1.1 purrr_0.3.4 ggthemes_4.2.4 lattice_0.20-45 processmapR_0.3.4 colorspace_2.0-2
[8] vctrs_0.3.8 generics_0.1.2 viridisLite_0.4.0 miniUI_0.1.1.1 htmltools_0.5.2 utf8_1.2.2 plotly_4.10.0
[15] rlang_1.0.1 later_1.3.0 bupaR_0.4.4 pillar_1.7.0 glue_1.6.1 RColorBrewer_1.1-2 lifecycle_1.0.1
[22] stringr_1.4.0 munsell_0.5.0 gtable_0.3.0 visNetwork_2.1.0 htmlwidgets_1.5.4 forcats_0.5.1 edeaR_0.8.6
[29] fastmap_1.1.0 httpuv_1.6.5 DiagrammeR_1.0.8 fansi_1.0.2 Rcpp_1.0.8 xtable_1.8-4 promises_1.2.0.1
[36] scales_1.1.1 jsonlite_1.7.3 mime_0.12 ggplot2_3.3.5 hms_1.1.1 digest_0.6.29 stringi_1.7.6
[43] dplyr_1.0.8 shiny_1.7.1 grid_4.1.2 cli_3.1.1 tools_4.1.2 magrittr_2.0.2 lazyeval_0.2.2
[50] tibble_3.1.6 crayon_1.5.0 tidyr_1.2.0 pkgconfig_2.0.3 ellipsis_0.3.2 data.table_1.14.2 lubridate_1.8.0
[57] rstudioapi_0.13 httr_1.4.2 R6_2.5.1 shinyTime_1.0.1 compiler_4.1.2

error:sec_nodes and sec_edges

causal_net(
threshold = 0.8,
threshold_frequency = 0,
type_nodes = causal_frequency("absolute"),
type_edges = causal_frequency("relative"),
sec_nodes = causal_performance(mean, "mins"),
sec_edges = causal_performance(mean, "days")
)

——————run result
error: Problem with summarise() column label.
i label = do.call(...).
x label must be size 7 or 1, not 6.
i An earlier column had size 7.
i The error occurred in group 6: act = "1-1-6", from_id = 6.

Using a CSV file, which is converted to events through: bupaR::activities_to_eventlog, I don’t know how to resolve this error.

Error in count_precedence with causal net

After generating event logs using bupaR I receive this error note when I try to generate a causal_net(). I did not receive this error yesterday but when rerunning all the code today I cannot seem to generate the precedence matrix anymore. What should I be doing differently? I am at a loss for what could be wrong

Screenshot 2022-08-03 at 11 12 30

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.