class_docstr: ```
  Tracks (and plots) the change in loss of a Keras model as learning rate is gradually increased.
  Used to visually identify a good learning rate, given model and data.
  Reference:
      Original Paper: https://arxiv.org/abs/1506.01186
  ```
class_docstr_tok: ["``","`","Tracks","(","and","plots",")","the","change","in","loss","of","a","Keras","model","as","learning","rate","is","gradually","increased",".","Used","to","visually","identify","a","good","learning","rate",",","given","model","and","data",".","Reference",":","Original","Paper",":","https",":","\/\/arxiv.org\/abs\/1506.01186","``","`"]
code: def __init__(self, model, stop_factor=4):
      self.model = model
      self.losses = []
      self.lrs = []
      self.best_loss = 1e9
      self._weightfile = None
      self.stop_factor = stop_factor
  
      self.avg_loss = 0
      self.batch_num = 0
      self.beta = 0.98
  
      # stats computed by _compute_stats
      self.mg = None  # index of minimum numerical gradient
      self.ml = None
  
file_path: ktrain/ktrain/lroptimize/lrfinder.py
imports: from ..None import utils
  from ..imports import *
label_desc: Use image node_id 1 to create a new LRFinder object  with example: obj = LRFinder(model, stop_factor)