Module markov.api.schemas.model_impl

Classes

class DataSegmentInfo (ds_id: str, segment_type: str)

DataSegmentInfo(ds_id: 'str', segment_type: 'str')

Static methods

def create_from_dict(value: dict) ‑> DataSegmentInfo
def create_from_json(value: str) ‑> DataSegmentInfo
def from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) ‑> ~A
def from_json(s: str | bytes | bytearray,
*,
parse_float=None,
parse_int=None,
parse_constant=None,
infer_missing=False,
**kw) ‑> ~A
def schema(*,
infer_missing: bool = False,
only=None,
exclude=(),
many: bool = False,
context=None,
load_only=(),
dump_only=(),
partial: bool = False,
unknown=None) ‑> dataclasses_json.mm.SchemaF[~A]

Instance variables

var ds_id : str
var segment_type : str

Methods

def get_dict(self) ‑> dict
def get_json(self) ‑> str
def to_dict(self, encode_json=False) ‑> Dict[str, dict | list | str | int | float | bool | None]
def to_json(self,
*,
skipkeys: bool = False,
ensure_ascii: bool = True,
check_circular: bool = True,
allow_nan: bool = True,
indent: int | str | None = None,
separators: Tuple[str, str] | None = None,
default: Callable | None = None,
sort_keys: bool = False,
**kw) ‑> str
class ModelEvaluationRunConfig (data_seg_info: List[DataSegmentInfo],
model_id: str,
notes: str,
run_type: str = RunType.MODEL_EVALUATION,
workspace_id: str = '',
user_id: str = '',
team_id: str = '')

ModelEvaluationRunConfig(data_seg_info: 'List[DataSegmentInfo]', model_id: 'str', notes: 'str', run_type: 'str' = , workspace_id: 'str' = '', user_id: 'str' = '', team_id: 'str' = '')

Static methods

def create_from_dict(value: dict) ‑> ModelEvaluationRunConfig
def create_from_json(value: str) ‑> ModelEvaluationRunConfig
def from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) ‑> ~A
def from_json(s: str | bytes | bytearray,
*,
parse_float=None,
parse_int=None,
parse_constant=None,
infer_missing=False,
**kw) ‑> ~A
def schema(*,
infer_missing: bool = False,
only=None,
exclude=(),
many: bool = False,
context=None,
load_only=(),
dump_only=(),
partial: bool = False,
unknown=None) ‑> dataclasses_json.mm.SchemaF[~A]

Instance variables

var data_seg_info : List[DataSegmentInfo]
var model_id : str
var notes : str
var run_type : str
var team_id : str
var user_id : str
var workspace_id : str

Methods

def get_dict(self) ‑> dict
def get_json(self) ‑> str
def to_dict(self, encode_json=False) ‑> Dict[str, dict | list | str | int | float | bool | None]
def to_json(self,
*,
skipkeys: bool = False,
ensure_ascii: bool = True,
check_circular: bool = True,
allow_nan: bool = True,
indent: int | str | None = None,
separators: Tuple[str, str] | None = None,
default: Callable | None = None,
sort_keys: bool = False,
**kw) ‑> str
class ModelFamilyRegisterConfig (name: str,
notes: str = '',
workspace_id: str = '',
user_id: str = '',
team_id: str = '',
misc: dict = <factory>)

ModelFamilyRegisterConfig(name: 'str', notes: 'str' = '', workspace_id: 'str' = '', user_id: 'str' = '', team_id: 'str' = '', misc: 'dict' = )

Static methods

def create_from_dict(value: dict)
def create_from_json(value: str)
def from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) ‑> ~A
def from_json(s: str | bytes | bytearray,
*,
parse_float=None,
parse_int=None,
parse_constant=None,
infer_missing=False,
**kw) ‑> ~A
def schema(*,
infer_missing: bool = False,
only=None,
exclude=(),
many: bool = False,
context=None,
load_only=(),
dump_only=(),
partial: bool = False,
unknown=None) ‑> dataclasses_json.mm.SchemaF[~A]

Instance variables

var misc : dict
var name : str
var notes : str
var team_id : str
var user_id : str
var workspace_id : str

Methods

def get_dict(self)
def get_json(self)
def to_dict(self, encode_json=False) ‑> Dict[str, dict | list | str | int | float | bool | None]
def to_json(self,
*,
skipkeys: bool = False,
ensure_ascii: bool = True,
check_circular: bool = True,
allow_nan: bool = True,
indent: int | str | None = None,
separators: Tuple[str, str] | None = None,
default: Callable | None = None,
sort_keys: bool = False,
**kw) ‑> str
class ModelRegistrationConfig (model_name: str,
model_family_id: str,
model_category: str,
model_type: ModelType,
sample_model_inputs: List,
meta_info: Optional[Any] = None,
workspace_id: str = '',
user_id: str = '',
team_id: str = '')

ModelRegistrationConfig(model_name: 'str', model_family_id: 'str', model_category: 'str', model_type: 'ModelType', sample_model_inputs: 'List', meta_info: 'Optional[Any]' = None, workspace_id: 'str' = '', user_id: 'str' = '', team_id: 'str' = '')

Static methods

def create_from_dict(value: dict) ‑> ModelRegistrationConfig
def create_from_json(value: str) ‑> ModelRegistrationConfig
def from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) ‑> ~A
def from_json(s: str | bytes | bytearray,
*,
parse_float=None,
parse_int=None,
parse_constant=None,
infer_missing=False,
**kw) ‑> ~A
def schema(*,
infer_missing: bool = False,
only=None,
exclude=(),
many: bool = False,
context=None,
load_only=(),
dump_only=(),
partial: bool = False,
unknown=None) ‑> dataclasses_json.mm.SchemaF[~A]

Instance variables

var meta_info : Any | None
var model_category : str
var model_family_id : str
var model_name : str
var model_typeModelType
var sample_model_inputs : List
var team_id : str
var user_id : str
var workspace_id : str

Methods

def get_dict(self) ‑> dict
def get_json(self) ‑> str
def to_dict(self, encode_json=False) ‑> Dict[str, dict | list | str | int | float | bool | None]
def to_json(self,
*,
skipkeys: bool = False,
ensure_ascii: bool = True,
check_circular: bool = True,
allow_nan: bool = True,
indent: int | str | None = None,
separators: Tuple[str, str] | None = None,
default: Callable | None = None,
sort_keys: bool = False,
**kw) ‑> str
class RemoteAPIModelMetaInfo (end_point: str,
auth_token: str,
rest_method: str,
sample_api_inputs: List[Any],
auth_type: str)

RemoteAPIModelMetaInfo(end_point: 'str', auth_token: 'str', rest_method: 'str', sample_api_inputs: 'List[Any]', auth_type: 'str')

Static methods

def create_from_dict(value: dict) ‑> RemoteAPIModelMetaInfo
def create_from_json(value: str) ‑> RemoteAPIModelMetaInfo
def from_dict(kvs: dict | list | str | int | float | bool | None, *, infer_missing=False) ‑> ~A
def from_json(s: str | bytes | bytearray,
*,
parse_float=None,
parse_int=None,
parse_constant=None,
infer_missing=False,
**kw) ‑> ~A
def schema(*,
infer_missing: bool = False,
only=None,
exclude=(),
many: bool = False,
context=None,
load_only=(),
dump_only=(),
partial: bool = False,
unknown=None) ‑> dataclasses_json.mm.SchemaF[~A]

Instance variables

var auth_token : str
var auth_type : str
var end_point : str
var rest_method : str
var sample_api_inputs : List[Any]

Methods

def get_dict(self) ‑> Dict

Returns

Serialize this object to Dict

def get_json(self) ‑> str

Returns

Serialize this object to JSON

def to_dict(self, encode_json=False) ‑> Dict[str, dict | list | str | int | float | bool | None]
def to_json(self,
*,
skipkeys: bool = False,
ensure_ascii: bool = True,
check_circular: bool = True,
allow_nan: bool = True,
indent: int | str | None = None,
separators: Tuple[str, str] | None = None,
default: Callable | None = None,
sort_keys: bool = False,
**kw) ‑> str