dotnet / dotnet/machinelearning

Log message passing in AutoML child contexts

Open
#5,632 0 comments 0 reactions 0 assignees View on GitHub
area-AutoML usability
Dominant language
C#
Stars
9.4k
Forks
2k
Avg merge
2d 20h
Merged PRs (30d)
11

Description

### Method of passing log messages
To support the the ability to cancel runs, we needed a separate context for the child runs, and we pass the log messages from the child to parent.

Current method of passing the messages is imperfect.

**Current returned log format:**
`"[Source=AutoML, Kind=Trace] [Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Phase: Bottleneck Computation, Dataset used: Train, Image Index: 3954"`

This duplicates the header on the messages (`[Source=AutoML, Kind=Trace]` and `[Source=ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace]`), and makes it difficult to filter/select to the wanted log lines.

**Correct format:**
`"[Source=AutoML; ImageClassificationTrainer; ImageClassificationTrainer, Kind=Trace] Phase: Bottleneck Computation, Dataset used: Train, Image Index: 3954"`

This single header then lets you filter on the log line properties (e.g. `e.Source == "xyz"`) instead of parsing its free text.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.