L i*ddlZddlZddlmZddlmZddlmZddlmZidddgd d gd d gd dgddgddgddgddgddgddgdgdddgdd gd!d"gd#d$gd%d&gd'd(gd)gd*gd+gd,gd-gd.d/gd0Z gd1Z erdd2l m Z dd3l m Z dd4lmZdd5lmZdd6lmZdd7lmZdd8lmZdd9lmZdd:lmZdd;lmZddlm!Z!dd?lm"Z"dd@l#m$Z$ddAl%m&Z&ddBl'm(Z(ddCl)m*Z*ddDl+m,Z,ddEl-m.Z.ddFl/m0Z0ddGl1m2Z2ddHl3m4Z4ddIl5m6Z6ddJl7m8Z8ddKl9m:Z:ddLl;mej~e><y)ON) ModuleType)Any) TYPE_CHECKING)"_INTEGRATION_IMPORT_ERROR_TEMPLATEallennlpAllenNLPExecutorAllenNLPPruningCallbackbotorchBoTorchSamplercatboostCatBoostPruningCallbackchainerChainerPruningExtension chainermnChainerMNStudycma PyCmaSamplerdask DaskStoragemlflowMLflowCallbackwandbWeightsAndBiasesCallbackkerasKerasPruningCallbacklightgbm)LightGBMPruningCallback LightGBMTunerLightGBMTunerCVpytorch_distributedTorchDistributedTrialpytorch_ignitePyTorchIgnitePruningHandlerpytorch_lightningPyTorchLightningPruningCallbacksklearnOptunaSearchCVshapShapleyImportanceEvaluatorskorchSkorchPruningCallbackMXNetPruningCallbackTensorBoardCallbackTensorFlowPruningHookTFKerasPruningCallbackXGBoostPruningCallbackFastAIV2PruningCallbackFastAIPruningCallback)mxnet tensorboard tensorflowtfkerasxgboostfastaiv2)rr r r rrrrrrrrrrr!r#r%r'r)r+r,r-r.r/r0r1r2)r)r )r )r )r)r)r)r)r2)r1)r)r)r)r)r)r,)r!)r#)r%)r))r')r+)r-)r.)r/)r)r0ceZdZdZeZedZejjegZ e e jZiZe j!D]\ZZeD]Zeee< dedefdZdedefdZy) _IntegrationModulealModule class that implements `optuna.integration` package. This class applies lazy import under `optuna.integration`, where submodules are imported when they are actually accessed. Otherwise, `import optuna` becomes much slower because it imports all submodules and their dependencies (e.g., chainer, keras, lightgbm) all at once. __file__namereturnc8||jvr|j|}nl||jjvr+|j|j|}t ||}n%t dj |j|t||||S)Nzmodule {} has no attribute {}) _modules _get_module_class_to_modulekeysgetattrAttributeErrorformat__name__setattr)selfr<valuemodules a/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/optuna/integration/__init__.py __getattr__z_IntegrationModule.__getattr__tst}}$((...3355))$*?*?*EF-$%D%K%KDMM[_%`aa D$ &L module_namecddl} |jd|z|jS#t$rtt j |wxYw)Nr.) importlib import_modulerFModuleNotFoundErrorrrE)rHrNrQs rKr@z_IntegrationModule._get_modulesP  b ..s[/@$--PP& b)*L*S*ST_*`aa bs %(A N)rF __module__ __qualname____doc____all__globalsr;ospathdirname__path__set_import_structurerBr?rAitemskeyvaluesrIstrrrLrr@rMrKr:r:bs 9Z(GGOOH-.(--/0,224 .KC .*- ' . . C C  b3 b: brMr:)@rYsystypesrtypingrroptuna._importsrr^rWoptuna.integration.allennlprr optuna.integration.botorchr optuna.integration.catboostr optuna.integration.chainerroptuna.integration.chainermnroptuna.integration.cmaroptuna.integration.daskroptuna.integration.fastaiv2r2r1optuna.integration.kerasroptuna.integration.lightgbmrrroptuna.integration.mlflowroptuna.integration.mxnetr,&optuna.integration.pytorch_distributedr!!optuna.integration.pytorch_igniter#$optuna.integration.pytorch_lightningr%optuna.integration.shapr)optuna.integration.sklearnr'optuna.integration.skorchr+optuna.integration.tensorboardr-optuna.integration.tensorflowr.optuna.integration.tfkerasr/optuna.integration.wandbroptuna.integration.xgboostr0r:rFmodulesrcrMrKrs  >#%>?  !*+)*  "#   N   ]O   ( ) $ %O3445;< !  ) *!" &'#$% %)**+()()*,CD/6 ><C9CB;33AC=C9;8=LMTB9?BCAAA$bZ$bL/x8CKKrM