Registry Mirror
Skip to content

Add support for training on a collection of objects #24

Closed

Description

@markusweimer

Right now, the LearningPipeline can only learn from data consumed via the TextLoader or any other Loader component. For many scenarios, it would be nice to allow for the consumption of collections of objects for training.

Activity

  1. added
    enhancement
    on May 4, 2018
  2. markusweimer commented on May 4, 2018

    @markusweimer
    Author

    I can see two possible APIs for this:

    var dataList = ...; // A collection of objects serving as training data.
    
    // Variant 1: Make additional pipeline components
    var p = new LearningPipeline();
    p.Add(new CollectionLoader(dataList));
    ...
    var m = p.Train();
    
    // Variant 2: Data as parameter to .Train:
    var p = new LearningPipeline();
    ...
    var m = p.Train(dataList);

    Variant 1 seems more natural in our current APIs to me.

  3. markusweimer commented on May 4, 2018

    @markusweimer
    Author

    Closed, as it is a duplicate of #10.

  4. ghost locked as resolved and limited conversation to collaborators on Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions