Skip to content

Instantly share code, notes, and snippets.

View packet-rat's full-sized avatar

Patrick Maroney packet-rat

  • Integrated Networking Technologies, Inc.
  • Philadelphia Region
View GitHub Profile
import uuid
# http://marshmallow.readthedocs.org/en/latest/
from marshmallow import Schema, fields
STATUS_TYPES = [
'ASYNCHRONOUS_POLL_ERROR', 'BAD_MESSAGE', 'DENIED',
'DESTINATION_COLLECTION_ERROR', 'FAILURE', 'INVALID_RESPONSE_PART',
'NETWORK_ERROR', 'NOT_FOUND', 'PENDING', 'POLLING_UNSUPPORTED',
'RETRY', 'SUCCESS', 'UNAUTHORIZED', 'UNSUPPORTED_MESSAGE',
@aficionado
aficionado / JSON PML schemas.md
Last active September 4, 2018 23:49
JSON PML schemas

JSON PML: schemas for models

  • model-schema.json A generic ML model, containing fields shared by most models despite of their concrete type. It uses:
    • sample-schema.json The schema for dataset sampling specifications
    • field-collection-schema.json Auxiliary schema describing a collection of field (or "properties") descriptors
    • generic-field-schema.json Properties shared by all fields, regardless of their type.
    • field-schema.json The union schema of all field descriptor types, with their specific properties.
  • tree-model-schema.json A specialization of the model schema to decision tree models. It uses:
  • node-schema The schema for the nodes in a decision tree