Skip to content

API reference - Finalize the template for trainer samples #3160

Description

@shmoradims

Our current template for trainer API reference samples is as follows:

  1. Create in-memory random training data (as discussed in Text loader v.s in-memory data structure in API reference samples #2726 we're avoiding complex datasets and text-loader).
  2. Create a pipeline with just the trainer (i.e. focusing only on the API that this sample is about without getting into complex featurization pipeline).
  3. Fit the trainer.
  4. Generate 5 predictions and output results.
  5. Evaluate with in-memory test data and output metrics.

Below are some examples:

Other samples will be added using this template. If you want to make any changes please mention them here so that we can finalize the sample.

/cc @shauheen @glebuk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions