Incertezza, bootstrap e predizione

Esamina i contratti Numeric per stimare incertezza, eseguire il ricampionamento bootstrap e calcolare predizioni e intervalli.

Calcolo, modelli, statistiche e Dataset con Python

Bootstrap su refit

Lo script numeric_inference.py interpreta il fit con CORE, ottiene il piano bootstrap_plan e calcola fit_bootstrap sui dati originali. L’esempio usa pairs, 24 replicati e seed 193. Il Job ha registrato 24 tentativi regolari. Per ogni posizione conservata leggi replicate_status: 0 non tentata, 1 regolare, 2 perdita di rango, 3 mancata convergenza, 4 risultato non finito o vincolo fisso cambiato, 5 errore, 6 soluzione sul limite, 7 arresto al budget. Con almeno due esiti validi puoi leggere la dispersione descrittiva; gli intervalli nominali richiedono tutte le prove regolari. Le modalità residual e parametric_gaussian presuppongono i modelli di errore dichiarati. Il bootstrap elementare foundation.statistics.bootstrap_ci usa invece almeno 100 replicati e opera su campioni, con un contratto distinto.

Domanda statistica e ripetibilità

Scegli il tipo di intervallo e la variabile di interesse. Per propagazione lineare usa la Jacobiana e la matrice di covarianza nelle unità dei parametri. Per un bootstrap conserva modello, dati, policy CORE, seed e stati di convergenza di ciascun refit. L’incertezza del valore medio e quella di una futura osservazione rispondono a domande diverse. I limiti di rango, di dominio o di validità numerica possono lasciare un risultato senza intervallo.

Riferimento delle operazioni

Vai a un’operazione

propagate_uncertainty

Accesso
registrata nel Job Python
Argomenti
Jacobiano, incertezze standard o covarianza, opzioni facoltative
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
Covarianza numerica di uscita, incertezze standard e provenienza della propagazione per l’interpretazione di CORE
Effetto
Propaga l’incertezza di misura linearizzata con tipo di ingresso e dimensioni espliciti per l’interpretazione di CORE
Tipi
matrix,vector
Forma dichiarata
compatible_matrix
Opzioni
input_kind=standard_uncertainty,covariance
Non finiti
error
Regola unità
caller_owned
Token del catalogo
propagate_uncertainty
gxtxt_api_call("NUMERIC_API_v1", "propagate_uncertainty", args)
Risultato registrato · propagate_uncertainty

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0,
      1.0
    ]
  },
  {
    "shape": [
      2
    ],
    "dtype": "float64",
    "values": [
      0.1,
      0.2
    ]
  }
]

Esito, anteprima

{
  "covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.010000000000000002,
      0.0,
      0.0,
      0.04000000000000001
    ]
  },
  "standard_uncertainty": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.1,
      0.2
    ]
  },
  "jacobian": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0,
      1.0
    ]
  },
  "input_covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.010000000000000002,
      0.0,
      0.0,
      0.04000000000000001
    ]
  },
  "method": "first_order_linear_propagation",
  "input_kind": "standard_uncertainty",
  "input_count": 2.0,
  "output_count": 2.0
}
Interrogazione del contratto · expression-name:propagate_uncertainty

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "propagate_uncertainty"
]

Esito, anteprima

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/operationByExpressionName: math.numeric API v1: unknown or ambiguous expression operation 'propagate_uncertainty'"

digitization_uncertainty

Accesso
registrata nel Job Python
Argomenti
linearizzazione fisica, distribuzione esplicita e incertezze standard di calibrazione
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
array di sigma fisici, blocchi di covarianza e fattori condivisi conservati
Effetto
Propaga una sola volta i contributi indipendenti dei pixel e quelli condivisi di calibrazione tramite il componente esistente per l’incertezza
Tipi
struct,struct
Forma dichiarata
one_to_4096_original_points
Non finiti
error
Regola unità
explicit_pixel_distribution_and_physical_units
gxtxt_api_call("NUMERIC_API_v1", "digitization_uncertainty", args)
Risultato registrato · digitization_uncertainty

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "schema": "gxtxt.digitization_linearization.v1",
    "coordinates": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        1.0,
        3.0,
        2.0,
        4.0
      ]
    },
    "point_jacobian": {
      "shape": [
        4,
        2
      ],
      "dtype": "float64",
      "values": [
        1.0,
        0.0,
        1.0,
        0.0,
        0.0,
        1.0,
        0.0,
        1.0
      ]
    },
    "calibration_jacobian": {
      "shape": [
        4,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        1.0,
        1.0,
        1.0
      ]
    },
    "coordinate_units": [
      "m",
      "m"
    ],
    "calibration_ids": [
      "scale"
    ],
    "calibration_units": [
      "1"
    ],
    "mapping": "affine_control",
    "jacobian_method": "analytic",
    "condition_number": 1.0
  },
  {
    "mode": "pixel_calibration",
    "pixel_distribution": "rectangular_full_width",
    "pixel_scale": [
      1.0,
      1.0
    ],
    "calibration_standard_uncertainty": [
      0.1
    ],
    "rationale": "Synthetic controls."
  }
]

Esito, anteprima

{
  "schema": "gxtxt.digitization_uncertainty.v1",
  "numeric_api": "NUMERIC_API_v1",
  "operation": "digitization_uncertainty",
  "coordinates": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      2.0,
      4.0
    ]
  },
  "coordinate_units": [
    "m",
    "m"
  ],
  "point_count": 2.0,
  "calibration_ids": [
    "scale"
  ],
  "calibration_units": [
    "1"
  ],
  "standard_uncertainty": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.3055050463303894,
      0.3055050463303894,
      0.3055050463303894,
      0.3055050463303894
    ]
  },
  "independent_standard_uncertainty": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.2886751345948129,
      0.2886751345948129,
      0.2886751345948129,
      0.2886751345948129
    ]
  },
  "covariance_blocks": {
    "shape": [
      2,
      3
    ],
    "dtype": "float64",
    "values": [
      0.09333333333333335,
      0.09333333333333335,
      0.010000000000000002,
      0.010000000000000002,
      0.09333333333333335,
      0.09333333333333335
    ]
  },
  "independent_factor": {
    "shape": [
      4,
      2
    ],
    "dtype": "float64",
    "values": [
      0.2886751345948129,
      0.0,
      0.2886751345948129,
      0.0,
      0.0,
      0.2886751345948129,
      0.0,
      0.2886751345948129
    ]
  },
  "shared_factor": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.1,
      0.1,
      0.1,
      0.1
    ]
  },
  "declaration": {
    "mode": "pixel_calibration",
    "pixel_distribution": "rectangular_full_width",
    "pixel_scale": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        1.0,
        1.0
      ]
    },
    "pixel_standard_uncertainty": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        0.2886751345948129,
        0.2886751345948129
      ]
    },
    "calibration_standard_uncertainty": 0.1,
    "rationale": "Synthetic controls."
  },
  "source_linearization_sha256": "9bae7f437a7b33c3374d22adc78b0656bdb0668053fb65930a443f3475f152ff",
  "summary": {
    "schema": "gxtxt.digitization_uncertainty_summary.v1",
    "numeric_api": "NUMERIC_API_v1",
    "operation": "digitization_uncertainty",
    "point_count": 2.0,
    "calibration_input_count": 1.0,
    "coordinate_units": [
      "m",
      "m"
    ],
    "mode": "pixel_calibration",
    "pixel_distribution": "rectangular_full_width",
    "propagation": "first_order_linear_propagation",
    "has_shared_calibration": true,
    "has_xy_correlation": true,
    "maximum_absolute_xy_correlation": 0.10714285714285712,
    "correlation_roundoff_tolerance": 1.4210854715202004e-14,
    "source_linearization_sha256": "9bae7f437a7b33c3374d22adc78b0656bdb0668053fb65930a443f3475f152ff",
    "rationale": "Synthetic controls.",
    "state_sha256": "16be2f89fe6ef20e2f91a45401f014e7933341b32915d89534425ed26aebf2c6"
  },
  "state_sha256": "16be2f89fe6ef20e2f91a45401f014e7933341b32915d89534425ed26aebf2c6"
}

digitization_covariance

Accesso
registrata nel Job Python
Argomenti
stato d’incertezza conservato, x|y|xy
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
covarianza completa limitata che preserva le dipendenze fra i punti
Effetto
Ricostruisce la covarianza conservata per x, y o xy intercalato con dipendenze di calibrazione condivise.
Tipi
struct,string
Forma dichiarata
one_to_512_original_points
Non finiti
error
Regola unità
physical_axis_units
gxtxt_api_call("NUMERIC_API_v1", "digitization_covariance", args)
Risultato registrato · digitization_covariance:xy

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "schema": "gxtxt.digitization_uncertainty.v1",
    "numeric_api": "NUMERIC_API_v1",
    "operation": "digitization_uncertainty",
    "coordinates": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        1.0,
        3.0,
        2.0,
        4.0
      ]
    },
    "coordinate_units": [
      "m",
      "m"
    ],
    "point_count": 2.0,
    "calibration_ids": [
      "scale"
    ],
    "calibration_units": [
      "1"
    ],
    "standard_uncertainty": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.3055050463303894,
        0.3055050463303894,
        0.3055050463303894,
        0.3055050463303894
      ]
    },
    "independent_standard_uncertainty": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.2886751345948129,
        0.2886751345948129,
        0.2886751345948129,
        0.2886751345948129
      ]
    },
    "covariance_blocks": {
      "shape": [
        2,
        3
      ],
      "dtype": "float64",
      "values": [
        0.09333333333333335,
        0.09333333333333335,
        0.010000000000000002,
        0.010000000000000002,
        0.09333333333333335,
        0.09333333333333335
      ]
    },
    "independent_factor": {
      "shape": [
        4,
        2
      ],
      "dtype": "float64",
      "values": [
        0.2886751345948129,
        0.0,
        0.2886751345948129,
        0.0,
        0.0,
        0.2886751345948129,
        0.0,
        0.2886751345948129
      ]
    },
    "shared_factor": {
      "shape": [
        4,
        1
      ],
      "dtype": "float64",
      "values": [
        0.1,
        0.1,
        0.1,
        0.1
      ]
    },
    "declaration": {
      "mode": "pixel_calibration",
      "pixel_distribution": "rectangular_full_width",
      "pixel_scale": {
        "shape": [
          1,
          2
        ],
        "dtype": "float64",
        "values": [
          1.0,
          1.0
        ]
      },
      "pixel_standard_uncertainty": {
        "shape": [
          1,
          2
        ],
        "dtype": "float64",
        "values": [
          0.2886751345948129,
          0.2886751345948129
        ]
      },
      "calibration_standard_uncertainty": 0.1,
      "rationale": "Synthetic controls."
    },
    "source_linearization_sha256": "9bae7f437a7b33c3374d22adc78b0656bdb0668053fb65930a443f3475f152ff",
    "summary": {
      
[…]

Esito, anteprima

{
  "schema": "gxtxt.digitization_covariance.v1",
  "numeric_api": "NUMERIC_API_v1",
  "operation": "digitization_covariance",
  "axis": "xy",
  "point_count": 2.0,
  "coordinate_units": [
    "m",
    "m"
  ],
  "covariance": {
    "shape": [
      4,
      4
    ],
    "dtype": "float64",
    "values": [
      0.09333333333333335,
      0.010000000000000002,
      0.010000000000000002,
      0.010000000000000002,
      0.010000000000000002,
      0.09333333333333335,
      0.010000000000000002,
      0.010000000000000002,
      0.010000000000000002,
      0.010000000000000002,
      0.09333333333333335,
      0.010000000000000002
    ]
  },
  "standard_uncertainty": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.3055050463303894,
      0.3055050463303894,
      0.3055050463303894,
      0.3055050463303894
    ]
  },
  "source_state_sha256": "16be2f89fe6ef20e2f91a45401f014e7933341b32915d89534425ed26aebf2c6",
  "row_order": "original_points_interleaved_xy_or_selected_axis",
  "method": "first_order_linear_propagation"
}

parameter_uncertainty

Accesso
registrata nel Job Python
Argomenti
Piano CORE di inferenza sui parametri
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
ricevuta numerica dell’incertezza per l’interpretazione di CORE
Effetto
Normalizza la covarianza e calcola gli intervalli marginali dal piano pubblico di inferenza CORE senza nuovo fit
Tipi
struct
Forma dichiarata
free_parameter_covariance_1_to_256
Non finiti
error
Regola unità
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "parameter_uncertainty", args)
Risultato registrato · parameter_uncertainty

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "api_id": "STATISTICAL_PARAMETER_INFERENCE_PLAN_v1",
    "api_version": 1,
    "status": "value",
    "reason": "",
    "confidence": 0.95,
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "source_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "source_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "degrees_of_freedom": 20.0,
    "distribution": "student_t",
    "approximation": "local_linearization",
    "interval_status": "value",
    "interval_reason": ""
  }
]

Esito, anteprima

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "parameter_uncertainty",
  "plan": {
    "api_id": "STATISTICAL_PARAMETER_INFERENCE_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "confidence": 0.95,
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "source_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "source_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "degrees_of_freedom": 20.0,
    "distribution": "student_t",
    "approximation": "local_linearization",
    "interval_status": "value",
    "interval_reason": ""
  },
  "correlation": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      -0.918140499630484,
      -0.918140499630484,
      1.0
    ]
  },
  "lower": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.9641163796498413,
      0.8552859932838964
    ]
  },
  "upper": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0330454230210475,
      1.1180471413830344
    ]
  },
  "critical_value": 2.0859634472658612
}

fit_bootstrap_prepare

Accesso
registrata nel Job Python
Argomenti
modello, X, y, piano CORE, opzioni
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
stato del bootstrap solo sui dati, estrazione o ricevuta numerica acquisita
Effetto
Convalida e prepara gli ingressi esatti del bootstrap senza nuovo fit né campionamento
Tipi
struct,matrix,vector,struct,struct
Forma dichiarata
bounded_bootstrap_inputs
Opzioni
weights=original
Non finiti
error
Regola unità
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "fit_bootstrap_prepare", args)
Risultato registrato · fit_bootstrap_prepare

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "kind": "expression",
    "expression": [
      "a*x+b"
    ],
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "predictor_ids": [
      "x"
    ],
    "response_units": [
      "1"
    ],
    "initial_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        0.25
      ]
    },
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5",
    "binding_sha256": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f",
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          0.25
        ]
      },
      "lower_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          -100.0,
          -100.0
        ]
      },
      "upper_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          100.0,
          100.0
        ]
      },
      "fixed_mask": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0
        ]
      }
    },
    "input_constraints": {
      "domain": "finite_real",
      "translation_policy": "forbid_translation",
      "required_x_unit": "1",
      "required_y_unit": "1"
    },
    "formula_declaration": {
      "schema": "gxtxt.fit_formula_declaration.v1",
      "recipe": {
        "expression": "a*x+b",
        "predictor_ids": [
          "x"
        ],
        "predictor_units": [
          "1"
        ],
        "response_unit": "1",
        "parameters": [
          {
            "id": "a",
            "unit": "1",
            "initial": 1.0,
            "lower": -100.0,
            "upper": 100.0
          },
          {
            "id": "b",
            "unit": "1",
            "initial": 0.25,
            "lower": -100.0,
            "upper": 100.0
          }
        ]
      },
      "original_expression": "a*x+b",
      "effective_expression": "a*x+b",
      "d
[…]

Esito, anteprima

{
  "schema": "gxtxt.fit_bootstrap_state.v1",
  "plan": {
    "api_id": "STATISTICAL_FIT_BOOTSTRAP_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "interval_method": "percentile",
    "interval_policy": "all_requested_regular_converged",
    "source_operation": "nonlinear_fit",
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "response_unit": "1",
    "coordinate_space": "original_physical",
    "weight_semantics": "unweighted",
    "noise_model": "independent_gaussian_estimated_variance",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "parameter_roles": [
      "free",
      "free"
    ],
    "source_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "solver_policy": {
      "lower_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          -100.0,
          -100.0
        ]
      },
      "upper_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          100.0,
          100.0
        ]
      },
      "fixed_mask": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0
        ]
      },
      "parameter_scales": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          0.25
        ]
      },
      "loss": "linear",
      "loss_scale": 1.0,
      "strategy": "levenberg_marquardt",
      "function_tolerance": 1e-12,
      "gradient_tolerance": 1e-12,
      "parameter_tolerance": 1e-12,
      "max_iterations": 400.0
    }
  },
  "model": {
    "kind": "expression",
    "expression": [
      "a*x+b"
    ],
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "predictor_ids": [
      "x"
    ],
    "response_units": [
      "1"
    ],
    "initial_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        0.25
      ]
    },
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5",
    "binding_sha256": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f",
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          0.25
        ]
      },
      "lower_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          -100.0,
          -100.0
        ]
      },
      "upper_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          100.0,
          100.0
        ]
      },
      "fixed_mask": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0

[…]

fit_bootstrap_draw

Accesso
registrata nel Job Python
Argomenti
stato preparato, seed
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
stato del bootstrap solo sui dati, estrazione o ricevuta numerica acquisita
Effetto
Estrae una replica allineata tramite il componente condiviso di ricampionamento
Tipi
struct,scalar
Forma dichiarata
bounded_bootstrap_draw
Non finiti
error
Regola unità
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "fit_bootstrap_draw", args)
Risultato registrato · fit_bootstrap_draw

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "schema": "gxtxt.fit_bootstrap_state.v1",
    "plan": {
      "api_id": "STATISTICAL_FIT_BOOTSTRAP_PLAN_v1",
      "api_version": 1.0,
      "status": "value",
      "reason": "",
      "interval_method": "percentile",
      "interval_policy": "all_requested_regular_converged",
      "source_operation": "nonlinear_fit",
      "source_model_id": "math.numeric.nonlinear",
      "coefficient_space": "original_physical",
      "response_unit": "1",
      "coordinate_space": "original_physical",
      "weight_semantics": "unweighted",
      "noise_model": "independent_gaussian_estimated_variance",
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "parameter_roles": [
        "free",
        "free"
      ],
      "source_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "solver_policy": {
        "lower_bounds": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            -100.0,
            -100.0
          ]
        },
        "upper_bounds": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            100.0,
            100.0
          ]
        },
        "fixed_mask": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            0.0,
            0.0
          ]
        },
        "parameter_scales": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            1.0,
            0.25
          ]
        },
        "loss": "linear",
        "loss_scale": 1.0,
        "strategy": "levenberg_marquardt",
        "function_tolerance": 1e-12,
        "gradient_tolerance": 1e-12,
        "parameter_tolerance": 1e-12,
        "max_iterations": 400.0
      }
    },
    "model": {
      "kind": "expression",
      "expression": [
        "a*x+b"
      ],
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "predictor_ids": [
        "x"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float6
[…]

Esito, anteprima

{
  "predictors": {
    "shape": [
      22,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.9047619047619047,
      5.285714285714286,
      3.619047619047619,
      5.285714285714286,
      2.1904761904761907,
      1.2380952380952381,
      1.0,
      1.4761904761904763,
      2.9047619047619047,
      1.0,
      2.1904761904761907
    ]
  },
  "response": {
    "shape": [
      22,
      1
    ],
    "dtype": "float64",
    "values": [
      3.0225792012895787,
      6.913876928404042,
      11.547648270021204,
      8.07962585232904,
      11.547648270021204,
      5.426435325505179,
      3.3894868954609714,
      3.0225792012895787,
      3.7987820026518593,
      6.913876928404042,
      3.0225792012895787,
      5.426435325505179
    ]
  },
  "weights": {
    "shape": [
      22,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0
    ]
  },
  "seed": 193.0,
  "next_seed": 1174960213.0
}

fit_bootstrap_summarize

Accesso
registrata nel Job Python
Argomenti
stato preparato, campioni, stati, seed, esecuzione
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
stato del bootstrap solo sui dati, estrazione o ricevuta numerica acquisita
Effetto
Riepiloga il registro dei rifit effettivi con le operazioni esistenti di covarianza e quantili.
Tipi
struct,matrix,vector,vector,struct
Forma dichiarata
bounded_bootstrap_ledger
Non finiti
error
Regola unità
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "fit_bootstrap_summarize", args)
Risultato registrato · fit_bootstrap_summarize

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "schema": "gxtxt.fit_bootstrap_state.v1",
    "plan": {
      "api_id": "STATISTICAL_FIT_BOOTSTRAP_PLAN_v1",
      "api_version": 1.0,
      "status": "value",
      "reason": "",
      "interval_method": "percentile",
      "interval_policy": "all_requested_regular_converged",
      "source_operation": "nonlinear_fit",
      "source_model_id": "math.numeric.nonlinear",
      "coefficient_space": "original_physical",
      "response_unit": "1",
      "coordinate_space": "original_physical",
      "weight_semantics": "unweighted",
      "noise_model": "independent_gaussian_estimated_variance",
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "parameter_roles": [
        "free",
        "free"
      ],
      "source_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "solver_policy": {
        "lower_bounds": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            -100.0,
            -100.0
          ]
        },
        "upper_bounds": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            100.0,
            100.0
          ]
        },
        "fixed_mask": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            0.0,
            0.0
          ]
        },
        "parameter_scales": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            1.0,
            0.25
          ]
        },
        "loss": "linear",
        "loss_scale": 1.0,
        "strategy": "levenberg_marquardt",
        "function_tolerance": 1e-12,
        "gradient_tolerance": 1e-12,
        "parameter_tolerance": 1e-12,
        "max_iterations": 400.0
      }
    },
    "model": {
      "kind": "expression",
      "expression": [
        "a*x+b"
      ],
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "predictor_ids": [
        "x"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float6
[…]

Esito, anteprima

{
  "schema": "gxtxt.fit_bootstrap_numeric.v1",
  "method": "pairs",
  "source_operation": "nonlinear_fit",
  "n": 22.0,
  "p": 2.0,
  "free_parameter_count": 2.0,
  "replicates": 24.0,
  "attempted_count": 24.0,
  "successful_count": 24.0,
  "regular_count": 24.0,
  "boundary_count": 0.0,
  "rank_failure_count": 0.0,
  "nonconverged_count": 0.0,
  "nonfinite_count": 0.0,
  "solver_error_count": 0.0,
  "not_completed_count": 0.0,
  "confidence": 0.95,
  "seed": 193.0
}
Esito del controllo negativo o del tentativo · fit_bootstrap_summarize

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "schema": "gxtxt.fit_bootstrap_state.v1",
    "plan": {
      "api_id": "STATISTICAL_FIT_BOOTSTRAP_PLAN_v1",
      "api_version": 1.0,
      "status": "value",
      "reason": "",
      "interval_method": "percentile",
      "interval_policy": "all_requested_regular_converged",
      "source_operation": "nonlinear_fit",
      "source_model_id": "math.numeric.nonlinear",
      "coefficient_space": "original_physical",
      "response_unit": "1",
      "coordinate_space": "original_physical",
      "weight_semantics": "unweighted",
      "noise_model": "independent_gaussian_estimated_variance",
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "parameter_roles": [
        "free",
        "free"
      ],
      "source_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "solver_policy": {
        "lower_bounds": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            -Infinity,
            -Infinity
          ]
        },
        "upper_bounds": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            Infinity,
            Infinity
          ]
        },
        "fixed_mask": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            0.0,
            0.0
          ]
        },
        "parameter_scales": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            1.0,
            0.25
          ]
        },
        "loss": "linear",
        "loss_scale": 1.0,
        "strategy": "levenberg_marquardt",
        "function_tolerance": 1e-12,
        "gradient_tolerance": 1e-12,
        "parameter_tolerance": 1e-12,
        "max_iterations": 400.0
      }
    },
    "model": {
      "kind": "expression",
      "expression": [
        "a*x+b"
      ],
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "predictor_ids": [
        "x"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dty
[…]

Esito, anteprima

"Octave:invalid-indexing: structure has no member 'messages'"

fit_bootstrap

Accesso
registrata nel Job Python
Argomenti
modello adattato, predittori/risposta originali, piano pubblico CORE, pesi originali facoltativi
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
Estrazioni dei parametri, stati e semi tipizzati, con attestazione limitata dei rifit effettivi.
Effetto
Bootstrap riproducibile mediante rifit dei parametri, con registrazione dei fallimenti ed esecuzione sequenziale limitata.
Tipi
struct,matrix,vector,struct
Forma dichiarata
captured_fitted_model_and_CORE_bootstrap_plan
Opzioni
weights=original_positive_precision_vector
Non finiti
error
Regola unità
explicit_CORE_plan
Token del catalogo
bootstrap_refits
gxtxt_api_call("NUMERIC_API_v1", "fit_bootstrap", args)
Risultato registrato · fit_bootstrap

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "kind": "expression",
    "expression": [
      "a*x+b"
    ],
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "predictor_ids": [
      "x"
    ],
    "response_units": [
      "1"
    ],
    "initial_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        0.25
      ]
    },
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5",
    "binding_sha256": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f",
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          0.25
        ]
      },
      "lower_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          -100.0,
          -100.0
        ]
      },
      "upper_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          100.0,
          100.0
        ]
      },
      "fixed_mask": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0
        ]
      }
    },
    "input_constraints": {
      "domain": "finite_real",
      "translation_policy": "forbid_translation",
      "required_x_unit": "1",
      "required_y_unit": "1"
    },
    "formula_declaration": {
      "schema": "gxtxt.fit_formula_declaration.v1",
      "recipe": {
        "expression": "a*x+b",
        "predictor_ids": [
          "x"
        ],
        "predictor_units": [
          "1"
        ],
        "response_unit": "1",
        "parameters": [
          {
            "id": "a",
            "unit": "1",
            "initial": 1.0,
            "lower": -100.0,
            "upper": 100.0
          },
          {
            "id": "b",
            "unit": "1",
            "initial": 0.25,
            "lower": -100.0,
            "upper": 100.0
          }
        ]
      },
      "original_expression": "a*x+b",
      "effective_expression": "a*x+b",
      "d
[…]

Esito, anteprima

{
  "schema": "gxtxt.fit_bootstrap_numeric.v1",
  "method": "pairs",
  "source_operation": "nonlinear_fit",
  "n": 22.0,
  "p": 2.0,
  "free_parameter_count": 2.0,
  "replicates": 24.0,
  "attempted_count": 24.0,
  "successful_count": 24.0,
  "regular_count": 24.0,
  "boundary_count": 0.0,
  "rank_failure_count": 0.0,
  "nonconverged_count": 0.0,
  "nonfinite_count": 0.0,
  "solver_error_count": 0.0,
  "not_completed_count": 0.0,
  "confidence": 0.95,
  "seed": 193.0
}
Interrogazione del contratto · expression-name:fit_bootstrap

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  "bootstrap_refits"
]

Esito, anteprima

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/operationByExpressionName: math.numeric API v1: unknown or ambiguous expression operation 'bootstrap_refits'"

prediction_uncertainty

Accesso
registrata nel Job Python
Argomenti
modello, predittori, piano CORE di previsione, rumore facoltativo delle osservazioni future
Unità
Le unità seguono il contratto dell’operazione in NUMERIC_API_v1.
Esito
Previsioni binarie per interrogazione, limiti degli intervalli e disponibilità, con ricevuta limitata dell’inferenza
Effetto
Propaga la covarianza acquisita tramite il Jacobiano nativo del modello per intervalli puntuali distinti della media o di una futura osservazione
Tipi
struct,matrix,struct
Forma dichiarata
captured_model_and_CORE_prediction_plan
Opzioni
prediction_sigma=positive_scalar_or_vector;prediction_weights=positive_scalar_or_vector
Non finiti
error
Regola unità
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "prediction_uncertainty", args)
Risultato registrato · prediction_uncertainty

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "kind": "expression",
    "expression": [
      "a*x+b"
    ],
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "predictor_ids": [
      "x"
    ],
    "response_units": [
      "1"
    ],
    "initial_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        0.25
      ]
    },
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5",
    "binding_sha256": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f",
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          0.25
        ]
      },
      "lower_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          -100.0,
          -100.0
        ]
      },
      "upper_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          100.0,
          100.0
        ]
      },
      "fixed_mask": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0
        ]
      }
    },
    "input_constraints": {
      "domain": "finite_real",
      "translation_policy": "forbid_translation",
      "required_x_unit": "1",
      "required_y_unit": "1"
    },
    "formula_declaration": {
      "schema": "gxtxt.fit_formula_declaration.v1",
      "recipe": {
        "expression": "a*x+b",
        "predictor_ids": [
          "x"
        ],
        "predictor_units": [
          "1"
        ],
        "response_unit": "1",
        "parameters": [
          {
            "id": "a",
            "unit": "1",
            "initial": 1.0,
            "lower": -100.0,
            "upper": 100.0
          },
          {
            "id": "b",
            "unit": "1",
            "initial": 0.25,
            "lower": -100.0,
            "upper": 100.0
          }
        ]
      },
      "original_expression": "a*x+b",
      "effective_expression": "a*x+b",
      "d
[…]

Esito, anteprima

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "prediction_uncertainty",
  "plan": {
    "api_id": "STATISTICAL_PREDICTION_INFERENCE_PLAN_v1",
    "api_version": 1.0,
    "kind": "mean_confidence",
    "status": "value",
    "reason": "",
    "parameter_plan": {
      "api_id": "STATISTICAL_PARAMETER_INFERENCE_PLAN_v1",
      "api_version": 1.0,
      "status": "value",
      "reason": "",
      "confidence": 0.95,
      "source_model_id": "math.numeric.nonlinear",
      "coefficient_space": "original_physical",
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "source_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "source_covariance": {
        "shape": [
          2,
          2
        ],
        "dtype": "float64",
        "values": [
          0.00027298018465493444,
          -0.0009554306462922706,
          -0.0009554306462922706,
          0.003966878715104643
        ]
      },
      "degrees_of_freedom": 20.0,
      "distribution": "student_t",
      "approximation": "local_linearization",
      "interval_status": "value",
      "interval_reason": ""
    },
    "all_parameter_ids": [
      "a",
      "b"
    ],
    "all_parameter_values": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "free_parameter_indices": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        2.0
      ]
    },
    "response_unit": "1",
    "orientation": "y_of_x",
    "source_operation": "nonlinear_fit",
    "model_source_sha256": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5",
    "model_binding_sha256": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f",
    "observation_noise_policy": "none",
    "observation_scale": "",
    "critical_value": "",
    "coverage": "pointwise"
  },
  "predicted": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      4.983828370004354,
      8.980990172675243
    ]
  },
  "mean_standard_error": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.03517210355601862,
      0.026289094682879984
    ]
  },
  "observation_standard_deviation": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  },
  "standard_error": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.03517210355601862,
      0.026289094682879984
    ]
  },
  "lower": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      4.91046064762305,
      8.926152082105045
    ]
  },
  "upper": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      5.0571960923856585,
      9.035828263245442
    ]
  },
  "bounds_available": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  },
  "query_index": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0
    ]
  },
  "query_count": 2.0,
  "available_count": 2.0,
  "unavailable_count": 0.0,
  "critical_value": 2.0859634472658612,
  "critical_value_reused": f
[…]

parameterUncertainty

Accesso
registrata nel Job Python
Argomenti
plan
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Funzione
Esegue invariata l’operazione Numeric originale parameterUncertainty.
gxtxt_api_call("NUMERIC_API_v1", "parameterUncertainty", args)
Risultato registrato · parameterUncertainty

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "api_id": "STATISTICAL_PARAMETER_INFERENCE_PLAN_v1",
    "api_version": 1,
    "status": "value",
    "reason": "",
    "confidence": 0.95,
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "source_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "source_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "degrees_of_freedom": 20.0,
    "distribution": "student_t",
    "approximation": "local_linearization",
    "interval_status": "value",
    "interval_reason": ""
  }
]

Esito, anteprima

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "parameter_uncertainty",
  "plan": {
    "api_id": "STATISTICAL_PARAMETER_INFERENCE_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "confidence": 0.95,
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "source_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "source_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "degrees_of_freedom": 20.0,
    "distribution": "student_t",
    "approximation": "local_linearization",
    "interval_status": "value",
    "interval_reason": ""
  },
  "correlation": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      -0.918140499630484,
      -0.918140499630484,
      1.0
    ]
  },
  "lower": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.9641163796498413,
      0.8552859932838964
    ]
  },
  "upper": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0330454230210475,
      1.1180471413830344
    ]
  },
  "critical_value": 2.0859634472658612
}

fitBootstrap

Accesso
registrata nel Job Python
Argomenti
model predictors response plan {options {kind struct fields {}}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Funzione
Esegue invariata l’operazione Numeric originale fitBootstrap.
gxtxt_api_call("NUMERIC_API_v1", "fitBootstrap", args)
Risultato registrato · fitBootstrap

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "expression"
      },
      "expression": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "a*x+b"
          }
        ]
      },
      "parameter_ids": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "a"
          },
          {
            "kind": "text",
            "value": "b"
          }
        ]
      },
      "parameter_units": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          },
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "predictor_ids": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "x"
          }
        ]
      },
      "response_units": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "initial_parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.0,
          0.25
        ]
      },
      "parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "expression_grammar": {
        "kind": "text",
        "value": "CORE controlled expression v1"
      },
      "compiler_version": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      },
      "source_sha256": {
        "kind": "text",
        "value": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5"
      },
      "binding_sha256": {
        "kind": "text",
        "value": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f"
      },
      "parameter_constraints": {
        "kind": "struct",
        "fields": {
          "initial_parameters": {
            "kind": "array",
            "shape": [
              2,
         
[…]

Esito, anteprima

{
  "schema": "gxtxt.fit_bootstrap_numeric.v1",
  "method": "pairs",
  "source_operation": "nonlinear_fit",
  "n": 22.0,
  "p": 2.0,
  "free_parameter_count": 2.0,
  "replicates": 24.0,
  "attempted_count": 24.0,
  "successful_count": 24.0,
  "regular_count": 24.0,
  "boundary_count": 0.0,
  "rank_failure_count": 0.0,
  "nonconverged_count": 0.0,
  "nonfinite_count": 0.0,
  "solver_error_count": 0.0,
  "not_completed_count": 0.0,
  "confidence": 0.95,
  "seed": 193.0
}
Esito del controllo negativo o del tentativo · fitBootstrap

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "expression"
      },
      "expression": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "a*x+b"
          }
        ]
      },
      "parameter_ids": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "a"
          },
          {
            "kind": "text",
            "value": "b"
          }
        ]
      },
      "parameter_units": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          },
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "predictor_ids": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "x"
          }
        ]
      },
      "response_units": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "initial_parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.0,
          0.25
        ]
      },
      "parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "expression_grammar": {
        "kind": "text",
        "value": "CORE controlled expression v1"
      },
      "compiler_version": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      },
      "source_sha256": {
        "kind": "text",
        "value": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5"
      },
      "binding_sha256": {
        "kind": "text",
        "value": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f"
      },
      "parameter_constraints": {
        "kind": "struct",
        "fields": {
          "initial_parameters": {
            "kind": "array",
            "shape": [
              2,
         
[…]

Esito, anteprima

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/fitBootstrap: nonfinite input is not accepted"

predictionUncertainty

Accesso
registrata nel Job Python
Argomenti
model predictors plan {options {kind struct fields {}}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Funzione
Esegue invariata l’operazione Numeric originale predictionUncertainty.
gxtxt_api_call("NUMERIC_API_v1", "predictionUncertainty", args)
Risultato registrato · predictionUncertainty

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "expression"
      },
      "expression": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "a*x+b"
          }
        ]
      },
      "parameter_ids": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "a"
          },
          {
            "kind": "text",
            "value": "b"
          }
        ]
      },
      "parameter_units": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          },
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "predictor_ids": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "x"
          }
        ]
      },
      "response_units": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "initial_parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.0,
          0.25
        ]
      },
      "parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "expression_grammar": {
        "kind": "text",
        "value": "CORE controlled expression v1"
      },
      "compiler_version": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      },
      "source_sha256": {
        "kind": "text",
        "value": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5"
      },
      "binding_sha256": {
        "kind": "text",
        "value": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f"
      },
      "parameter_constraints": {
        "kind": "struct",
        "fields": {
          "initial_parameters": {
            "kind": "array",
            "shape": [
              2,
         
[…]

Esito, anteprima

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "prediction_uncertainty",
  "plan": {
    "api_id": "STATISTICAL_PREDICTION_INFERENCE_PLAN_v1",
    "api_version": 1.0,
    "kind": "mean_confidence",
    "status": "value",
    "reason": "",
    "parameter_plan": {
      "api_id": "STATISTICAL_PARAMETER_INFERENCE_PLAN_v1",
      "api_version": 1.0,
      "status": "value",
      "reason": "",
      "confidence": 0.95,
      "source_model_id": "math.numeric.nonlinear",
      "coefficient_space": "original_physical",
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "source_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "source_covariance": {
        "shape": [
          2,
          2
        ],
        "dtype": "float64",
        "values": [
          0.00027298018465493444,
          -0.0009554306462922706,
          -0.0009554306462922706,
          0.003966878715104643
        ]
      },
      "degrees_of_freedom": 20.0,
      "distribution": "student_t",
      "approximation": "local_linearization",
      "interval_status": "value",
      "interval_reason": ""
    },
    "all_parameter_ids": [
      "a",
      "b"
    ],
    "all_parameter_values": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "free_parameter_indices": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        2.0
      ]
    },
    "response_unit": "1",
    "orientation": "y_of_x",
    "source_operation": "nonlinear_fit",
    "model_source_sha256": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5",
    "model_binding_sha256": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f",
    "observation_noise_policy": "none",
    "observation_scale": "",
    "critical_value": "",
    "coverage": "pointwise"
  },
  "predicted": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      4.983828370004354,
      8.980990172675243
    ]
  },
  "mean_standard_error": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.03517210355601862,
      0.026289094682879984
    ]
  },
  "observation_standard_deviation": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  },
  "standard_error": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.03517210355601862,
      0.026289094682879984
    ]
  },
  "lower": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      4.91046064762305,
      8.926152082105045
    ]
  },
  "upper": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      5.0571960923856585,
      9.035828263245442
    ]
  },
  "bounds_available": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  },
  "query_index": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0
    ]
  },
  "query_count": 2.0,
  "available_count": 2.0,
  "unavailable_count": 0.0,
  "critical_value": 2.0859634472658612,
  "critical_value_reused": f
[…]
Esito del controllo negativo o del tentativo · predictionUncertainty

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "expression"
      },
      "expression": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "a*x+b"
          }
        ]
      },
      "parameter_ids": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "a"
          },
          {
            "kind": "text",
            "value": "b"
          }
        ]
      },
      "parameter_units": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          },
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "predictor_ids": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "x"
          }
        ]
      },
      "response_units": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "initial_parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.0,
          0.25
        ]
      },
      "parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "expression_grammar": {
        "kind": "text",
        "value": "CORE controlled expression v1"
      },
      "compiler_version": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      },
      "source_sha256": {
        "kind": "text",
        "value": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5"
      },
      "binding_sha256": {
        "kind": "text",
        "value": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f"
      },
      "parameter_constraints": {
        "kind": "struct",
        "fields": {
          "initial_parameters": {
            "kind": "array",
            "shape": [
              2,
         
[…]

Esito, anteprima

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/predictionUncertainty: nonfinite input is not accepted"

propagateIndependentUncertainty

Accesso
registrata nel Job Python
Argomenti
jacobian standardUncertainty {options {}}
Unità
Mantiene le unità e l’interpretazione del componente responsabile senza rietichettarle.
Esito
Risultato originale completo, con i tipi number/boolean/string/vector/matrix/tensor/struct/cell restituiti da resultTypes del componente responsabile subito dopo la chiamata
Funzione
Esegue invariata l’operazione Numeric originale propagateIndependentUncertainty.
gxtxt_api_call("NUMERIC_API_v1", "propagateIndependentUncertainty", args)
Risultato registrato · propagateIndependentUncertainty

Scarica lo script dell’esempio.

Operandi del caso, anteprima

[
  {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0,
      1.0
    ]
  },
  {
    "shape": [
      2
    ],
    "dtype": "float64",
    "values": [
      0.1,
      0.2
    ]
  }
]

Esito, anteprima

{
  "covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.010000000000000002,
      0.0,
      0.0,
      0.04000000000000001
    ]
  },
  "standard_uncertainty": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.1,
      0.2
    ]
  },
  "jacobian": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0,
      1.0
    ]
  },
  "input_covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.010000000000000002,
      0.0,
      0.0,
      0.04000000000000001
    ]
  },
  "method": "first_order_linear_propagation",
  "input_kind": "standard_uncertainty",
  "input_count": 2.0,
  "output_count": 2.0
}