Package qubx :: Module trialset
[hide private]
[frames] | no frames]

Module trialset

source code

A trialset is a qubx.table.SimpleTable with one stored model per row.

Copyright 2012 Research Foundation State University of New York This file is part of QUB Express.

QUB Express is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QUB Express is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License, named LICENSE.txt, in the QUB Express program directory. If not, see <http://www.gnu.org/licenses/>.

Classes [hide private]
  TrialSet
A table with one model per row (in qubx.tree QMF format); each row represents one result such as an optimizer run.
  TrialSets
Collection of TrialSet by name.
Functions [hide private]
 
make_trial_row(model_path, data_path, LL, nParam, nData=0, **kw)
Builds a dict representing one row in a TrialSet; fills in AIC and BIC from LL and nParam; fills in Date from time.localtime().
source code
 
add_trial_rates(row, model_tree, prefix='')
Adds entries to a dict (representing one row in a TrialSet) for all nonzero k0,k1,k2 rate constants.
source code
 
add_trial_amps(row, model_tree, prefix='')
Adds entries to a dict (representing one row in a TrialSet) for relevant quantities from the Classes table.
source code
 
add_trial_nChannel(row, model_tree, prefix='')
Adds 'ChannelCount' from a model to a dict (representing one row in a TrialSet).
source code
Variables [hide private]
  __package__ = 'qubx'
  e = 2.71828182846
  pi = 3.14159265359
  rdbk = 'Expired.'
  rdbreak = 'supporting'
  rdname = 'qubfast.txt'
Function Details [hide private]

make_trial_row(model_path, data_path, LL, nParam, nData=0, **kw)

source code 

Builds a dict representing one row in a TrialSet; fills in AIC and BIC from LL and nParam; fills in Date from time.localtime(). Copies any keyword args into the output.

Parameters:
  • model_path - copied into 'Model' field
  • data_path - copied into 'Data' field
  • LL - log likelihood
  • nParam - number of free parameters
  • nData - number of data points

add_trial_rates(row, model_tree, prefix='')

source code 

Adds entries to a dict (representing one row in a TrialSet) for all nonzero k0,k1,k2 rate constants.

Parameters:
  • model_tree - model in qubx.tree QMF format, e.g. QubX.Models.file.as_tree()
  • prefix - string to prepend to each rate constant, e.g. 'Initial ', or 'Final '

add_trial_amps(row, model_tree, prefix='')

source code 

Adds entries to a dict (representing one row in a TrialSet) for relevant quantities from the Classes table.

Parameters:
  • model_tree - model in qubx.tree QMF format, e.g. QubX.Models.file.as_tree()
  • prefix - string to prepend to each entry, e.g. 'Initial ', or 'Final '