Skip to content

Commit caab653

Browse files
committed
additional documentation
1 parent ae51184 commit caab653

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

mapie/quantile_regression.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ def _check_calib_set(
338338
ArrayLike, ArrayLike, ArrayLike, ArrayLike, Optional[ArrayLike]
339339
]:
340340
"""
341-
HPUT SOMETHING
341+
Check if a calibration set has already been defined, if not, then
342+
we define one using the `train_test_split` method.
342343
343344
Parameters
344345
----------
@@ -347,11 +348,17 @@ def _check_calib_set(
347348
Returns
348349
-------
349350
Tuple[ArrayLike, ArrayLike, ArrayLike, ArrayLike, ArrayLike]
350-
- [0]: ArrayLike, X_train
351-
- [1]: ArrayLike, X_calib
352-
- [2]: ArrayLike, y_train
353-
- [3]: ArrayLike, y_calib
354-
- [4]: ArrayLike, sample_weight_train
351+
- [0]: ArrayLike of shape (n_samples_*(1-calib_size), n_features)
352+
X_train
353+
- [1]: ArrayLike of shape (n_samples_*(1-calib_size),)
354+
y_train
355+
- [2]: ArrayLike of shape (n_samples_*calib_size, n_features)
356+
X_calib
357+
- [3]: ArrayLike of shape (n_samples_*calib_size,)
358+
y_calib
359+
- [4]: ArrayLike of shape (n_samples_,)
360+
sample_weight_train
361+
355362
"""
356363
if X_calib is None or y_calib is None:
357364
if sample_weight is None:

mapie/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def check_defined_variables_predict_cqr(
522522
) -> None:
523523
"""
524524
Check that the parameters defined for the predict method
525-
of the conformalized quantile regression are correct.
525+
of ``MapieQuantileRegressor`` are correct.
526526
527527
Parameters
528528
----------

0 commit comments

Comments
 (0)