Model-free model selection script mode - the sample script

The sample script which demonstrates both model-free model elimination and model-free model selection between models from m0 to m9 is model_free/modsel.py. The text of the script is:

# Set the data pipe names.
pipes = ['m0', 'm1', 'm2', 'm3', 'm4', 'm5', 'm6', 'm7', 'm8', 'm9']

# Loop over the data pipe names.
for name in pipes:
    print("\n\n# " + name + " #")
    
    # Create the data pipe.
    pipe.create(name, 'mf')
    
    # Reload precalculated results from the file 'm1/results', etc.
    results.read(file='results', dir=name)

# Model elimination.
eliminate()

# Model selection.
model_selection(method='AIC', modsel_pipe='aic')

# Write the results.
state.save('save', force=True)
results.write(file='results', force=True)



The relax user manual (PDF), created 2016-10-28.