feat: base data science scenario UI (#525)

* base data science ui

* fix bug

* fix mle grade

* not cache when mle prepare

* fix

* fix grade sample

* fix a small bug

* fix

* cache mle score

* fix

* add gen_mle_score script

* update for mle score

* simple debug show

* small change

* summary folder

* add evo loop tag

* add loop id

* add comment

* fix CI

* add enable_cache for docker conf

* CI

* use setting data path

* fix ui bug

---------

Co-authored-by: yuanteli <1957922024@qq.com>
This commit is contained in:
XianBW
2025-01-23 16:12:22 +08:00
committed by GitHub
parent e5b1912bfd
commit eb597924b2
8 changed files with 565 additions and 70 deletions
+7 -1
View File
@@ -144,6 +144,8 @@ class DockerConf(ExtendedBaseSettings):
running_timeout_period: int = 3600 # 1 hour
enable_cache: bool = True # enable the cache mechanism
class QlibDockerConf(DockerConf):
model_config = ExtendedSettingsConfigDict(env_prefix="QLIB_DOCKER_")
@@ -227,6 +229,7 @@ class MLEBDockerConf(DockerConf):
mem_limit: str | None = (
"48g" # Add memory limit attribute # new-york-city-taxi-fare-prediction may need more memory
)
enable_cache: bool = False
# physionet.org/files/mimic-eicu-fiddle-feature/1.0.0/FIDDLE_mimic3
@@ -458,7 +461,10 @@ class DockerEnv(Env[DockerConf]):
)
start = time.time()
out = self.cached_run(entry_add_timeout, local_path, env, running_extra_volume)
if self.conf.enable_cache:
out = self.cached_run(entry_add_timeout, local_path, env, running_extra_volume)
else:
out = self.__run(entry, local_path, env, running_extra_volume, remove_timestamp=False)
end = time.time()
if end - start + 1 >= self.conf.running_timeout_period: