Skip to content

Usage examples - #69

Merged
mschrimpf merged 15 commits into
mainfrom
mschrimpf/examples
Sep 28, 2022
Merged

mschrimpf merged 15 commits into
mainfrom
mschrimpf/examples

Conversation

@mschrimpf

@mschrimpf mschrimpf commented Sep 21, 2022 •

Copy link
Copy Markdown
Member

See https://github.com/brain-score/language/tree/mschrimpf/examples/examples for rendered.

  • Scoring model on benchmark
  • Score each layer of a model on a benchmark
  • Comparing two models
  • Comparing two humans

@mschrimpf
mschrimpf marked this pull request as ready for review September 21, 2022 15:24

@gretatuckute gretatuckute left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!

Two comments:

  1. For the score.ipynb notebook and GloVe demonstration, punctuation should probably be stripped (?) because right now it provides nans for the last word in each sentence or if there is a comma. However, that should be inherent to the GloVe model and not the Pereira stimuli per se (i.e. if we run a transformer, we want to retain punctuation)?

  2. For the compare_within_species.ipynb, the metric is named according to our old convention (see PR #68), should be updated?

@mschrimpf

Copy link
Copy Markdown
Member Author

Addressed the first point.
For the second whichever PR is merged last should update the naming.

@mschrimpf
mschrimpf merged commit 854f7a7 into main Sep 28, 2022
@mschrimpf
mschrimpf deleted the mschrimpf/examples branch September 28, 2022 15:06
mschrimpf added a commit that referenced this pull request Oct 26, 2022
* relax python version

* try exact python 3.7 version for colab

* add example scripts for scoring (separate layers), species comparisons

* fix human-human behavioral comparison

* fix model behavioral/neural comparisons

* undo python specification changes

* add human-human neural comparison

* progress bar over huggingface text digestion

* distilgpt2 score on Futrell, and glove on Pereira2018

* remove whitespace

* explain `[1:]`

* show examples in docs

* try with examples.md in source

* remove punctuation for embedding models

* fix colon removal
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