Comments (8)
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.
Superbe! Magnifique!
"Results like nobody has ever seen before" -- 45th President of the United States
from evaluator.
in your fix, I get a warning message:
result_df <- dat %>% select(scenario_id, result_summary) %>% unnest()
Warning message:
cols
is now required.
Please usecols = c(result_summary)
from evaluator.
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.
That worked.
from evaluator.
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.
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.
This issue was closed because it has been stalled for 5 days with no activity.
from evaluator.
Related Issues (20)
- TEF values HOT 2
- Release evaluator 0.4.0
- Support non USD currency HOT 2
- Rebuild support for progress bars when running simulations HOT 3
- Update tidyrisk pkg sites with link back to tidyrisk.org HOT 2
- Tests are using R 3.5 and greater syntax HOT 1
- Error: All scenarios must be tidyrisk_scenario objects HOT 8
- vctrs 0.2.0 and evaluator HOT 1
- Rare TEF values result in zero threat events HOT 5
- Update for tibble 3.0 release HOT 1
- Not an issue more of a request for enhancement or guidance. HOT 2
- Thoughts on incorporating IRIS 2020 data? HOT 3
- Warning: Error in : Column 1 must be named. HOT 3
- Error: Running explore_scenarios HOT 3
- error running docker HOT 4
- column 1 must be named HOT 3
- Reports not generated with few domains HOT 2
- Can't join on 'controls' x 'capability_id' because of incompatible types (character / numeric) HOT 2
- I'm sorry, how to infer the R version to be used? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evaluator.