Git Product home page Git Product logo

neurotopics's Introduction

Neurotopics

Authors: Jessica Mollick, Tim Rubin, L. Amber Wilcox-O'Hearn

Contact: [email protected], [email protected], [email protected]

Released under the GNU AFFERO GENERAL PUBLIC LICENSE, see COPYING file for details.

Introduction

Neurotopics is a topic modelling tool for NeuroSynth. We will take a Neurosynth dataset, a brain atlas in NIFTI or Analyze format, and a file containing word frequency counts for all words in the documents of the dataset. For each ROI in the atlas, we will generate a distribution on a subset of the words.

Dependencies

Sparse Matrix Formatting

The formatting of the docwfreqs file uses a sparse matrix format which is efficient for  storing large text files (because a Word x Document matrix is highly sparse). Each row represents a document. Within each row, the document's word-counts are formatted as follows:

wordID:wordCOUNT wordID:wordCOUNT ....

So for each unique word-type in the document, there will be a pair of numbers separated by a colon, indicating: (1) wordID; the identifier for the word-type, which maps to the strings in the vocab-list file (2) wordCOUNT; the number of times the wordID occurred in the document (i.e. the number of tokens of wordID in the doc)

Toy Example:

Suppose our vocab list was:

0 brain 1 function 2 eye 3 vision 4 pizza 5 tacos

Now suppose we had a document with the following tokens (ignoring order)

brain eye eye eye eye pizza tacos tacos tacos

In the docwfreqs file it would look like this:

0:1 2:4 4:1 5:3

neurotopics's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.