Module Modelkit.Data_error

Typed failures raised while admitting and aligning data.

type t =
  1. | Negative_dimension of {
    1. name : string;
    2. value : int;
    }
  2. | Ragged_matrix of {
    1. row : int;
    2. expected_columns : int;
    3. observed_columns : int;
    }
  3. | Length_mismatch of {
    1. name : string;
    2. expected : int;
    3. observed : int;
    }
  4. | Index_out_of_bounds of {
    1. name : string;
    2. index : int;
    3. upper_bound : int;
    }
  5. | Non_finite of {
    1. name : string;
    2. index : int;
    3. value : float;
    }
  6. | Negative_weight of {
    1. index : int;
    2. value : float;
    }
  7. | All_zero_weights
  8. | Empty_feature_name of {
    1. index : int;
    }
  9. | Duplicate_feature_name of {
    1. name : string;
    2. first_index : int;
    3. duplicate_index : int;
    }
  10. | Csr_row_offset_mismatch of {
    1. position : int;
    2. expected : int;
    3. observed : int;
    }
  11. | Invalid_csr_row_offset of {
    1. position : int;
    2. previous : int;
    3. observed : int;
    4. nonzero_count : int;
    }
  12. | Invalid_csr_column_order of {
    1. row : int;
    2. previous : int;
    3. observed : int;
    }
val pp : Format.formatter -> t -> unit
val to_string : t -> string