Skip to content

Convert TrialResult to DataFrame #6294

Open

Description

@luisquintanilla

Description

TrialResult gives you important information about each trial AutoML runs as part of an experiment. Although today we have the NotebookMonitor for real-time visualizations and feedback during training, once training is done, to get similar information, users have to write their own code to access each of these pieces of information.

Proposal

Given an AutoML experiment called experiment, when training is done, users should be able to call ToDataFrame to convert the results of an AutoML experiment into a DataFrame.

TrialResult experimentResults = await experiment.RunAsync();
DataFrame results = experimentResults.ToDataFrame();

The result should display columns with information for each of the trials in a DataFrame similar to the following:

TrialId DurationInMilliseconds Metric Pipeline Parameter
21 8.5 0.98 ... ...
5 3.8 0.83 ... ...

From there, if users to sort / query the results using the built-in DataFrame methods, they can. Additionally, they can export to CSV using the WriteCsv method.

Activity

  1. ghost added
    untriagedNew issue has not been triaged
    on Aug 18, 2022
  2. added this to the ML.NET 3.0 milestone on Nov 28, 2022
  3. ghost removed
    untriagedNew issue has not been triaged
    on Nov 28, 2022
  4. added
    area-AutoMLAutomated machine learning, Model Builder, and ML.NET CLI
    and removed on Sep 8, 2026
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

    area-AutoMLAutomated machine learning, Model Builder, and ML.NET CLIenhancementNew feature or requestyellowmaintenance only

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions