lecrapaud 0.16.0__py3-none-any.whl → 0.16.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lecrapaud might be problematic. Click here for more details.
- lecrapaud/db/models/experiment.py +3 -2
- {lecrapaud-0.16.0.dist-info → lecrapaud-0.16.1.dist-info}/METADATA +1 -1
- {lecrapaud-0.16.0.dist-info → lecrapaud-0.16.1.dist-info}/RECORD +5 -5
- {lecrapaud-0.16.0.dist-info → lecrapaud-0.16.1.dist-info}/LICENSE +0 -0
- {lecrapaud-0.16.0.dist-info → lecrapaud-0.16.1.dist-info}/WHEEL +0 -0
|
@@ -182,7 +182,7 @@ class Experiment(Base):
|
|
|
182
182
|
|
|
183
183
|
@classmethod
|
|
184
184
|
@with_db
|
|
185
|
-
def get_all_by_name(cls, name: str | None = None, db=None):
|
|
185
|
+
def get_all_by_name(cls, name: str | None = None, limit: int = 1000, db=None):
|
|
186
186
|
"""
|
|
187
187
|
Find the most recently created experiment that contains the given name string.
|
|
188
188
|
|
|
@@ -198,9 +198,10 @@ class Experiment(Base):
|
|
|
198
198
|
db.query(cls)
|
|
199
199
|
.filter(cls.name.ilike(f"%{name}%"))
|
|
200
200
|
.order_by(cls.created_at.desc())
|
|
201
|
+
.limit(limit)
|
|
201
202
|
.all()
|
|
202
203
|
)
|
|
203
|
-
return db.query(cls).order_by(cls.created_at.desc()).all()
|
|
204
|
+
return db.query(cls).order_by(cls.created_at.desc()).limit(limit).all()
|
|
204
205
|
|
|
205
206
|
@classmethod
|
|
206
207
|
@with_db
|
|
@@ -12,7 +12,7 @@ lecrapaud/db/alembic/versions/2025_06_25_1759-72aa496ca65b_.py,sha256=MiqooJuZ1e
|
|
|
12
12
|
lecrapaud/db/alembic.ini,sha256=TXrZB4pWVLn2EUg867yp6paA_19vGeirO95mTPA3nbs,3699
|
|
13
13
|
lecrapaud/db/models/__init__.py,sha256=Lhyw9fVLdom0Fc6yIP-ip8FjkU1EwVwjae5q2VM815Q,740
|
|
14
14
|
lecrapaud/db/models/base.py,sha256=J9ew-0z_-tnWAwhVvOmVDys2R6jPF_oSca_ny6wpXQE,7606
|
|
15
|
-
lecrapaud/db/models/experiment.py,sha256=
|
|
15
|
+
lecrapaud/db/models/experiment.py,sha256=mQmbp_LzwMYVLzwYlaoRWYgzZCSJCA9dDcLpuvddsms,10931
|
|
16
16
|
lecrapaud/db/models/feature.py,sha256=5o77O2FyRObnLOCGNj8kaPSGM3pLv1Ov6mXXHYkmnYY,1136
|
|
17
17
|
lecrapaud/db/models/feature_selection.py,sha256=mk42xuw1Sm_7Pznfg7TNc5_S4hscdw79QgIe3Bt9ZRI,3245
|
|
18
18
|
lecrapaud/db/models/feature_selection_rank.py,sha256=Ydsb_rAT58FoSH13wkGjGPByzsjPx3DITXgJ2jgZmow,2198
|
|
@@ -39,7 +39,7 @@ lecrapaud/misc/test-gpu-transformers.ipynb,sha256=k6MBSs_Um1h4PykvE-LTBcdpbWLbIF
|
|
|
39
39
|
lecrapaud/model_selection.py,sha256=vV2oO_fhhJ4dozOQCn_ySJzQT5gMVtQbLR4Wf59bi3A,67885
|
|
40
40
|
lecrapaud/search_space.py,sha256=-JkzuMhaomdwiWi4HvVQY5hiw3-oREemJA16tbwEIp4,34854
|
|
41
41
|
lecrapaud/utils.py,sha256=JdBB1NvbNIx4y0Una-kSZdo1_ZEocc5hwyYFIZKHmGg,8305
|
|
42
|
-
lecrapaud-0.16.
|
|
43
|
-
lecrapaud-0.16.
|
|
44
|
-
lecrapaud-0.16.
|
|
45
|
-
lecrapaud-0.16.
|
|
42
|
+
lecrapaud-0.16.1.dist-info/LICENSE,sha256=MImCryu0AnqhJE_uAZD-PIDKXDKb8sT7v0i1NOYeHTM,11350
|
|
43
|
+
lecrapaud-0.16.1.dist-info/METADATA,sha256=Owc-t3_MFAf9Dnz9jNm2U7M6G-sdStbASPV7g6EXiQA,11081
|
|
44
|
+
lecrapaud-0.16.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
45
|
+
lecrapaud-0.16.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|