Repository URL to install this package:
|
Version:
4.5.4.dev1 ▾
|
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import typing
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
class Scalar(google.protobuf.message.Message):
"""A Scalar represents data that does not fulfill the promise of a Dataset.
A Dataset promises to have a schema and the possibility to iterate on
pyarrow.RecordBatches
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
class PropertiesEntry(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
KEY_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
key: typing.Text = ...
value: typing.Text = ...
def __init__(self,
*,
key : typing.Text = ...,
value : typing.Text = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ...
class Spec(google.protobuf.message.Message):
"""Definitions
How to obtain the dataset
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
TRANSFORMED_FIELD_NUMBER: builtins.int
MODEL_FIELD_NUMBER: builtins.int
@property
def transformed(self) -> global___Scalar.Transformed: ...
@property
def model(self) -> global___Scalar.Model: ...
def __init__(self,
*,
transformed : typing.Optional[global___Scalar.Transformed] = ...,
model : typing.Optional[global___Scalar.Model] = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal[u"model",b"model",u"spec",b"spec",u"transformed",b"transformed"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal[u"model",b"model",u"spec",b"spec",u"transformed",b"transformed"]) -> None: ...
def WhichOneof(self, oneof_group: typing_extensions.Literal[u"spec",b"spec"]) -> typing.Optional[typing_extensions.Literal["transformed","model"]]: ...
class Transformed(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
class NamedArgumentsEntry(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
KEY_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
key: typing.Text = ...
value: typing.Text = ...
def __init__(self,
*,
key : typing.Text = ...,
value : typing.Text = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ...
TRANSFORM_FIELD_NUMBER: builtins.int
ARGUMENTS_FIELD_NUMBER: builtins.int
NAMED_ARGUMENTS_FIELD_NUMBER: builtins.int
transform: typing.Text = ...
"""Transform id"""
@property
def arguments(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]:
"""Dataset or other object ids"""
pass
@property
def named_arguments(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, typing.Text]: ...
def __init__(self,
*,
transform : typing.Text = ...,
arguments : typing.Optional[typing.Iterable[typing.Text]] = ...,
named_arguments : typing.Optional[typing.Mapping[typing.Text, typing.Text]] = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal[u"arguments",b"arguments",u"named_arguments",b"named_arguments",u"transform",b"transform"]) -> None: ...
class Model(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
class ModelClass(_ModelClass, metaclass=_ModelClassEnumTypeWrapper):
pass
class _ModelClass:
V = typing.NewType('V', builtins.int)
class _ModelClassEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ModelClass.V], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ...
TF_KERAS = Scalar.Model.ModelClass.V(0)
SK_SVC = Scalar.Model.ModelClass.V(1)
TF_KERAS = Scalar.Model.ModelClass.V(0)
SK_SVC = Scalar.Model.ModelClass.V(1)
ARGUMENTS_FIELD_NUMBER: builtins.int
NAMED_ARGUMENTS_FIELD_NUMBER: builtins.int
MODEL_CLASS_FIELD_NUMBER: builtins.int
arguments: builtins.bytes = ...
named_arguments: builtins.bytes = ...
model_class: global___Scalar.Model.ModelClass.V = ...
def __init__(self,
*,
arguments : builtins.bytes = ...,
named_arguments : builtins.bytes = ...,
model_class : global___Scalar.Model.ModelClass.V = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal[u"arguments",b"arguments",u"model_class",b"model_class",u"named_arguments",b"named_arguments"]) -> None: ...
UUID_FIELD_NUMBER: builtins.int
NAME_FIELD_NUMBER: builtins.int
DOC_FIELD_NUMBER: builtins.int
SPEC_FIELD_NUMBER: builtins.int
PROPERTIES_FIELD_NUMBER: builtins.int
uuid: typing.Text = ...
"""A Scalar does not ensure this possibility. As a consequence, oprations
from standard libraries are allowed (pandas.mean, numpy.std,...) but
operations implemented for Datasets by Sarus like computing marginals or
fitting a Keras model cannot be performed on a Scalar.
Scalars are generated by transforms that explicitly require a specific
format (e.g. as_pandas, as_numpy,...) or as byproducts of transforms
(model weights, training history,...).
e.g. RFC 4122 id used to refer to the dataset (content linked?)
"""
name: typing.Text = ...
doc: typing.Text = ...
@property
def spec(self) -> global___Scalar.Spec: ...
@property
def properties(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, typing.Text]:
"""Other properties"""
pass
def __init__(self,
*,
uuid : typing.Text = ...,
name : typing.Text = ...,
doc : typing.Text = ...,
spec : typing.Optional[global___Scalar.Spec] = ...,
properties : typing.Optional[typing.Mapping[typing.Text, typing.Text]] = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal[u"spec",b"spec"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal[u"doc",b"doc",u"name",b"name",u"properties",b"properties",u"spec",b"spec",u"uuid",b"uuid"]) -> None: ...
global___Scalar = Scalar