n3fit.scripts package
Submodules
n3fit.scripts.evolven3fit module
This module contains the CLI for evolven3fit
n3fit.scripts.n3fit_exec module
n3fit - performs fit using ml external frameworks
- class n3fit.scripts.n3fit_exec.N3FitApp(name='n3fit', providers=['n3fit.performfit', 'n3fit.n3fit_checks_provider', 'validphys.results', 'validphys.n3fit_data', 'validphys.pseudodata', 'validphys.covmats', 'validphys.commondata'])[source]
Bases:
AppThe class which parsers and performs the fit
- property argparser
- config_class[source]
alias of
N3FitConfig
- environment_class[source]
alias of
N3FitEnvironment
- class n3fit.scripts.n3fit_exec.N3FitConfig(input_params, environment=None)[source]
Bases:
ConfigSpecialization for yaml parsing
- parse_debug_options(debug_options=None)[source]
Parses the
debug_optionsdictionary in the runcard, and applies the logging level.Note that any logging that occurs before reportengine uses the n3fit parser will by necessity ignore these settings. It is understood that, when
debug_optionsis present, the user wants those options to override any other options (including reportengine CLI options)- Parameters:
debug_options (None, dict) – the raw
debug_optionsdictionary from the runcard- Returns:
debug_options – parsed options with the
log_level,printeach,timerandprint_logsfields filled with defaults- Return type:
- parse_fakedata(fakedata: bool)[source]
Parses the fakedata key from the closuretest namespace, if True then use generated closure test in fit
- produce_fit()[source]
Produces a FitSpec which points at the current fit, to load fit_commondata from.
- produce_hyperscanner(parameters, hyperscan_config=None, hyperopt=None)[source]
For a hyperparameter scan to be run, a hyperscanner must be constructed from the original hyperscan_config
- produce_kfold_parameters(kfold=None, hyperopt=None)[source]
Return None even if there are kfolds in the runcard if the hyperopt flag is not active
- class n3fit.scripts.n3fit_exec.N3FitEnvironment(*, this_folder=None, net=True, upload=False, dry=False, **kwargs)[source]
Bases:
EnvironmentContainer for information to be filled at run time
n3fit.scripts.vp_setupfit module
setup-fit - prepare and apply data cuts before fit setup-fit constructs the fit [results] folder where data used by nnfit will be stored.
- class n3fit.scripts.vp_setupfit.SetupFitApp[source]
Bases:
AppThe class which parsers and perform the filtering
- property argparser
- config_class[source]
alias of
SetupFitConfig
- environment_class[source]
alias of
SetupFitEnvironment
- class n3fit.scripts.vp_setupfit.SetupFitConfig(input_params, environment=None)[source]
Bases:
ConfigSpecialization for yaml parsing
- class n3fit.scripts.vp_setupfit.SetupFitEnvironment(*args, no_eko_download=False, **kwargs)[source]
Bases:
EnvironmentContainer for information to be filled at run time