Skip to content

Commit

Permalink
Use case updates (#182)
Browse files Browse the repository at this point in the history
* Add contamination rate variability scenarios

* Plot updates, work in progress

* Clean up unused code for plots

Co-authored-by: Kellyn Montgomery <kellyn.montgomery@usda.gov>
  • Loading branch information
2 people authored and wenzeslaus committed Mar 24, 2022
1 parent 114eef8 commit 5444765
Show file tree
Hide file tree
Showing 3 changed files with 535 additions and 152 deletions.
25 changes: 18 additions & 7 deletions examples/Montgomery_2021/data/consignment_scenarios.csv
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,21 @@ consignment scenario 6,High,box hypergeometric 0.1,input_file,aqim_box_insp_unit
consignment scenario 7,Low,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,box,beta,"[0.0727, 26.8544]",random,,,,boxes,hypergeometric,0.1,random,1
consignment scenario 8,Mid,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,box,beta,"[0.0081, 2.9838]",random,,,,boxes,hypergeometric,0.1,random,1
consignment scenario 9,High,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,box,beta,"[0.0029, 1.0742]",random,,,,boxes,hypergeometric,0.1,random,1
consignment scenario 10,Small clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,box,beta,"[0.0091, 3.3769]",clustered,random,2,,boxes,hypergeometric,0.1,random,1
consignment scenario 11,Large clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,box,beta,"[0.0091, 3.3769]",clustered,random,5,,boxes,hypergeometric,0.1,random,1
consignment scenario 12,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,100,,boxes,hypergeometric,0.1,random,1
consignment scenario 13,Large clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,random,400,400,boxes,hypergeometric,0.1,random,1
consignment scenario 14,Small clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,random,25,25,boxes,hypergeometric,0.1,random,1
consignment scenario 15,Random,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",random,,,,boxes,hypergeometric,0.1,random,1
consignment scenario 16,Random,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,box,beta,"[0.0091, 3.3769]",random,,,,boxes,hypergeometric,0.1,random,1
consignment scenario 10,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,25,25,boxes,hypergeometric,0.1,random,1
consignment scenario 11,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,50,50,boxes,hypergeometric,0.1,random,1
consignment scenario 12,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,75,75,boxes,hypergeometric,0.1,random,1
consignment scenario 13,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,100,100,boxes,hypergeometric,0.1,random,1
consignment scenario 14,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,125,125,boxes,hypergeometric,0.1,random,1
consignment scenario 15,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,150,150,boxes,hypergeometric,0.1,random,1
consignment scenario 16,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,175,175,boxes,hypergeometric,0.1,random,1
consignment scenario 17,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,200,200,boxes,hypergeometric,0.1,random,1
consignment scenario 18,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,225,225,boxes,hypergeometric,0.1,random,1
consignment scenario 19,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,250,250,boxes,hypergeometric,0.1,random,1
consignment scenario 20,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,275,275,boxes,hypergeometric,0.1,random,1
consignment scenario 21,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,300,300,boxes,hypergeometric,0.1,random,1
consignment scenario 22,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,325,325,boxes,hypergeometric,0.1,random,1
consignment scenario 23,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,350,350,boxes,hypergeometric,0.1,random,1
consignment scenario 24,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,375,375,boxes,hypergeometric,0.1,random,1
consignment scenario 25,Continuous clusters,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",clustered,continuous,400,400,boxes,hypergeometric,0.1,random,1
consignment scenario 26,Random items,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,item,beta,"[0.0091, 3.3769]",random,,,,boxes,hypergeometric,0.1,random,1
consignment scenario 27,Random boxes,box hypergeometric 0.1,input_file,aqim_box_insp_unit.csv,,,200,box,beta,"[0.0091, 3.3769]",random,,,,boxes,hypergeometric,0.1,random,1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name,consignment name,inspection name,consignment/generation_method,consignment/input_file/file_name,contamination/contamination_unit,contamination/contamination_rate/distribution,contamination/contamination_rate/parameters,contamination/arrangement,contamination/clustered/distribution,contamination/clustered/contaminated_units_per_cluster,contamination/clustered/random/cluster_item_width,inspection/unit,inspection/sample_strategy,inspection/hypergeometric/detection_level,inspection/selection_strategy,inspection/within_box_proportion,inspection/cluster/cluster_selection
rate scenario 1 box,mean 0.0027 sd 0.0282 box,box hypergeometric 0.1 random,input_file,aqim_box_insp_unit.csv,box,beta,"[0.0091, 3.3769]",random,,,,boxes,hypergeometric,0.1,random,1,
rate scenario 1 stem random,mean 0.0027 sd 0.0282 item random,box hypergeometric 0.1 random,input_file,aqim_box_insp_unit.csv,item,beta,"[0.0091, 3.3769]",random,,,,boxes,hypergeometric,0.1,random,1,
rate scenario 1 stem clustered random,mean 0.0027 sd 0.0282 item clustered random,box hypergeometric 0.1 random,input_file,aqim_box_insp_unit.csv,item,beta,"[0.0091, 3.3769]",clustered,random,40,40,boxes,hypergeometric,0.1,random,1,
rate scenario 1 stem clustered continuous,mean 0.0027 sd 0.0282 item clustered cont,box hypergeometric 0.1 random,input_file,aqim_box_insp_unit.csv,item,beta,"[0.0091, 3.3769]",clustered,continuous,40,,boxes,hypergeometric,0.1,random,1,
rate scenario 1 box,mean 0.0027 sd 0.0282 box,box hypergeometric 0.1 random,input_file,aqim_box_insp_unit.csv,box,beta,"[0.009, 3.3062]",random,,,,boxes,hypergeometric,0.1,random,1,
rate scenario 1 stem random,mean 0.0027 sd 0.0282 item random,box hypergeometric 0.1 random,input_file,aqim_box_insp_unit.csv,item,beta,"[0.009, 3.3062]",random,,,,boxes,hypergeometric,0.1,random,1,
rate scenario 1 stem clustered random,mean 0.0027 sd 0.0282 item clustered random,box hypergeometric 0.1 random,input_file,aqim_box_insp_unit.csv,item,beta,"[0.009, 3.3062]",clustered,random,40,40,boxes,hypergeometric,0.1,random,1,
rate scenario 1 stem clustered continuous,mean 0.0027 sd 0.0282 item clustered cont,box hypergeometric 0.1 random,input_file,aqim_box_insp_unit.csv,item,beta,"[0.009, 3.3062]",clustered,continuous,40,,boxes,hypergeometric,0.1,random,1,
rate scenario 2 box,mean 0.00188 sd 0.019 box,box hypergeometric 0.1 random,input_file,aqim_box_insp_unit.csv,box,beta,"[0.0098, 5.1882]",random,,,,boxes,hypergeometric,0.1,random,1,
rate scenario 2 stem random,mean 0.00188 sd 0.019 item random,box hypergeometric 0.1 random,input_file,aqim_box_insp_unit.csv,item,beta,"[0.0098, 5.1882]",random,,,,boxes,hypergeometric,0.1,random,1,
rate scenario 2 stem clustered random,mean 0.00188 sd 0.019 item clustered random,box hypergeometric 0.1 random,input_file,aqim_box_insp_unit.csv,item,beta,"[0.0098, 5.1882]",clustered,random,40,40,boxes,hypergeometric,0.1,random,1,
Expand Down
Loading

0 comments on commit 5444765

Please sign in to comment.