Package mvpa
[hide private]
[frames] | no frames]

Source Code for Package mvpa

 1  #emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*- 
 2  #ex: set sts=4 ts=4 sw=4 et: 
 3  ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## 
 4  # 
 5  #   See COPYING file distributed along with the PyMVPA package for the 
 6  #   copyright and license terms. 
 7  # 
 8  ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## 
 9  """MultiVariate Pattern Analysis 
10   
11   
12  Package Organization 
13  ==================== 
14  The mvpa package contains the following subpackages and modules: 
15   
16  .. packagetree:: 
17     :style: UML 
18   
19  :group Basic Data Structures: datasets 
20  :group Classifiers: clf 
21  :group Algorithms: algorithms 
22  :group Miscellaneous: misc 
23   
24  :author: `Michael Hanke <michael.hanke@gmail.com>`__, 
25           `Yaroslav Halchenko <debian@onerussian.com>`__, 
26           `Per B. Sederberg <persed@princeton.edu>`__ 
27  :requires: Python 2.4+ 
28  :version: 0.2.0 
29  :see: `The PyMVPA webpage <http://pkg-exppsy.alioth.debian.org/pymvpa>`__ 
30  :see: `GIT Repository Browser <http://git.debian.org/?p=pkg-exppsy/pymvpa.git;a=summary>`__ 
31   
32  :license: The MIT License 
33  :copyright: |copy| 2006-2008 Michael Hanke <michael.hanke@gmail.com> 
34   
35  :newfield contributor: Contributor, Contributors (Alphabetical Order) 
36  :contributor: `Per B. Sederberg <persed@princeton.edu>`__ 
37   
38  .. |copy| unicode:: 0xA9 .. copyright sign 
39  """ 
40   
41  __docformat__ = 'restructuredtext' 
42   
43   
44  if not __debug__: 
45      try: 
46          import psyco 
47          psyco.profile() 
48      except: 
49          from mvpa.misc import verbose 
50          verbose(2, "Psyco online compilation is not enabled") 
51  else: 
52      # Controllable seeding of random number generator 
53      from mvpa.misc import debug 
54      import numpy as N 
55      from os import environ 
56   
57      debug('INIT', 'mvpa') 
58      if environ.has_key('MVPA_SEED'): 
59          __random_seed = int(environ['MVPA_SEED']) 
60      else: 
61          __random_seed = int(N.random.uniform()*(2**31-1)) 
62      debug('RANDOM', 'Seeding RNG with %d' % __random_seed) 
63      N.random.seed(__random_seed) 
64      debug('INIT', 'mvpa end') 
65