def _validate_categorical_components(self, samples):
        """Check if categorical features are integer-encoded"""
        if np.any(samples[:, self._categorical_indices] % 1 != 0):
            raise_log(
                ValueError(
                    "Categorical features must be integer-encoded, decimal values found instead."
                ),
                logger=logger,
            )
Check if categorical features are integer-encoded
darts/models/forecasting/sklearn_model.py