Skip to main content

TLPCodeFragmentClassification

Model for ML big query classification.

Properties

NameType
schemaEmbeddedModelSchema
assetstring
modelstring
createdstring
classificationstring
probabilitynumber
contextstring
distributionstring
metadataTLPCodeFragmentClassificationMetadata
userstring
latencynumber
systemSystemExecutionInformation

Example

import { TLPCodeFragmentClassification } from '@pieces.app/pieces-os-client'

// TODO: Update the object below with actual values
const example: TLPCodeFragmentClassification = {
"schema": null,
"asset": null,
"model": null,
"created": null,
"classification": null,
"probability": null,
"context": null,
"distribution": null,
"metadata": null,
"user": null,
"latency": null,
"system": null,
}

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as TLPCodeFragmentClassification
console.log(exampleParsed)