File tree Expand file tree Collapse file tree 6 files changed +30
-8
lines changed
tests/integration/annotation_import Expand file tree Collapse file tree 6 files changed +30
-8
lines changed Original file line number Diff line number Diff line change 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() `
Original file line number Diff line number Diff line change 2121copyright = '2021, Labelbox'
2222author = 'Labelbox'
2323
24- release = '3.25 .1'
24+ release = '3.26 .1'
2525
2626# -- General configuration ---------------------------------------------------
2727
Original file line number Diff line number Diff line change 11name = "labelbox"
2- __version__ = "3.26.0 "
2+ __version__ = "3.26.1 "
33
44from labelbox .client import Client
55from labelbox .schema .project import Project
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
7777def test_model_run_data_rows_delete (client , model_run_with_model_run_data_rows ):
You can’t perform that action at this time.
0 commit comments