docstr: Parameters
  ----------
  X_train
      Training set.
docstr_tok: ["Parameters","--","--","--","--","--","X_train","Training","set","."]
code: def fit(self, X_train: np.ndarray) -> None:
      """
  
      Parameters
      ----------
      X_train
          Training set.
  
      """
      self.X_train = X_train
      self.feature_range = infer_feature_range(X_train)
      self.input_shape = X_train.shape[1:]
      self.is_fit = True
  
file_path: alibi/alibi/confidence/model_linearity.py
imports: import logging
  import string
  from time import time
  from typing import Callable, List, Optional, Tuple, Union
  import numpy
  from numpy.linalg import norm
  from sklearn.neighbors import NearestNeighbors
label_desc: Use image node_id 2 for calling the LinearityMeasure obj's underlying member method code with example usage: obj.fit(X_train) without return types