annotate state, add cv notebook

This commit is contained in:
Andrea W 2023-01-26 14:18:55 +00:00
parent cdc4201188
commit 297fc5ad7c
2 changed files with 758 additions and 1 deletions

View File

@ -2,6 +2,7 @@
# * Copyright (c) FLAML authors. All rights reserved.
# * Licensed under the MIT License. See LICENSE file in the
# * project root for license information.
from __future__ import annotations
import time
import os
import sys
@ -343,7 +344,10 @@ class AutoMLState:
return sampled_X_train, sampled_y_train, sampled_weight, groups
@staticmethod
def _compute_with_config_base(config_w_resource, state, estimator, is_report=True):
def _compute_with_config_base(config_w_resource,
state: AutoMLState,
estimator,
is_report=True):
if "FLAML_sample_size" in config_w_resource:
sample_size = int(config_w_resource["FLAML_sample_size"])
else:

File diff suppressed because one or more lines are too long