Skip to content

Commit

Permalink
Updated spec to reflect the constraints on confidence >0 <1
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-groundlight committed Jul 11, 2024
1 parent 41bebf4 commit 32fe47c
Show file tree
Hide file tree
Showing 80 changed files with 272 additions and 353 deletions.
2 changes: 1 addition & 1 deletion generated/docs/BinaryClassificationResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**confidence** | **float** | |
**confidence** | **float, none_type** | |
**label** | **str** | |
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

Expand Down
2 changes: 1 addition & 1 deletion generated/docs/CountingResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**confidence** | **float** | |
**confidence** | **float, none_type** | |
**value** | **int** | |
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

Expand Down
1 change: 1 addition & 0 deletions generated/docs/Detector.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**mode** | **str** | | [readonly]
**mode_configuration** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | | [readonly]
**confidence_threshold** | **float** | If the detector&#39;s prediction is below this confidence threshold, send the image query for human review. | [optional] if omitted the server will use the default value of 0.9
**patience_time** | **float** | How long Groundlight will attempt to generate a confident prediction | [optional] if omitted the server will use the default value of 30.0
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
1 change: 0 additions & 1 deletion generated/groundlight_openapi_client/api/actions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401
import sys # noqa: F401

Expand Down
1 change: 0 additions & 1 deletion generated/groundlight_openapi_client/api/detectors_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401
import sys # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401
import sys # noqa: F401

Expand Down
1 change: 0 additions & 1 deletion generated/groundlight_openapi_client/api/notes_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401
import sys # noqa: F401

Expand Down
1 change: 0 additions & 1 deletion generated/groundlight_openapi_client/api/user_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401
import sys # noqa: F401

Expand Down
27 changes: 13 additions & 14 deletions generated/groundlight_openapi_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import json
import atexit
import mimetypes
Expand Down Expand Up @@ -134,6 +133,7 @@ def __call_api(
_check_type: typing.Optional[bool] = None,
_content_type: typing.Optional[str] = None,
):

config = self.configuration

# header parameters
Expand Down Expand Up @@ -676,19 +676,17 @@ def __init__(self, settings=None, params_map=None, root_map=None, headers_map=No
"""
self.settings = settings
self.params_map = params_map
self.params_map["all"].extend(
[
"async_req",
"_host_index",
"_preload_content",
"_request_timeout",
"_return_http_data_only",
"_check_input_type",
"_check_return_type",
"_content_type",
"_spec_property_naming",
]
)
self.params_map["all"].extend([
"async_req",
"_host_index",
"_preload_content",
"_request_timeout",
"_return_http_data_only",
"_check_input_type",
"_check_return_type",
"_content_type",
"_spec_property_naming",
])
self.params_map["nullable"].extend(["_request_timeout"])
self.validations = root_map["validations"]
self.allowed_values = root_map["allowed_values"]
Expand Down Expand Up @@ -779,6 +777,7 @@ def __call__(self, *args, **kwargs):
return self.callable(self, *args, **kwargs)

def call_with_http_info(self, **kwargs):

try:
index = (
self.api_client.configuration.server_operation_index.get(
Expand Down
1 change: 0 additions & 1 deletion generated/groundlight_openapi_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import copy
import logging
import multiprocessing
Expand Down
19 changes: 8 additions & 11 deletions generated/groundlight_openapi_client/model/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401
import sys # noqa: F401

Expand Down Expand Up @@ -200,16 +199,14 @@ def _from_openapi_data(cls, channel, recipient, include_image, *args, **kwargs):
setattr(self, var_name, var_value)
return self

required_properties = set(
[
"_data_store",
"_check_type",
"_spec_property_naming",
"_path_to_item",
"_configuration",
"_visited_composed_classes",
]
)
required_properties = set([
"_data_store",
"_check_type",
"_spec_property_naming",
"_path_to_item",
"_configuration",
"_visited_composed_classes",
])

@convert_js_args_to_python_args
def __init__(self, channel, recipient, include_image, *args, **kwargs): # noqa: E501
Expand Down
19 changes: 8 additions & 11 deletions generated/groundlight_openapi_client/model/action_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401
import sys # noqa: F401

Expand Down Expand Up @@ -204,16 +203,14 @@ def _from_openapi_data(cls, channel, recipient, include_image, *args, **kwargs):
setattr(self, var_name, var_value)
return self

required_properties = set(
[
"_data_store",
"_check_type",
"_spec_property_naming",
"_path_to_item",
"_configuration",
"_visited_composed_classes",
]
)
required_properties = set([
"_data_store",
"_check_type",
"_spec_property_naming",
"_path_to_item",
"_configuration",
"_visited_composed_classes",
])

@convert_js_args_to_python_args
def __init__(self, channel, recipient, include_image, *args, **kwargs): # noqa: E501
Expand Down
19 changes: 8 additions & 11 deletions generated/groundlight_openapi_client/model/all_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401
import sys # noqa: F401

Expand Down Expand Up @@ -196,16 +195,14 @@ def _from_openapi_data(cls, customer, gl, *args, **kwargs): # noqa: E501
setattr(self, var_name, var_value)
return self

required_properties = set(
[
"_data_store",
"_check_type",
"_spec_property_naming",
"_path_to_item",
"_configuration",
"_visited_composed_classes",
]
)
required_properties = set([
"_data_store",
"_check_type",
"_spec_property_naming",
"_path_to_item",
"_configuration",
"_visited_composed_classes",
])

@convert_js_args_to_python_args
def __init__(self, customer, gl, *args, **kwargs): # noqa: E501
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401
import sys # noqa: F401

Expand Down Expand Up @@ -56,7 +55,12 @@ class BinaryClassificationResult(ModelNormal):

allowed_values = {}

validations = {}
validations = {
("confidence",): {
"inclusive_maximum": 1,
"inclusive_minimum": 0,
},
}

@cached_property
def additional_properties_type():
Expand Down Expand Up @@ -89,7 +93,10 @@ def openapi_types():
and the value is attribute type.
"""
return {
"confidence": (float,), # noqa: E501
"confidence": (
float,
none_type,
), # noqa: E501
"label": (str,), # noqa: E501
}

Expand All @@ -112,7 +119,7 @@ def _from_openapi_data(cls, confidence, label, *args, **kwargs): # noqa: E501
"""BinaryClassificationResult - a model defined in OpenAPI
Args:
confidence (float):
confidence (float, none_type):
label (str):
Keyword Args:
Expand Down Expand Up @@ -188,23 +195,21 @@ def _from_openapi_data(cls, confidence, label, *args, **kwargs): # noqa: E501
setattr(self, var_name, var_value)
return self

required_properties = set(
[
"_data_store",
"_check_type",
"_spec_property_naming",
"_path_to_item",
"_configuration",
"_visited_composed_classes",
]
)
required_properties = set([
"_data_store",
"_check_type",
"_spec_property_naming",
"_path_to_item",
"_configuration",
"_visited_composed_classes",
])

@convert_js_args_to_python_args
def __init__(self, confidence, label, *args, **kwargs): # noqa: E501
"""BinaryClassificationResult - a model defined in OpenAPI
Args:
confidence (float):
confidence (float, none_type):
label (str):
Keyword Args:
Expand Down
19 changes: 8 additions & 11 deletions generated/groundlight_openapi_client/model/channel_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401
import sys # noqa: F401

Expand Down Expand Up @@ -87,16 +86,14 @@ def discriminator():

_composed_schemas = None

required_properties = set(
[
"_data_store",
"_check_type",
"_spec_property_naming",
"_path_to_item",
"_configuration",
"_visited_composed_classes",
]
)
required_properties = set([
"_data_store",
"_check_type",
"_spec_property_naming",
"_path_to_item",
"_configuration",
"_visited_composed_classes",
])

@convert_js_args_to_python_args
def __init__(self, *args, **kwargs):
Expand Down
19 changes: 8 additions & 11 deletions generated/groundlight_openapi_client/model/condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401
import sys # noqa: F401

Expand Down Expand Up @@ -196,16 +195,14 @@ def _from_openapi_data(cls, verb, parameters, *args, **kwargs): # noqa: E501
setattr(self, var_name, var_value)
return self

required_properties = set(
[
"_data_store",
"_check_type",
"_spec_property_naming",
"_path_to_item",
"_configuration",
"_visited_composed_classes",
]
)
required_properties = set([
"_data_store",
"_check_type",
"_spec_property_naming",
"_path_to_item",
"_configuration",
"_visited_composed_classes",
])

@convert_js_args_to_python_args
def __init__(self, verb, parameters, *args, **kwargs): # noqa: E501
Expand Down
Loading

0 comments on commit 32fe47c

Please sign in to comment.