Giter Site home page Giter Site logo

Comments (8)

davidski avatar davidski commented on August 25, 2024

I see what's going on. The nesting structure has shifted around and the existing process flow isn't well supported. I'm going to have to thinking over the best path to fix this.

As an interim fix you can do something like

library(evaluator)
library(tidyverse)

# run the simulations
dat <- quantitative_scenarios %>% mutate(results = map(scenario, run_simulation, iterations = 100L))

# summarize the results
dat <- dat %>% mutate(result_summary = map(results, summarize_scenario))

result_df <- dat %>% select(scenario_id, result_summary) %>% unnest()

That will give you a result_df object that you can review and manipulate. The existing output processes such as the dashboard and report will probably need adjustment as well, which is why this isn't a simple fix.

from evaluator.

russellcameronthomas avatar russellcameronthomas commented on August 25, 2024

Superbe! Magnifique!

"Results like nobody has ever seen before" -- 45th President of the United States

from evaluator.

russellcameronthomas avatar russellcameronthomas commented on August 25, 2024

in your fix, I get a warning message:

result_df <- dat %>% select(scenario_id, result_summary) %>% unnest()
Warning message:
cols is now required.
Please use cols = c(result_summary)

from evaluator.

davidski avatar davidski commented on August 25, 2024

Ah yes. My muscle memory is for syntax that is being deprecated. While the original version will still work, a more syntactically pure version would be result_df <- dat %>% select(scenario_id, result_summary) %>% unnest(result_summary).

from evaluator.

russellcameronthomas avatar russellcameronthomas commented on August 25, 2024

That worked.

from evaluator.

russellcameronthomas avatar russellcameronthomas commented on August 25, 2024

My muscle memory is for syntax ...

You mean syntax gets stored in muscles?? Whoah. That explains a lot of my SNAFUs. (And you used to work in a hospital so I trust you to know stuff like this.)

:-)

from evaluator.

github-actions avatar github-actions commented on August 25, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

from evaluator.

github-actions avatar github-actions commented on August 25, 2024

This issue was closed because it has been stalled for 5 days with no activity.

from evaluator.

Related Issues (20)

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.