Giter Club home page Giter Club logo

nipymc's People

Contributors

tyarkoni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nipymc's Issues

PyMC3 is now named PyMC

Hi,
PyMC3 has been renamed PyMC. If this affects you and you have questions, or you want someone to direct your rage at I'm available! Do let me know how i, or any of the PyMC devs can help.

Ravin

P.S Ive made a PR to the readme as well pinning the install to the PyMC3 branch. Hope this helps

modify split_by to take a list

Currently split_by only takes a single string (the name of a design variable) to split on. It would be useful to allow a list, and split the target variable based on the product of all variables in the list.

Warn and/or remove column when split_by is used and no values are present for a level of the splitting variable

Suppose we pass a variable to add_term() and set split_by='condition'. If the target variable has no valid values for one or more levels of the splitting variable, a constant term will be added to the model. This is typically not desirable. We should check for this and, at minimum, issue a warning. We should probably also implement a general check to make there is (at most) a single constant column in the design.

Implement validation routines that operate on the full design matrix

Currently we represent the design matrices for each term added to the model as its own array, but we don't have a single representation of all variables in a single design matrix. This makes it hard to apply most validations (e.g., to test for rank deficiency), and is also generally clunky. We should probably move to an architecture that has a separate DesignMatrix class, with each BayesianModel class collecting all DesignMatrix classes. Then we can implement a finalize() call that concatenates all DMs, runs a series of validations, applies convolution, etc. This will also make it easier to abstract the fMRI-specific parts of the package into separate classes so that nipymc can inherit from psypymc.

Apply convolution to individual runs, not entire design matrix

Currently the HRF convolution is applied to the full design matrix that spans all subjects and runs. This means there could theoretically be some bleeding over across different runs and subjects. In practice this is unlikely to matter much given the designs we've been working with, but it needs to be addressed. Recommended approach is to refactor the modeling code so that all design matrix specification and convolution is done on a run-by-run basis, and then processed runs are concatenated into the full dataset just prior to sampling. This will also have the added benefit of making it easier to handle different numbers of volumes/events in each scanning run.

Interpolate events

Currently event onsets are simply rounded to the nearest volume; we should add the ability to interpolate events (and use interpolation by default).

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.