@@ -297,9 +297,6 @@ def process_bundle(self, n_cores=None):
297297 second_studyset .to_dataset () if second_studyset is not None else None
298298 )
299299 estimator , corrector = self .load_specification (n_cores = n_cores )
300- estimator , corrector = self .validate_specification (
301- estimator , corrector , first_dataset , second_dataset
302- )
303300 self .first_dataset = first_dataset
304301 self .second_dataset = second_dataset
305302 self .estimator = estimator
@@ -418,18 +415,6 @@ def load_specification(self, n_cores=None):
418415
419416 return estimator_init , corrector_init
420417
421- def validate_specification (
422- self , estimator , corrector , dataset , second_dataset = None
423- ):
424- if (
425- isinstance (estimator , (ALE , ALESubtraction , SCALE ))
426- and estimator .kernel_transformer .sample_size is not None
427- ):
428- if any (dataset .metadata ["sample_sizes" ].isnull ()):
429- raise ValueError (
430- "Sample size is required for ALE with sample size weighting."
431- )
432- return estimator , corrector
433418
434419 def _persist_meta_results (self ):
435420 """Persist meta-analysis results locally for downstream access."""
0 commit comments