tensorflow / tensorflow/recommenders

Question about hyperparameters' tuning and model comparison.

Open
#372 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2k
Forks
300
PR merge metrics
No merged PRs in 30d

Description

I'm a little confused about the practical difference between loss and metrics.

I have developed a model for predicting the next item a visitor will click in an e-shop, so I'm primarily interested in the actual click being in the top 5 results.

  1. During hyperparameter tuning, should I minimize the model's loss or maximise the top_5_categorical_accuracy?
  2. When comparing different model variations, should I look for a lower loss or a higher top_5_categorical_accuracy?

I appreciate any explanation you can provide.

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.

Research direction

No files, tests, or entry points are mentioned. Start by reviewing the distinction between loss and top_5_categorical_accuracy in the model-tuning guidance, then clarify which objective to use for hyperparameter tuning and model comparison based on the user's top-five recommendation goal.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.