Skip to content

Column transformers #9

@isair

Description

@isair

Support passing an option with transformer functions that'll be applied to values belonging to a specific column. Before data is converted into tensors and tensor operations such as standardisation are applied.

e.g.

const { ... } = loadCsv('data.csv', {
  ...
  labelColumns: ['temperature'],
  ...
  columnTransformers: {
    temperature: (fahrenheit) => (fahrenheit - 32) * 5 / 9,
  },
});

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions