lsq_func_error_argparse 実行例

help出力 lsq_func_error_argparse.py --help


Warning in tkprogvars.py: Environment variable tkProg_Root is not given
   tkProg_Root is speculated from the script path [D:\git\sphinx\tkProg\source\regression\lsq_func_error_argparse.py]

usage: lsq_func_error_argparse.py [-h] [--mode {fit,sim}] [--infile INFILE]
                                  [--func FUNC] [--p0 P0] [--xlabels XLABELS]
                                  [--ylabel YLABEL] [--fit_range FIT_RANGE]
                                  [--method METHOD] [--maxiter MAXITER]
                                  [--tol TOL] [--bounds BOUNDS] [--fix FIX]
                                  [--jac_absstep JAC_ABSSTEP]
                                  [--jac_relstep JAC_RELSTEP]
                                  [--use_jac {0,1}] [--xcalmin XCALMIN]
                                  [--xcalmax XCALMAX] [--ncal NCAL]
                                  [--out_prefix OUT_PREFIX]
                                  [--xlsm_template XLSM_TEMPLATE]
                                  [--confidence CONFIDENCE] [--plot {0,1}]
                                  [--nplot_interval NPLOT_INTERVAL]
                                  [--plot_pause PLOT_PAUSE] [--plot_ci {0,1}]
                                  [--plot_sigma_param {0,1}]
                                  [--plot_sigma_pred {0,1}]
                                  [--plot_sigma_combined {0,1}]
                                  [--figsize FIGSIZE FIGSIZE]
                                  [--fontsize FONTSIZE]
                                  [--fontsize_legend FONTSIZE_LEGEND]
                                  [--pause {0,1}]

Generic nonlinear least-squares fitting with parameter errors and confidence
bands

options:
  -h, --help            show this help message and exit
  --mode {fit,sim}      fit or sim
  --infile INFILE       Input Excel/CSV/text file
  --func FUNC           Model function. Use x[0], x[1], ... and p[0], p[1],
                        ...
  --p0 P0               Initial parameters, comma separated
  --xlabels XLABELS     Independent variable labels or column indices, comma
                        separated
  --ylabel YLABEL       Dependent variable label or column index
  --fit_range FIT_RANGE
                        Fit range for each x as xmin:xmax, comma separated.
                        Example: -1:1,0:10
  --method METHOD       scipy.optimize.minimize method
  --maxiter MAXITER     Maximum optimizer iterations
  --tol TOL             Optimizer tolerance
  --bounds BOUNDS       Bounds for parameters as lower:upper, comma separated.
                        Use with L-BFGS-B/SLSQP/etc.
  --fix FIX             Fixed parameter indices, comma separated. Example: 0,2
  --jac_absstep JAC_ABSSTEP
                        Absolute step for numerical derivative
  --jac_relstep JAC_RELSTEP
                        Relative step for numerical derivative
  --use_jac {0,1}       Use numerical Jacobian for optimizer, 0/1
  --xcalmin XCALMIN     Calculation x min for 1D plot/grid
  --xcalmax XCALMAX     Calculation x max for 1D plot/grid
  --ncal NCAL           Number of calculation grid points for 1D plot
  --out_prefix OUT_PREFIX
                        Output prefix. Default: input file body
  --xlsm_template XLSM_TEMPLATE
                        Reserved for compatibility
  --confidence CONFIDENCE
                        Confidence level. 0.6827 is about 1 sigma
  --plot {0,1}          Show plot, 0/1
  --nplot_interval NPLOT_INTERVAL
                        Update live fitting plot every N iterations. 0
                        disables live update
  --plot_pause PLOT_PAUSE
                        Pause time for live plot update
  --plot_ci {0,1}       Plot uncertainty bands, 0/1
  --plot_sigma_param {0,1}
                        Plot parameter uncertainty band, 0/1
  --plot_sigma_pred {0,1}
                        Plot prediction uncertainty band, 0/1
  --plot_sigma_combined {0,1}
                        Plot param + measured-y scatter band, 0/1
  --figsize FIGSIZE FIGSIZE
                        Figure size
  --fontsize FONTSIZE   Font size
  --fontsize_legend FONTSIZE_LEGEND
                        Legend font size
  --pause {0,1}         Pause before termination, 0/1


生成されたデータファイル

(データファイルが見つかりませんでした)

生成された画像一覧

(画像ファイルが見つかりませんでした)