def weights()

in clearbox/training.py [0:0]


    def weights(self) -> npt.NDArray[float] | None:
      """Getter for the tuned weights of the model if they are available.

      Returns:
        Array of weights as floats if they are available, otherwise `None`.
        Shape: (F,).
      """
      if self._n_features is None:
        return None
      weights = np.zeros((self._n_features,))
      weights[0] = 1.0
      return weights