Skip to content

Commit 1baecfa

Browse files
committed
fixed error
1 parent e8c9410 commit 1baecfa

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

pytabkit/bench/alg_wrappers/interface_wrappers.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import shutil
2-
import time
32
from pathlib import Path
43
from typing import Callable, List, Optional, Dict
54

@@ -10,7 +9,6 @@
109
from pytabkit.models.alg_interfaces.autogluon_model_interfaces import AutoGluonModelAlgInterface
1110
from pytabkit.models.alg_interfaces.catboost_interfaces import CatBoostSubSplitInterface, CatBoostHyperoptAlgInterface, \
1211
CatBoostSklearnSubSplitInterface, RandomParamsCatBoostAlgInterface
13-
from pytabkit.models.alg_interfaces.custom_interfaces import TabPFNV2SubSplitInterface
1412
from pytabkit.models.alg_interfaces.ensemble_interfaces import PrecomputedPredictionsAlgInterface, \
1513
CaruanaEnsembleAlgInterface, AlgorithmSelectionAlgInterface
1614
from pytabkit.models.alg_interfaces.lightgbm_interfaces import LGBMSubSplitInterface, LGBMHyperoptAlgInterface, \
@@ -21,7 +19,8 @@
2119
from pytabkit.models.alg_interfaces.other_interfaces import RFSubSplitInterface, SklearnMLPSubSplitInterface, \
2220
KANSubSplitInterface, GrandeSubSplitInterface, GBTSubSplitInterface, RandomParamsRFAlgInterface, \
2321
TabPFN2SubSplitInterface, TabICLSubSplitInterface, RandomParamsExtraTreesAlgInterface, RandomParamsKNNAlgInterface, \
24-
ExtraTreesSubSplitInterface, KNNSubSplitInterface, RandomParamsLinearModelAlgInterface, LinearModelSubSplitInterface
22+
ExtraTreesSubSplitInterface, KNNSubSplitInterface, RandomParamsLinearModelAlgInterface, \
23+
LinearModelSubSplitInterface
2524
from pytabkit.bench.scheduling.resources import NodeResources
2625
from pytabkit.models.alg_interfaces.alg_interfaces import AlgInterface, MultiSplitWrapperAlgInterface
2726
from pytabkit.models.alg_interfaces.base import SplitIdxs, RequiredResources
@@ -593,11 +592,6 @@ def __init__(self, model_idx: int, **config):
593592
super().__init__(RandomParamsLinearModelAlgInterface, model_idx=model_idx, **config)
594593

595594

596-
class TabPFNV2InterfaceWrapper(SubSplitInterfaceWrapper):
597-
def create_sub_split_interface(self, task_type: TaskType) -> AlgInterface:
598-
return TabPFNV2SubSplitInterface(**self.config)
599-
600-
601595
class xRFMInterfaceWrapper(SubSplitInterfaceWrapper):
602596
def create_sub_split_interface(self, task_type: TaskType) -> AlgInterface:
603597
return xRFMSubSplitInterface(**self.config)

pytabkit/models/alg_interfaces/other_interfaces.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,3 +1308,5 @@ def get_required_resources(self, ds: DictDataset, n_cv: int, n_refit: int, n_spl
13081308
rc = ResourcePredictor(config=updated_config, time_params=time_params,
13091309
cpu_ram_params=ram_params, n_gpus=1, gpu_usage=1.0, gpu_ram_params={'': 10.0})
13101310
return rc.get_required_resources(ds)
1311+
1312+

0 commit comments

Comments
 (0)