mirror of https://github.com/microsoft/autogen.git
annotate state, add cv notebook
This commit is contained in:
parent
cdc4201188
commit
297fc5ad7c
|
@ -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
Loading…
Reference in New Issue