Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to close logs when use Prophet? #375

Closed
liangzulin opened this issue Nov 30, 2017 · 2 comments
Closed

how to close logs when use Prophet? #375

liangzulin opened this issue Nov 30, 2017 · 2 comments

Comments

@liangzulin
Copy link

liangzulin commented Nov 30, 2017

when use fit and predict function of prophet, the message like the following will be printed in screen:

STAN OPTIMIZATION COMMAND (LBFGS)
init = user
save_iterations = 1
init_alpha = 0.001
tol_obj = 1e-012
tol_grad = 1e-008
tol_param = 1e-008
tol_rel_obj = 10000
tol_rel_grad = 1e+007
history_size = 5
seed = 2020565614
initial log joint probability = -11.5992
    Iter      log prob        ||dx||      ||grad||       alpha      alpha0  # evals  Notes 
      99       159.675    0.00447745       111.688           1           1      129   
     199       159.902  6.67482e-007       84.3477      0.5049      0.5049      254   
     217       159.902  2.16932e-006       94.6014  2.675e-008       0.001      312  LS failed, Hessian reset 
     237       159.902  5.39138e-009        82.048      0.3234      0.3234      339   
Optimization terminated normally: 
  Convergence detected: absolute parameter change was below tolerance

if I don't want those appear in screen, how to close it?

@bletham
Copy link
Contributor

bletham commented Dec 1, 2017

This output is coming from Stan - see #170 for this same issue. We need an upstream fix. If you are in Python, then #223 describes a decorator you can use to suppress all of the output.

@bletham
Copy link
Contributor

bletham commented Dec 22, 2017

Closing this since it is covered by the other issues.

@bletham bletham closed this as completed Dec 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants