inspectDataset
Function: inspectDataset()
inspectDataset(
bytes,fileName,options?,features?,targets?):PipelineDatasetMetadata
Defined in: pipeline.ts:448
Parses a CSV or TSV dataset, validates its schema and infers column types and feature metadata.
Parameters
bytes
Uint8Array
Raw file or dataset bytes.
fileName
string | undefined
File name or artifact name, depending on the operation.
options?
PipelineDatasetInspectionOptions = {}
Dataset schema, format and feature selection overrides.
features?
readonly string[]
Optional feature names used to restrict dataset inspection.
targets?
readonly string[]
Optional target names used to identify and exclude labels during inspection.
Returns
The detected file format, schema, column types and dataset dimensions.
Throws
Error if the format, columns, target or rows are invalid.