From e3475566b858a8403bbea46e71228900be10a5e5 Mon Sep 17 00:00:00 2001 From: Chirag Nagpal Date: Tue, 29 Mar 2022 18:55:23 -0400 Subject: [PATCH] modified: auton_survival/estimators.py --- auton_survival/estimators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auton_survival/estimators.py b/auton_survival/estimators.py index f75e14b..00e518f 100644 --- a/auton_survival/estimators.py +++ b/auton_survival/estimators.py @@ -669,8 +669,8 @@ def fit(self, features, outcomes, if weights is not None: assert len(weights) == features.shape[0], "Size of passed weights must match size of training data." + assert (weights>0.).any(), "All weights must be positive." # assert ((weights>0.0)&(weights<=1.0)).all(), "Weights must be in the range (0,1]." - # weights[weights>(1-weights_clip)] = 1-weights_clip # weights[weights<(weights_clip)] = weights_clip