Coder Social home page Coder Social logo

iterativelasso_mcw's Introduction

MCW_iterativeLasso

Run iterative lasso on the MCW data set. The iterative lasso code was adapted from knowledge and concepts lab github, which can be retrieved from this link: https://github.com/UWKCL/iterativelasso

intro the MCW dataset:

1200 rows

  • 1-900: TrueWords

  • 901 - 1200: non-words

  • 1-94: TrueAnimals

  • 95-240: TrueArtifacts

rowfilter and colfilter are filtered data. In particular, outlying voxels and voxels that never active (always 0) were removed.

Goal:

  • classifcation: animals vs. artifacts, animals vs. non-animal words, animals vs. everything else, artifacts vs. non-artifacts words, etc.

notes 6/1:

data for subject1:

  • X = numItems x numVoxels, matrix
  • Y = numItems x 1, logical vector (e.g. 1 = 'animal', 0 = 'non-animal')

obejctive: Yhat = XB close to Y

  • Since we are using LASSO, many elements in B are going to be zero out

lambda: sparsity parameter.

  • bigger lambda ~> more zeros
  • note that the "best lambda" is unknown

outer k folds cross validation

  • maximize the "performance" on the test set

inner k folders cross validation

  • tune lambda with respect to the "performance"

steps: e.g.

  • for every subjects:
  • do 10 folds CV
  • with in each fold, try lambda1, lambda2, ..., lambdaN
  • AND for each lambda, do 9 folds CV with cvglmnet()

iterativelasso_mcw's People

Contributors

qihongl avatar

Watchers

 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.