|
23 | 23 | @test new_lml_est ≈ old_lml_est |
24 | 24 |
|
25 | 25 | # Test resampling with invalid weights |
26 | | - with_logger(Logging.SimpleLogger(Logging.Error)) do |
| 26 | + with_logger(Logging.SimpleLogger(stderr, Logging.Error)) do |
27 | 27 | state = pf_initialize(line_model, (0,), slope_choicemap(-3), 100) |
28 | 28 | @test_throws ErrorException pf_multinomial_resample!(state, check=true) |
29 | 29 | state = pf_multinomial_resample!(state, check=false) |
|
70 | 70 | @test new_lml_est ≈ old_lml_est |
71 | 71 |
|
72 | 72 | # Test resampling with invalid weights |
73 | | - with_logger(Logging.SimpleLogger(Logging.Error)) do |
| 73 | + with_logger(Logging.SimpleLogger(stderr, Logging.Error)) do |
74 | 74 | state = pf_initialize(line_model, (0,), slope_choicemap(-3), 100) |
75 | 75 | @test_throws ErrorException pf_residual_resample!(state, check=true) |
76 | 76 | state = pf_residual_resample!(state, check=false) |
|
119 | 119 | @test new_lml_est ≈ old_lml_est |
120 | 120 |
|
121 | 121 | # Test resampling with invalid weights |
122 | | - with_logger(Logging.SimpleLogger(Logging.Error)) do |
| 122 | + with_logger(Logging.SimpleLogger(stderr, Logging.Error)) do |
123 | 123 | state = pf_initialize(line_model, (0,), slope_choicemap(-3), 100) |
124 | 124 | @test_throws ErrorException pf_stratified_resample!(state, check=true) |
125 | 125 | state = pf_stratified_resample!(state, check=false) |
|
0 commit comments