Compute metrics during evaluation, not during training

Open
#48 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start by reading the training entry points in src/morphoclass/console/cmd_train.py around lines 139-141 and src/morphoclass/console/cmd_morphometrics.py around lines 198-200. Trace the evaluation stages and any uses of checkpoint.chk to identify assumptions about stored metrics. Done means metrics are computed during evaluation rather than training, with no remaining checkpoint metric assumptions.

Written by the indexing model from the issue text.

Description

enhancement

Context

Currently we are computing all metrics during the model training. This is true both for:

Actions

  • Make sure that nowhere else in the code (e.g. during evaluation) we are assuming that the checkpoint.chk produced during training contains metrics scores.
  • Move the computation of metrics scores from training stage to evaluation stages.

See also

https://github.com/BlueBrain/morphoclass/pull/45#issuecomment-1115874293

Dominant language
Python
Stars
12
Forks
6
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BlueBrain/morphoclass

All issues in BlueBrain/morphoclass

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.