class_docstr: An abstract class for models that implement a model with first
  order information, namely gradient information
  
  Attributes
  ----------
  n_coeffs : `int` (read-only)
      Total number of coefficients of the model
  
  n_calls_loss : `int` (read-only)
      Number of times ``loss`` has been called so far
  
  n_passes_over_data : `int` (read-only)
      Number of effective passes through the data
  
  n_calls_grad : `int` (read-only)
      Number of times ``grad`` has been called so far
  
  n_calls_loss_and_grad : `int` (read-only)
      Number of times ``loss_and_grad`` has been called so far
  
  Notes
  -----
  This class should be not used by end-users, it is intended for
  development only.
class_docstr_tok: ["An","abstract","class","for","models","that","implement","a","model","with","first","order","information",",","namely","gradient","information","Attributes","--","--","--","--","--","n_coeffs",":","`","int","`","(","read-only",")","Total","number","of","coefficients","of","the","model","n_calls_loss",":","`","int","`","(","read-only",")","Number","of","times","``","loss","``","has","been","called","so","far","n_passes_over_data",":","`","int","`","(","read-only",")","Number","of","effective","passes","through","the","data","n_calls_grad",":","`","int","`","(","read-only",")","Number","of","times","``","grad","``","has","been","called","so","far","n_calls_loss_and_grad",":","`","int","`","(","read-only",")","Number","of","times","``","loss_and_grad","``","has","been","called","so","far","Notes","--","--","-","This","class","should","be","not","used","by","end-users",",","it","is","intended","for","development","only","."]
code: def fit(self, *args):
      Model.fit(self, *args)
      self._set(N_CALLS_GRAD, 0)
      self._set(N_CALLS_LOSS_AND_GRAD, 0)
      return self
  
file_path: tick/tick/base_model/model_first_order.py
imports: import warnings
  from abc import abstractmethod
  import numpy
  from .None import Model
  from .model import GRAD, LOSS_AND_GRAD, N_CALLS_GRAD, N_CALLS_LOSS_AND_GRAD, PASS_OVER_DATA, N_CALLS_LOSS
label_desc: Use image node_id 2 for calling the ModelFirstOrder obj's underlying member method code with example usage: obj.fit() and returns: self