question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature request: allow grid to span multiple notebooks

See original GitHub issue

Grid allows parametrizing a notebook to run multiple experiments with different parameters

  graph LR;
      prepare-->train-model-1;
      prepare-->train-model-2;
      prepare-->train-model-3;

However, in some cases, one may want to grid over many notebooks:

  graph LR;
      prepare-->train-model-1-->evaluate-model-1;
      prepare-->train-model-2-->evaluate-model-2;
      prepare-->train-model-3-->evaluate-model-3;

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
mat-ejcommented, Feb 18, 2022

it would be interesting if even the “types” of notebooks connected could be a hyperaparam in the grid. e.g. train model component could be: {scikit-train, pytorch-train, xgb-train}, each with respective hyperparameters. All being part of the parameter space in the grid search.

2reactions
edublancascommented, Mar 30, 2022

Hi,

I’ll start working on this. Requesting some feedback. I’m wondering what’s the cleanest API here, thinking of something like this:

tasks:
   # to create a multi-notebook grid, pass a list
  - source: [model.py, evaluate.py]
    # product must have "model" and "evaluate" as keys - we should validate this
    product:
        model: output/model.html # this can be a dictionary, too
        evaluate: output/evaluate.html
   # this generates 3 * 2 = 6 tasks
    grid:
        n_estimators: [5, 10, 20]
        criterion: [gini, entropy]

The only question on my mind is how do we handle the parameters. For example, for the first task n_estimators=5, and criterion=gini, should we only pass them to the model.py, or also to evaluate.py?

To me, it seems like the grid params are only relevant to the first stage, but there might be circumstances where the other stages might want to know which parameters were used.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Grid Layout (level 1) | Can I use... Support ... - CanIUse
Method of using a grid concept to lay out content, providing a mechanism for authors to divide available space for layout into columns...
Read more >
Things I've Learned About CSS Grid Layout
The following is a guest post by Oliver Williams. Oliver has been working with CSS grid layout and has learned quite a bit...
Read more >
grid-template-columns - CSS: Cascading Style Sheets | MDN
The grid-template-columns CSS property defines the line names and track sizing functions of the grid columns.
Read more >
CSS Grid: A guide to getting started - LogRocket Blog
The technique known as spanning allows child items to stretch across columns present in your grid by defining column start and column end ......
Read more >
grid-row-span and grid-column-span not being prefixed by ...
And we created Grid feature in Autoprefixer by looking to this way of using it. ... There is only one way to span...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found