Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. AGE GENDER AVAR BVAR OUTVAR
  2. 0 60 F 0.9 0 8260.0
  3. 1 56 F 5.4 1 15888.0
  4. 2 55 F 1.2 1 19734.4
  5. 3 52 F 1.7 1 15904.2
  6. 4 49 F 1.6 0 14848.0
  7.  
  8. from bambi import Model
  9. model = Model(bdf)
  10. results = model.fit('OUTVAR ~ AGE + GENDER + AVAR + BVAR', samples=5000, chains=2)
  11. print(results[1000:].summary())
  12.  
  13. Auto-assigning NUTS sampler...
  14. Initializing NUTS using advi...
  15. Average Loss = 1,476.2: 21%|██████████████▊ | 10601/50000 [00:01<00:07, 5542.87it/s]
  16. Convergence achieved at 10700
  17. Interrupted at 10,699 [21%]: Average Loss = 1,520.6
  18. Multiprocess sampling (2 chains in 2 jobs)
  19. NUTS: [OUTVAR_sd, BVAR, AVAR, AGE, GENDER, Intercept]
  20. Sampling 2 chains: 100%|██████████████████████████████████████████████████████████████████████████| 11000/11000 [11:40<00:00, 15.71draws/s]
  21. There were 154 divergences after tuning. Increase `target_accept` or reparameterize.
  22. The chain reached the maximum tree depth. Increase max_treedepth, increase target_accept or reparameterize.
  23. There were 241 divergences after tuning. Increase `target_accept` or reparameterize.
  24. The chain reached the maximum tree depth. Increase max_treedepth, increase target_accept or reparameterize.
  25. The number of effective samples is smaller than 10% for some parameters.
  26.  
  27. mean sd hpd0.95_lower hpd0.95_upper effective_n gelman_rubin
  28. AGE 6.936836 81.741918 -158.176468 165.050530 589 1.005245
  29. AVAR -78.356403 410.942267 -896.068374 718.650196 2414 1.000314
  30. BVAR 2639.993063 2262.101985 -1528.841953 7297.760056 553 1.000544
  31. GENDER[T.M] -615.092080 1659.905226 -3855.789966 2756.704710 1392 1.003126
  32. Intercept 11739.843222 3591.680335 5239.872556 19053.145349 179 1.007447
  33. OUTVAR_sd 8936.351700 283.640474 8402.347757 9318.495791 6027 1.000028
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement