Skip to content

added prelimenary unit test for probeless#47

Open
baselmousi wants to merge 3 commits into
masterfrom
tests/unit-tests
Open

added prelimenary unit test for probeless#47
baselmousi wants to merge 3 commits into
masterfrom
tests/unit-tests

Conversation

@baselmousi

Copy link
Copy Markdown
Collaborator

added preliminary unit test for probeless. Still need to add tests for the following functions:

  • get neuron ordering for a tag
  • get neuron ordering for all tags

num_layers = 13
num_neurons = 768
concepts = ["NNP"]
input_corpus = "tests/interpretation/test-data/pos_test.label"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Any particular reason we want to use real pos data instead of synthetically generating this as well?

self.assertEqual(ranking_per_tag["class3"][0], top_neuron_for_class_3)


class TestGetNeuronOrderingForSyntheticData(unittest.TestCase):

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@baselmousi Conceptually, what is this test adding over TestGetNeuronOrdering? Is it just to test if the expected neurons also work over a bigger dataset?

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