class_docstr: The base class for a first order stochastic solver.
  It only deals with verbosing information, and setting parameters.
  
  Parameters
  ----------
  epoch_size : `int`
      Epoch size
  
  rand_type : `str`
      Type of random sampling
  
      * if ``"unif"`` samples are uniformly drawn among all possibilities
      * if ``"perm"`` a random permutation of all possibilities is
        generated and samples are sequentially taken from it. Once all of
        them have been taken, a new random permutation is generated
  
  tol : `float`, default=0
      The tolerance of the solver (iterations stop when the stopping
      criterion is below it). By default the solver does ``max_iter``
      iterations
  
  max_iter : `int`
      Maximum number of iterations of the solver
  
  verbose : `bool`, default=True
      If `True`, we verbose things, otherwise the solver does not
      print anything (but records information in history anyway)
  
  print_every : `int`, default = 10
      Print history information every time the iteration number is a
      multiple of ``print_every``
  
  record_every : `int`, default = 1
      Information along iteration is recorded in history each time the
      iteration number of a multiple of ``record_every``
  
  seed : `int`
      The seed of the random sampling. If it is negative then a random seed
      (different at each run) will be chosen.
  
  Attributes
  ----------
  model : `Solver`
      The model to solve
  
  prox : `Prox`
      Proximal operator to solve
  
  time_start : `str`
      Start date of the call to solve()
  
  time_elapsed : `float`
      Duration of the call to solve(), in seconds
  
  time_end : `str`
      End date of the call to solve()
  
  Notes
  -----
  This class should not be used by end-users
class_docstr_tok: ["The","base","class","for","a","first","order","stochastic","solver",".","It","only","deals","with","verbosing","information",",","and","setting","parameters",".","Parameters","--","--","--","--","--","epoch_size",":","`","int","`","Epoch","size","rand_type",":","`","str","`","Type","of","random","sampling","*","if","``","``","unif","''","``","samples","are","uniformly","drawn","among","all","possibilities","*","if","``","``","perm","''","``","a","random","permutation","of","all","possibilities","is","generated","and","samples","are","sequentially","taken","from","it",".","Once","all","of","them","have","been","taken",",","a","new","random","permutation","is","generated","tol",":","`","float","`",",","default=0","The","tolerance","of","the","solver","(","iterations","stop","when","the","stopping","criterion","is","below","it",")",".","By","default","the","solver","does","``","max_iter","``","iterations","max_iter",":","`","int","`","Maximum","number","of","iterations","of","the","solver","verbose",":","`","bool","`",",","default=True","If","`","True","`",",","we","verbose","things",",","otherwise","the","solver","does","not","print","anything","(","but","records","information","in","history","anyway",")","print_every",":","`","int","`",",","default","=","10","Print","history","information","every","time","the","iteration","number","is","a","multiple","of","``","print_every","``","record_every",":","`","int","`",",","default","=","1","Information","along","iteration","is","recorded","in","history","each","time","the","iteration","number","of","a","multiple","of","``","record_every","``","seed",":","`","int","`","The","seed","of","the","random","sampling",".","If","it","is","negative","then","a","random","seed","(","different","at","each","run",")","will","be","chosen",".","Attributes","--","--","--","--","--","model",":","`","Solver","`","The","model","to","solve","prox",":","`","Prox","`","Proximal","operator","to","solve","time_start",":","`","str","`","Start","date","of","the","call","to","solve","(",")","time_elapsed",":","`","float","`","Duration","of","the","call","to","solve","(",")",",","in","seconds","time_end",":","`","str","`","End","date","of","the","call","to","solve","(",")","Notes","--","--","-","This","class","should","not","be","used","by","end-users"]
code: def record_every(self, val):
      self._record_every = val
      if hasattr(self, "_solver") and self._solver is not None:
          self._solver.set_record_every(val)
  
imports: import numpy
  from abc import ABC, abstractmethod
  from tick.base_model import Model
  from tick.prox.base import Prox
  from .None import SolverFirstOrder, SolverSto
  from .utils import relative_distance
label_desc: Use image node_id 7 for calling the SolverFirstOrderSto obj's underlying member method code with example usage: obj.record_every(val) without return types