Skip to content

Commit 804a329

Browse files
gustavocidornelaswhoseoyster
authored andcommitted
Completes OPEN-3570 Add backend support for baseline models
1 parent f49e17e commit 804a329

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

openlayer/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -451,14 +451,6 @@ def add_baseline_model(
451451
452452
For baseline models, the content of the YAML file should contain:
453453
454-
- ``ensembleSize`` : int, default 10
455-
Number of models ensembled.
456-
- ``randomSeed`` : int, default 42
457-
Random seed to be used for model training.
458-
- ``timeout`` : int, default 60
459-
Maximum time (in seconds) to train all the models.
460-
- ``perRunLimit`` : int, optional
461-
Maximum time (in seconds) to train each model.
462454
- ``metadata`` : Dict[str, any], default {}
463455
Dictionary containing metadata about the model. This is the
464456
metadata that will be displayed on the Openlayer platform.

openlayer/projects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def add_baseline_model(
5151
**kwargs,
5252
):
5353
"""Adds a baseline model to the project."""
54-
return self.client.add_baseline(
54+
return self.client.add_baseline_model(
5555
*args, project_id=self.id, task_type=tasks.TaskType(self.taskType), **kwargs
5656
)
5757

openlayer/schemas.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@
2121
class BaselineModelSchema(ma.Schema):
2222
"""Schema for baseline models."""
2323

24-
ensembleSize = ma.fields.Int(load_default=10)
2524
metadata = ma.fields.Dict(allow_none=True, load_default={})
26-
perRunLimit = ma.fields.Int(load_default=None, allow_none=True)
27-
randomSeed = ma.fields.Int(load_default=42)
28-
timeout = ma.fields.Int(load_default=60)
2925

3026

3127
class CommitSchema(ma.Schema):

0 commit comments

Comments
 (0)