MilesCranmer commited on
Commit
cc6661a
1 Parent(s): 177b7cc

Clean up output functions

Browse files
Files changed (1) hide show
  1. pysr/sr.py +2 -10
pysr/sr.py CHANGED
@@ -460,23 +460,15 @@ def best_tex(equations=None):
460
  return sympy.latex(best_sympy.simplify())
461
 
462
  def best(equations=None):
463
- """Return the equation with the best score, in latex format
464
  By default this uses the last equation file.
465
  """
466
  if equations is None: equations = get_hof()
467
  best_sympy = best_row(equations)['sympy_format']
468
  return best_sympy.simplify()
469
 
470
- def best_tex(equations=None):
471
- """Return the equation with the best score, in latex format
472
- By default this uses the last equation file.
473
- """
474
- if equations is None: equations = get_hof()
475
- best_sympy = best_row(equations)['sympy_format']
476
- return sympy.latex(best_sympy.simplify())
477
-
478
  def best_callable(equations=None):
479
- """Return the equation with the best score, in callable format
480
  By default this uses the last equation file.
481
  """
482
  if equations is None: equations = get_hof()
 
460
  return sympy.latex(best_sympy.simplify())
461
 
462
  def best(equations=None):
463
+ """Return the equation with the best score, in sympy format.
464
  By default this uses the last equation file.
465
  """
466
  if equations is None: equations = get_hof()
467
  best_sympy = best_row(equations)['sympy_format']
468
  return best_sympy.simplify()
469
 
 
 
 
 
 
 
 
 
470
  def best_callable(equations=None):
471
+ """Return the equation with the best score, in callable format.
472
  By default this uses the last equation file.
473
  """
474
  if equations is None: equations = get_hof()