Skip to content

Tests/regression tests#46

Open
baselmousi wants to merge 8 commits intomasterfrom
tests/regression-tests
Open

Tests/regression tests#46
baselmousi wants to merge 8 commits intomasterfrom
tests/regression-tests

Conversation

@baselmousi
Copy link
Collaborator

Added regression tests for testing the rankings obtained. used syrupy to implement the snapshot testing.

Copy link
Owner

@fdalvi fdalvi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good for a start; I think we can do a few more things:

  • Add tests for multiclass (where supported) - including class specific rankings
  • Add tests for regression (for linear probe)
  • Add more "random" data per test type (vary number of samples, number of neurons), something like 10 for the each configuration (perhaps generated using different seeds) - just to cover more space
  • You also need to add syupy under test dependencies in the setup + commit the snapshots folder
  • I'm wondering if we should make it clear somewhere (in the filename, top level comment or test names) that these are regression tests; maybe not that important

import torch

seed_value = 99
np.random.seed(seed_value)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should set a few other seeds, torch's/python's random to ensure the same env everytime

@fdalvi
Copy link
Owner

fdalvi commented Oct 4, 2023

@baselmousi Whats v1 and v2 here? Are these testing for different things? We can name them better in that case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants