Module: ci_rvm.test_ci_rvm#

Created on 18.09.2019

@author: Samuel

Classes:

BaseTester()

DynamicalSystemTester(*sim_args, **sim_kwargs)

H14Tester([fixed, vals])

LogRegressTester(*sim_args[, seed])

TrackFun(fun)

Functions:

benchmark(methods[, nsim])

benchmark_(methods, simkwargs)

binsearch(index, direction, x0, fun[, jac, ...])

bisection(index, direction, x0, fun_[, jac, ...])

constrained_max(index, direction, x0, fun[, ...])

convertPos(x[, indices, convert])

convertPosInv(x[, indices, convert])

convertPosInv_(x[, convert])

convertPos_(x[, convert])

create_plot(tester, considered[, ...])

find_CI(tester, index, direction[, method, ...])

find_CIs(tester[, method, indices, printCI, ...])

fixedFun(f, origArg, flex)

gridsearch(index, direction, x0, fun, jac, hess)

mixed_min(index, direction, x0, fun[, jac, ...])

root(index, fun, x0[, alpha, method])

test_H14()

test_LogRegress(methods)

test_LogRegress_pred()

test_dynamical_system()

test_find_CI()

venzon_moolgavkar(index, direction, x0, fun, ...)

wald(x, hess[, direction, alpha])

class BaseTester[source]#

Bases: object

Attributes:

MLE

funs

Methods:

convertPos(x)

convertPosInv(x)

get_funs()

property MLE#
convertPos(x)[source]#
convertPosInv(x)[source]#
property funs#
get_funs()[source]#
class DynamicalSystemTester(*sim_args, **sim_kwargs)[source]#

Bases: ci_rvm.test_ci_rvm.BaseTester

Methods:

f_constr(f, t, y, dim, fact, target, tol)

f_prime(t, x, params)

get_funs()

get_funs_constr()

get_rss()

rss_dyn(f, t, y, dim)

simulate([params, dataN, tEnd, std, plot])

static f_constr(f, t, y, dim, fact, target, tol)[source]#
static f_prime(t, x, params)[source]#
get_funs()[source]#
get_funs_constr()[source]#
get_rss()[source]#
static rss_dyn(f, t, y, dim)[source]#
simulate(params=None, dataN=50, tEnd=20, std=3, plot=True)[source]#
class H14Tester(fixed=[0], vals=[25])[source]#

Bases: ci_rvm.test_ci_rvm.BaseTester

Methods:

get_funs()

get_funs()[source]#
class LogRegressTester(*sim_args, seed=None, **sim_kwargs)[source]#

Bases: ci_rvm.test_ci_rvm.BaseTester

Methods:

get_funs()

simulate([params, dataN, testDataN, powers, ...])

simulate_([params, dataN, powers])

get_funs()[source]#
simulate(params=None, dataN=1000, testDataN=0, powers=True, mode='3')[source]#
simulate_(params=None, dataN=1000, powers=True)[source]#
class TrackFun(fun)[source]#

Bases: object

benchmark(methods, nsim=100, **simkwargs)[source]#
benchmark_(methods, simkwargs)[source]#
binsearch(index, direction, x0, fun, jac=None, alpha=0.95, initstep=1, resulttol=0.001, infstep=10000000000.0, stepn=200, checkNo=5)[source]#
bisection(index, direction, x0, fun_, jac=None, alpha=0.95, initstep=1, resulttol=0.001, constrainedMin=True, infstep=10000000000.0, stepn=200)[source]#
constrained_max(index, direction, x0, fun, jac=None, alpha=0.95, nit=500)[source]#
convertPos(x, indices=None, convert=True)[source]#
convertPosInv(x, indices=None, convert=True)[source]#
convertPosInv_(x, convert=True)[source]#
convertPos_(x, convert=True)[source]#
create_plot(tester, considered, additional=[], methods=['RVM'], fileName=None)[source]#
find_CI(tester, index, direction, method='RVM', f_track=False)[source]#
find_CIs(tester, method='RVM', indices=None, printCI=True, multiprocessing=True)[source]#
fixedFun(f, origArg, flex)[source]#
gridsearch(index, direction, x0, fun, jac, hess, step=0.2, alpha=0.95, resulttol=0.001, stepn=200, infstep=1000)[source]#
mixed_min(index, direction, x0, fun, jac=None, alpha=0.95)[source]#
root(index, fun, x0, alpha=0.95, method='df-sane')[source]#
test_H14()[source]#
test_LogRegress(methods)[source]#
test_LogRegress_pred()[source]#
test_dynamical_system()[source]#
test_find_CI()[source]#
venzon_moolgavkar(index, direction, x0, fun, jac, hess, target=None, alpha=0.95, fun0=None, hess0=None, nmax=200, epsilon=1e-06, disp=True, track_x=False)[source]#
wald(x, hess, direction=None, alpha=0.95)[source]#