Skip to content

Commit 3028d10

Browse files
committed
merge conflict
2 parents 62bcfde + 8afcfb9 commit 3028d10

File tree

6 files changed

+30
-8
lines changed

6 files changed

+30
-8
lines changed

CHANGELOG.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@
22

33
# Version 0.0.0 (YYYY-MM-DD) - In Progress
44
### Added
5+
* Support for document (pdf) de/serialization from exports
6+
* Use the `LBV1Converter.serialize()` and `LBV1Converter.deserialize()` methods
7+
* Support for document (pdf) de/serialization for imports
8+
* Use the `NDJsonConverter.serialize()` and `NDJsonConverter.deserialize()` methods
9+
10+
# Version 3.26.1 (2022-08-23)
11+
### Changed
12+
* `ModelRun.get_config()`
13+
* Modifies get_config to return un-nested Model Run config
14+
### Added
515
* `ModelRun.update_config()`
616
* Updates model run training metadata
717
* `ModelRun.reset_config()`
818
* Resets model run training metadata
919
* `ModelRun.get_config()`
1020
* Fetches model run training metadata
11-
* Support for document (pdf) de/serialization from exports
12-
* Use the `LBV1Converter.serialize()` and `LBV1Converter.deserialize()` methods
13-
* Support for document (pdf) de/serialization for imports
14-
* Use the `NDJsonConverter.serialize()` and `NDJsonConverter.deserialize()` methods
1521

1622
### Changed
1723
* `Model.create_model_run()`

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
copyright = '2021, Labelbox'
2222
author = 'Labelbox'
2323

24-
release = '3.25.1'
24+
release = '3.26.1'
2525

2626
# -- General configuration ---------------------------------------------------
2727

labelbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "labelbox"
2-
__version__ = "3.26.0"
2+
__version__ = "3.26.1"
33

44
from labelbox.client import Client
55
from labelbox.schema.project import Project

labelbox/schema/model_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def get_config(self) -> Dict[str, Any]:
310310
}
311311
""", {'modelRunId': self.uid},
312312
experimental=True)
313-
return res["modelRun"]
313+
return res["modelRun"]["trainingMetadata"]
314314

315315
@experimental
316316
def export_labels(

labelbox/schema/project.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,22 @@ class QueueMode(Enum):
9393
Dataset = "Dataset"
9494

9595
def update(self, **kwargs):
96+
""" Updates this project with the specified attributes
97+
98+
Args:
99+
kwargs: a dictionary containing attributes to be upserted
100+
101+
Note that the quality setting cannot be changed after a project has been created. The quality mode
102+
for a project is inferred through the following attributes:
103+
Benchmark:
104+
auto_audit_number_of_labels = 1
105+
auto_audit_percentage = 1.0
106+
Consensus:
107+
auto_audit_number_of_labels > 1
108+
auto_audit_percentage <= 1.0
109+
Attempting to switch between benchmark and consensus modes is an invalid operation and will result
110+
in an error.
111+
"""
96112
mode: Optional[Project.QueueMode] = kwargs.pop("queue_mode", None)
97113
if mode:
98114
self._update_queue_mode(mode)

tests/integration/annotation_import/test_model_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_model_run_get_config(model_run_with_training_metadata):
7171
new_config = {"batch_size": 2000}
7272
model_run_with_training_metadata.update_config(new_config)
7373
res = model_run_with_training_metadata.get_config()
74-
assert res["trainingMetadata"]["batch_size"] == new_config["batch_size"]
74+
assert res["batch_size"] == new_config["batch_size"]
7575

7676

7777
def test_model_run_data_rows_delete(client, model_run_with_model_run_data_rows):

0 commit comments

Comments
 (0)