A programming framework for agentic AI
sample_weight when training with full data
Chi Wang (MSR)f956e957d43d
diff --git a/flaml/automl.py b/flaml/automl.pyindex a1839c31b..ae74ec9ad 100644--- a/flaml/automl.py+++ b/flaml/automl.py@@ -146,7 +146,9 @@ class AutoMLState:else:sampled_X_train, sampled_y_train = concat(self.X_train,self.X_val), np.concatenate([self.y_train, self.y_val])- sampled_weight = self.fit_kwargs.get('sample_weight')+ weight = self.fit_kwargs.get('sample_weight')+ if weight is not None:+ sampled_weight = np.concatenate([weight, self.weight_val])return sampled_X_train, sampled_y_train, sampled_weightdef _compute_with_config_base(self,