Fitting, models, and diagnostics

Follow a model recipe through parameter estimation, then look up operations for fitting, objective functions, and diagnostic results.

Numerical computing, models, statistics, and Datasets with Python

From recipe to fitted model

Choose a model with explicit units and domain. Supply physically reasonable initial values for nonlinear fitting. The fit reports parameters in the declared order, predictions, residuals, and diagnostics. Recompute the residuals in physical units and check the rank before interpreting parameter precision. Use the model captured by the fit for prediction and retain the recipe’s identity. For multiple responses or regions, check column order, layout, and the declared continuity.

Two ways to define the objective function

In the Python Job, register a function model(p, x) with gxtxt_callback_register. The bridge passes the parameters first. With a declared recipe, check the parameter names and the formula’s units. Successfully calling a callback does not establish that the same fit can export or serialize its handle.

Operation reference

Jump to an operation

fit_region_catalog

Access
Registered in the Python Job
Arguments
no operands
Units
Units follow NUMERIC_API_v1 operation contract
Result
versioned regional descriptor cards
Effect
Discover reusable regional increments and scientific model cards
Declared shape
bounded_model_cards
Nonfinite values
error
Units rule
descriptor_relationships
gxtxt_api_call("NUMERIC_API_v1", "fit_region_catalog", args)
Recorded result · fit_region_catalog

Download the example script (ZIP).

Example operands, preview

[]

Result, preview

{
  "schema": "gxtxt.fit_region_catalog.v1",
  "models": [
    {
      "id": "region.cubic_increment_v1",
      "version": "1.0.0",
      "name": "Cubic regional increment",
      "description": "An increment from a regional start, composed with other regions into one joint continuous physical model.",
      "descriptor_sha256": "027d06fab2f107d869d5cde79470c38c05a381c46a7f073bcbf7480cbb669042",
      "increment": "slope*t+quadratic*t^2+cubic*t^3",
      "derivative": "slope+2*quadratic*t+3*cubic*t^2",
      "initialization": "Set dimensional initial slopes and shape coefficients from the observed regimes; set separate finite breakpoint search bounds. Defaults are placeholders. Use reviewed multistart when multiple minima are plausible.",
      "uncertainty": "The joint fit includes correlations with other regions and free breakpoints. C1 eliminates this region's independent starting slope. Weak changes, unsupported regions, active bounds and rank deficiency restrict local covariance; it is not a profile interval or a model-selection test.",
      "extrapolation": "The first and last increments continue outside observed support; gaps are model predictions. Exponential and polynomial continuations can grow rapidly. Coordinate translation is forbidden.",
      "parameter_ids": [
        "slope",
        "quadratic",
        "cubic"
      ],
      "parameter_units": [
        "Y/X",
        "Y/X^2",
        "Y/X^3"
      ],
      "parameter_meanings": [
        "Starting derivative of the response with respect to the physical predictor",
        "Coefficient of the squared regional span",
        "Coefficient of the cubed regional span"
      ],
      "parameter_domains": [
        "real",
        "real",
        "real"
      ],
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          0.1,
          0.01
        ]
      },
      "definition_sha256": "7c5bcd27ac2ffde690598bf99f4fd717a8cfd92cb2059dec77abb178b658386d"
    },
    {
      "id": "region.exponential_increment_v1",
      "version": "1.0.0",
      "name": "Exponential regional increment",
      "description": "An increment from a regional start, composed with other regions into one joint continuous physical model.",
      "descriptor_sha256": "0010d70a6e3fbfeef68641a10d36f6c3f6f7948c571f164ed2ab606afa77b242",
      "increment": "slope*t*exprel(rate*t)",
      "derivative": "slope*exp(rate*t)",
      "initialization": "Set dimensional initial slopes and shape coefficients from the observed regimes; set separate finite breakpoint search bounds. Defaults are placeholders. Use reviewed multistart when multiple minima are plausible.",
      "uncertainty": "The joint fit includes correlations with other regions and free breakpoints. C1 eliminates this region's independent starting slope. Weak changes, unsupported regions, active bounds and rank deficiency restrict local covariance; it is not a profile interval or a model-selection test.",
      "extrapolation": "The first and last increments continue outside observed support; gaps are model predictions. Exponential and polynomial continuations can grow rapidly. Coordinate translation is forbidden.",
      "parameter_ids": [
        "slope",
        "rate"
      ],
      "parameter_units": [
        "Y/X",
        "1/X"
      ],
      "parameter_meanings": [
        "Starting derivative of the response with respect to the physical predicto
[…]

fit_region_compose

Access
Registered in the Python Job
Arguments
physical region recipe with explicit breakpoint search bounds
Units
Units follow NUMERIC_API_v1 operation contract
Result
frozen declared expression and joint constraints
Effect
Compose one joint C0/C1 model with ordered fixed or fitted breakpoints
Types
struct
Declared shape
bounded_regional_recipe
Nonfinite values
error
Units rule
explicit_physical_units
gxtxt_api_call("NUMERIC_API_v1", "fit_region_compose", args)
Recorded result · fit_region_compose

Download the example script (ZIP).

Example operands, preview

[
  {
    "x_unit": "V",
    "y_unit": "mA",
    "origin": 0.0,
    "regions": [
      {
        "id": "left",
        "model_id": "region.linear_increment_v1"
      },
      {
        "id": "right",
        "model_id": "region.exponential_increment_v1"
      }
    ],
    "breakpoints": [
      {
        "id": "junction",
        "initial": 3.5,
        "lower": 2.0,
        "upper": 5.0,
        "fixed": false,
        "continuity": "C1"
      }
    ],
    "fit_windows": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.0,
        6.0,
        4.0,
        10.0
      ]
    },
    "parameters": {
      "level": {
        "initial": 1.0
      },
      "left_slope": {
        "initial": 0.4
      },
      "right_rate": {
        "initial": 0.2
      }
    }
  }
]

Result, preview

{
  "kind": "expression",
  "expression": [
    "level+(left_slope*((minimum(x,junction)-(0))))+((left_slope)*(positive_part(x-junction))*exprel(right_rate*(positive_part(x-junction))))"
  ],
  "parameter_ids": [
    "level",
    "junction",
    "left_slope",
    "right_rate"
  ],
  "predictor_ids": [
    "x"
  ],
  "parameter_units": [
    "mA",
    "V",
    "mA/(V)",
    "1/(V)"
  ],
  "initial_parameters": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.5,
      0.4,
      0.2
    ]
  },
  "parameters": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.5,
      0.4,
      0.2
    ]
  },
  "parameter_constraints": {
    "initial_parameters": {
      "shape": [
        4,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        3.5,
        0.4,
        0.2
      ]
    },
    "lower_bounds": {
      "shape": [
        4,
        1
      ],
      "dtype": "float64",
      "values": [
        -Infinity,
        2.0,
        -Infinity,
        -Infinity
      ]
    },
    "upper_bounds": {
      "shape": [
        4,
        1
      ],
      "dtype": "float64",
      "values": [
        Infinity,
        5.0,
        Infinity,
        Infinity
      ]
    },
    "fixed_mask": {
      "shape": [
        4,
        1
      ],
      "dtype": "float64",
      "values": [
        0.0,
        0.0,
        0.0,
        0.0
      ]
    }
  },
  "input_constraints": {
    "domain": "finite_real",
    "required_x_unit": "V",
    "required_y_unit": "mA",
    "translation_policy": "forbid_translation"
  },
  "regional_composition": {
    "schema": "gxtxt.fit_regions.v1",
    "recipe": {
      "x_unit": "V",
      "y_unit": "mA",
      "origin": 0.0,
      "regions": [
        {
          "id": "left",
          "model_id": "region.linear_increment_v1"
        },
        {
          "id": "right",
          "model_id": "region.exponential_increment_v1"
        }
      ],
      "breakpoints": [
        {
          "id": "junction",
          "initial": 3.5,
          "lower": 2.0,
          "upper": 5.0,
          "fixed": 0.0,
          "continuity": "C1"
        }
      ],
      "fit_windows": {
        "shape": [
          2,
          2
        ],
        "dtype": "float64",
        "values": [
          0.0,
          6.0,
          4.0,
          10.0
        ]
      },
      "parameters": {
        "level": {
          "initial": 1.0
        },
        "left_slope": {
          "initial": 0.4
        },
        "right_rate": {
          "initial": 0.2
        }
      }
    },
    "cards": [
      {
        "id": "region.linear_increment_v1",
        "version": "1.0.0",
        "name": "Linear regional increment",
        "description": "An increment from a regional start, composed with other regions into one joint continuous physical model.",
        "descriptor_sha256": "1ab69e5c2a3d885fa44632d7f6233a3cbce93cc27ff4f192e1a51db3b3a1ac50",
        "increment": "slope*t",
        "derivative": "slope",
        "initialization": "Set dimensional initial slopes and shape coefficients from the observed regimes; set separate finite breakpoint search bounds. Defaults are placeholders. Use reviewed multistart when multiple minima are plausible.",
        "uncertainty": "The joint fit includes correlations with other regions and free breakpoints. C1 eliminates this region's independent starting slope. Weak changes, unsupported 
[…]
Negative test or attempted call · fit_region_compose

Download the example script (ZIP).

Example operands, preview

[
  {
    "x_unit": "V",
    "y_unit": "mA",
    "origin": 0.0,
    "regions": [
      {
        "id": "left",
        "model_id": "region.linear_increment_v1"
      },
      {
        "id": "right",
        "model_id": "region.exponential_increment_v1"
      }
    ],
    "breakpoints": [
      {
        "id": "junction",
        "initial": 3.5,
        "lower": 2.0,
        "upper": 5.0,
        "fixed": false,
        "continuity": "C1"
      }
    ],
    "fit_windows": [
      [
        0.0,
        4.0
      ],
      [
        6.0,
        10.0
      ]
    ],
    "parameters": {
      "level": {
        "initial": 1.0
      },
      "left_slope": {
        "initial": 0.4
      },
      "right_rate": {
        "initial": 0.2
      }
    }
  }
]

Result, preview

"GXTXT:ScriptBridge:InvalidArguments: Numeric arguments require text, text lists, numeric arrays or scalar structs"

fit_region_selection

Access
Registered in the Python Job
Arguments
frozen regional model and physical predictor vector
Units
Units follow NUMERIC_API_v1 operation contract
Result
binary positional mask and region indices with bounded counts
Effect
Select actual observations by fitting windows and identify their regions
Types
struct;real
Declared shape
bounded_model;vector
Nonfinite values
finite_predictors_selected
Units rule
physical_predictor
gxtxt_api_call("NUMERIC_API_v1", "fit_region_selection", args)
Recorded result · fit_region_selection

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "expression",
    "expression": [
      "level+(left_slope*((minimum(x,junction)-(0))))+((left_slope)*(positive_part(x-junction))*exprel(right_rate*(positive_part(x-junction))))"
    ],
    "parameter_ids": [
      "level",
      "junction",
      "left_slope",
      "right_rate"
    ],
    "predictor_ids": [
      "x"
    ],
    "parameter_units": [
      "mA",
      "V",
      "mA/(V)",
      "1/(V)"
    ],
    "initial_parameters": {
      "shape": [
        4,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        3.5,
        0.4,
        0.2
      ]
    },
    "parameters": {
      "shape": [
        4,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        3.5,
        0.4,
        0.2
      ]
    },
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          4,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          3.5,
          0.4,
          0.2
        ]
      },
      "lower_bounds": {
        "shape": [
          4,
          1
        ],
        "dtype": "float64",
        "values": [
          -Infinity,
          2.0,
          -Infinity,
          -Infinity
        ]
      },
      "upper_bounds": {
        "shape": [
          4,
          1
        ],
        "dtype": "float64",
        "values": [
          Infinity,
          5.0,
          Infinity,
          Infinity
        ]
      },
      "fixed_mask": {
        "shape": [
          4,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0,
          0.0,
          0.0
        ]
      }
    },
    "input_constraints": {
      "domain": "finite_real",
      "required_x_unit": "V",
      "required_y_unit": "mA",
      "translation_policy": "forbid_translation"
    },
    "regional_composition": {
      "schema": "gxtxt.fit_regions.v1",
      "recipe": {
        "x_unit": "V",
        "y_unit": "mA",
        "origin": 0.0,
        "regions": [
          {
            "id": "left",
            "model_id": "region.linear_increment_v1"
          },
          {
            "id": "right",
            "model_id": "region.exponential_increment_v1"
          }
        ],
        "breakpoints": [
          {
            "id": "junction",
            "initial": 3.5,
            "lower": 2.0,
            "upper": 5.0,
            "fixed": 0.0,
            "continuity": "C1"
          }
        ],
        
[…]

Result, preview

{
  "schema": "gxtxt.fit_region_selection.v1",
  "selected_mask": {
    "shape": [
      11,
      1
    ],
    "dtype": "bool",
    "values": [
      true,
      true,
      true,
      true,
      true,
      false,
      true,
      true,
      true,
      true,
      true
    ]
  },
  "source_row_positions": {
    "shape": [
      10,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0,
      5.0,
      7.0,
      8.0,
      9.0,
      10.0,
      11.0
    ]
  },
  "region_indices": {
    "shape": [
      11,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      1.0,
      1.0,
      2.0,
      0.0,
      2.0,
      2.0,
      2.0,
      2.0,
      2.0
    ]
  },
  "region_counts": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      4.0,
      6.0
    ]
  },
  "breakpoint_values": 3.5,
  "input_count": 11.0,
  "retained_count": 10.0,
  "excluded_count": 1.0,
  "index_base": 1.0,
  "boundary_ownership": "right_region",
  "fit_windows": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      6.0,
      4.0,
      10.0
    ]
  }
}

fit_observation_signature

Access
Registered in the Python Job
Arguments
observed vector, optional positive weights, additive response offset (empty to skip), retained predictors
Units
Units follow NUMERIC_API_v1 operation contract
Result
bounded SHA and Gaussian normalization receipt
Effect
Fingerprint exact fitted observations and retain Gaussian weight normalization
Types
vector,vector,scalar,matrix
Declared shape
equal_positive_weight_retained_rows
Nonfinite values
error
Units rule
caller_declared_response_units
gxtxt_api_call("NUMERIC_API_v1", "fit_observation_signature", args)
Recorded result · fit_observation_signature

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      3.502397127693021,
      3.8490402092700293,
      4.195644905551329,
      4.542205220750953,
      4.888715749300064,
      5.235171747734771,
      5.581569197778721,
      5.927904859781541,
      6.274176315802433,
      6.620382001766006,
      6.966521228262664,
      7.312594189716963
    ]
  },
  {
    "shape": [
      40
    ],
    "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
    ]
  },
  0.0,
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.6153846153846154,
      0.7307692307692308,
      0.8461538461538461,
      0.9615384615384616,
      1.076923076923077,
      1.1923076923076923,
      1.3076923076923077,
      1.4230769230769231,
      1.5384615384615385,
      1.653846153846154,
      1.7692307692307694
    ]
  }
]

Result, preview

{
  "schema": "gxtxt.fit_observations.v1",
  "n": 40.0,
  "encoding": "float64_le_ordered",
  "response_sha256": "05fea0764315040aea4872711a4e0f111e359b12891b19447cc9819f1be2a762",
  "weights_sha256": "beb8b8ce5f9a3da261e2819d6b187b6496ce2416dff3c2f6a33eb49ae5fc2b69",
  "log_weight_sum": 0.0,
  "response_offset": 0.0,
  "fit_response_sha256": "05fea0764315040aea4872711a4e0f111e359b12891b19447cc9819f1be2a762",
  "predictor_count": 1.0,
  "predictors_sha256": "540b38dec0cbc84dfea0b850d4e54eed58b808ae01f378396d0c83b6966cc7f5"
}

nested_f_test

Access
Registered in the Python Job
Arguments
public CORE nested-F plan
Units
Units follow NUMERIC_API_v1 operation contract
Result
F, degrees of freedom and upper-tail probability without refitting
Effect
Compute nested polynomial F statistic from captured SSE without refitting
Types
struct
Declared shape
bounded_CORE_nested_F_plan
Nonfinite values
error
Units rule
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "nested_f_test", args)
Recorded result · nested_f_test

Download the example script (ZIP).

Example operands, preview

[
  {
    "api_id": "STATISTICAL_NESTED_F_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "method": "complete_polynomial_spaces",
    "reduced_id": "degree_1",
    "full_id": "degree_2",
    "n": 22.0,
    "reduced_p": 2.0,
    "full_p": 3.0,
    "reduced_sse": 0.27406343935594457,
    "full_sse": 0.24030958705743355,
    "numerator_df": 1.0,
    "denominator_df": 19.0,
    "source_id": "synthetic_line",
    "source_sha256": "d72098c4decf5a5689de1e11391dc7410d7ec86aa3f4e680c51134f0499052c3",
    "rows_sha256": "fa6ec9ba7307dbf714e5bb050e41749591d3d20cf5fcae88bd1cf99b41ee5216",
    "response_sha256": "9e76cffd934fc8aeed063a695ced927642757c3071e58e66745ba011d8ac6147"
  }
]

Result, preview

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "nested_f_test",
  "plan": {
    "api_id": "STATISTICAL_NESTED_F_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "method": "complete_polynomial_spaces",
    "reduced_id": "degree_1",
    "full_id": "degree_2",
    "n": 22.0,
    "reduced_p": 2.0,
    "full_p": 3.0,
    "reduced_sse": 0.27406343935594457,
    "full_sse": 0.24030958705743355,
    "numerator_df": 1.0,
    "denominator_df": 19.0,
    "source_id": "synthetic_line",
    "source_sha256": "d72098c4decf5a5689de1e11391dc7410d7ec86aa3f4e680c51134f0499052c3",
    "rows_sha256": "fa6ec9ba7307dbf714e5bb050e41749591d3d20cf5fcae88bd1cf99b41ee5216",
    "response_sha256": "9e76cffd934fc8aeed063a695ced927642757c3071e58e66745ba011d8ac6147"
  },
  "status": "value",
  "reason": "",
  "f_statistic": 2.6687374462444327,
  "p_value": 0.11879858241360768,
  "numerator_df": 1.0,
  "denominator_df": 19.0,
  "sse_reduction": 0.03375385229851102,
  "sse_roundoff_clamped": false
}
Negative test or attempted call · nested_f_test

Download the example script (ZIP).

Example operands, preview

[
  {
    "api_id": "STATISTICAL_NESTED_F_PLAN_v1",
    "api_version": 1.0,
    "status": "unavailable",
    "reason": "reduced: Active or undeclared constraints do not support these regular likelihood criteria",
    "method": "complete_polynomial_spaces",
    "reduced_id": "degree_1",
    "full_id": "",
    "n": "",
    "reduced_p": "",
    "full_p": "",
    "reduced_sse": "",
    "full_sse": "",
    "numerator_df": "",
    "denominator_df": "",
    "source_id": "",
    "source_sha256": "",
    "rows_sha256": "",
    "response_sha256": ""
  }
]

Result, preview

"GXTXT:Numeric:NestedF: A valid public CORE nested-F plan is required"

fit_information_criteria

Access
Registered in the Python Job
Arguments
public CORE model-selection plan
Units
Units follow NUMERIC_API_v1 operation contract
Result
log likelihood, AIC, conditional AICc and BIC without refitting
Effect
Compute information criteria from captured fit facts without refitting or reducing residuals again
Types
struct
Declared shape
bounded_CORE_model_selection_plan
Nonfinite values
error
Units rule
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "fit_information_criteria", args)
Recorded result · fit_information_criteria

Download the example script (ZIP).

Example operands, preview

[
  {
    "api_id": "STATISTICAL_MODEL_SELECTION_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "observation_status": "value",
    "source_model_id": "math.numeric.nonlinear",
    "source_id": "synthetic_line",
    "source_sha256": "d72098c4decf5a5689de1e11391dc7410d7ec86aa3f4e680c51134f0499052c3",
    "rows_sha256": "fa6ec9ba7307dbf714e5bb050e41749591d3d20cf5fcae88bd1cf99b41ee5216",
    "n": 22.0,
    "free_parameter_count": 2.0,
    "weighted_sse": 0.27406343935594607,
    "log_weight_sum": 0.0,
    "response_sha256": "9e76cffd934fc8aeed063a695ced927642757c3071e58e66745ba011d8ac6147",
    "weights_sha256": "0d811a1ed6f6ec848a389b2ea64546e82ff05e72ac15109d142c621edb8efc65",
    "x_variable_id": "x",
    "y_variable_id": "y",
    "x_unit": "1"
  }
]

Result, preview

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "fit_information_criteria",
  "plan": {
    "api_id": "STATISTICAL_MODEL_SELECTION_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "observation_status": "value",
    "source_model_id": "math.numeric.nonlinear",
    "source_id": "synthetic_line",
    "source_sha256": "d72098c4decf5a5689de1e11391dc7410d7ec86aa3f4e680c51134f0499052c3",
    "rows_sha256": "fa6ec9ba7307dbf714e5bb050e41749591d3d20cf5fcae88bd1cf99b41ee5216",
    "n": 22.0,
    "free_parameter_count": 2.0,
    "weighted_sse": 0.27406343935594607,
    "log_weight_sum": 0.0,
    "response_sha256": "9e76cffd934fc8aeed063a695ced927642757c3071e58e66745ba011d8ac6147",
    "weights_sha256": "0d811a1ed6f6ec848a389b2ea64546e82ff05e72ac15109d142c621edb8efc65",
    "x_variable_id": "x",
    "y_variable_id": "y",
    "x_unit": "1"
  },
  "n": 22.0,
  "free_parameter_count": 2.0,
  "likelihood_parameter_count": 3.0,
  "log_likelihood": 17.023171614305262,
  "aic": -28.046343228610525,
  "aicc": -26.713009895277192,
  "bic": -24.773215868535576,
  "aicc_computed": true,
  "variance_mle": 0.012457429061633912
}
Negative test or attempted call · fit_information_criteria

Download the example script (ZIP).

Example operands, preview

[
  {
    "api_id": "STATISTICAL_MODEL_SELECTION_PLAN_v1",
    "api_version": 1.0,
    "status": "unavailable",
    "reason": "Canonical predictor and response identities are required",
    "observation_status": "unavailable",
    "source_model_id": "math.numeric.nonlinear",
    "source_id": "synthetic_line",
    "source_sha256": "d72098c4decf5a5689de1e11391dc7410d7ec86aa3f4e680c51134f0499052c3",
    "rows_sha256": "fa6ec9ba7307dbf714e5bb050e41749591d3d20cf5fcae88bd1cf99b41ee5216",
    "n": 22.0,
    "free_parameter_count": "",
    "weighted_sse": "",
    "log_weight_sum": 0.0,
    "response_sha256": "9e76cffd934fc8aeed063a695ced927642757c3071e58e66745ba011d8ac6147",
    "weights_sha256": "0d811a1ed6f6ec848a389b2ea64546e82ff05e72ac15109d142c621edb8efc65",
    "x_variable_id": "",
    "y_variable_id": "",
    "x_unit": "1"
  }
]

Result, preview

"GXTXT:Numeric:ModelSelection: A valid public CORE model-selection plan is required"

fit_model_catalog

Access
Registered in the Python Job
Arguments
no operands
Units
Units follow NUMERIC_API_v1 operation contract
Result
independent versioned descriptor cards
Effect
Discover reusable scalar model descriptors and scientific model cards
Declared shape
bounded_model_cards
Nonfinite values
error
Units rule
descriptor_relationships
gxtxt_api_call("NUMERIC_API_v1", "fit_model_catalog", args)
Recorded result · fit_model_catalog

Download the example script (ZIP).

Example operands, preview

[]

Result, preview

{
  "schema": "gxtxt.fit_model_catalog.v1",
  "models": [
    {
      "id": "baseline.constant_v1",
      "version": "1.0.0",
      "name": "Constant baseline",
      "description": "The baseline is fitted jointly with the selected peaks; it does not replace source values.",
      "descriptor_sha256": "2dd9c5928cff420f64f4274869d94d655d0684ce31b5e99af707e651d3e42d4d",
      "expression": "level",
      "parameter_ids": [
        "level"
      ],
      "parameter_units": [
        "Y"
      ],
      "parameter_meanings": [
        "Constant response baseline"
      ],
      "parameter_domains": [
        "real"
      ],
      "initial_parameters": 0.0,
      "predictor": "x",
      "method_class": "regression",
      "input_domain": "finite_real",
      "initialization": "Explicit user-reviewed parameter values; descriptor values are dimensional placeholders, not estimated from data.",
      "derivatives": "Native automatic differentiation through the CORE controlled expression grammar.",
      "uncertainty": "Local covariance and pointwise propagation subject to CORE rank, convergence, constraints and noise eligibility.",
      "extrapolation": "Formula evaluation is permitted on finite real inputs, with model extrapolation kept distinct from validated data support."
    },
    {
      "id": "baseline.linear_v1",
      "version": "1.0.0",
      "name": "Linear baseline",
      "description": "The baseline is fitted jointly with the selected peaks; it does not replace source values.",
      "descriptor_sha256": "c43520837d50f20c37f306863d1e835d252a014166ab62de1032b945543f5b30",
      "expression": "intercept+slope*x",
      "parameter_ids": [
        "intercept",
        "slope"
      ],
      "parameter_units": [
        "Y",
        "Y/X"
      ],
      "parameter_meanings": [
        "Response baseline at x = 0",
        "Baseline change per independent-coordinate unit"
      ],
      "parameter_domains": [
        "real",
        "real"
      ],
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0
        ]
      },
      "predictor": "x",
      "method_class": "regression",
      "input_domain": "finite_real",
      "initialization": "Explicit user-reviewed parameter values; descriptor values are dimensional placeholders, not estimated from data.",
      "derivatives": "Native automatic differentiation through the CORE controlled expression grammar.",
      "uncertainty": "Local covariance and pointwise propagation subject to CORE rank, convergence, constraints and noise eligibility.",
      "extrapolation": "Formula evaluation is permitted on finite real inputs, with model extrapolation kept distinct from validated data support."
    },
    {
      "id": "decay.exponential_v1",
      "version": "1.0.0",
      "name": "Exponential decay (amplitude, lifetime)",
      "description": "One decay component with positive lifetime. Sum multiple independently named components for a multi-exponential model and add a separate baseline if required.",
      "descriptor_sha256": "8868fe356b2fd2f442a15730985981ce66ee31f0513619da58b3da1ed98232a7",
      "expression": "amplitude*exp(-x/tau)",
      "parameter_ids": [
        "amplitude",
        "tau"
      ],
      "parameter_units": [
        "Y",
        "X"
      ],
      "parameter_meanings": [
        "Signed amplitude at predictor zero",
        "Strictly positive decay lifetime in pr
[…]

model_export

Access
Registered in the Python Job
Arguments
model, export options including name and domain
Units
Units follow NUMERIC_API_v1 operation contract
Result
python, octave, latex and metadata_json text
Effect
Generate independent functions from frozen evaluation state
Types
struct,text
Declared shape
frozen_model
Nonfinite values
error
Units rule
explicit_axis_units
gxtxt_api_call("NUMERIC_API_v1", "model_export", args)
Recorded result · model_export:declared

Download the example script (ZIP).

Example operands, preview

[
  {
    "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": [
        2.0,
        1.0
      ]
    },
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        2.9974129066037447,
        2.007727237908525
      ]
    },
    "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": [
          2.0,
          1.0
        ]
      },
      "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
        ]
      }
    },
    "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",
            "initial": 2.0,
            "unit": "1"
          },
          {
            "id": "b",
            "initial": 1.0,
            "unit": "1"
          }
        ]
      },
      "original_expression": "a*x+b",
      "effective_expression": "a*x+b",
      "dimensional_receipt": {
        "schema": "gxtxt.expression_dimensions.v1",
        "expression": "a*x+b",

[…]

Result, preview

{
  "python": "# SPDX-License-Identifier: GPL-3.0-or-later\n# Generated by NUMERIC_API_v1 model_export. No fitting or statistics.\n# {\"schema\":\"gxtxt.independent_model.v1\",\"model\":\"expression\",\"evaluation_representation\":\"expression\",\"function_name\":\"fit_declared_line\",\"orientation\":\"y_of_x\",\"domain\":[0.5,5],\"x_unit\":\"unspecified\",\"y_unit\":\"unspecified\",\"query_unit\":\"unspecified\",\"source_reference\":\"NUMERIC_API_v1 saved model\",\"parameter_units\":[],\"precision\":\"17 significant decimal digits, binary64 evaluation\",\"query_contract\":\"finite real scalar or vector; Nx2 physical X/Y output; outside evaluated domain refused\",\"license\":\"GPL-3.0-or-later\",\"python_dependencies\":\"NumPy; SciPy for erf or Voigt expressions\",\"octave_dependencies\":\"GNU Octave core; no GX-TXT runtime\",\"coefficient_order\":\"arrays in source order; polynomial and cubic powers descending\",\"comparison_tolerance\":\"abs(error) <= 5e-11 * max(1,abs(reference)); assess ill-conditioned expressions separately\",\"accepted_parameter_ids\":[],\"accepted_parameter_values\":[],\"parameter_units_order\":\"accepted_parameter_ids; evaluation constants may use a different basis\",\"coefficient_units_note\":\"Constants use the displayed fit-space formula and declared axis units. Parametric t is dimensionless; vector coordinate constants follow X then Y.\"}\nimport numpy as np\n\ndef fit_declared_line(q):\n    if np.iscomplexobj(q): raise ValueError(\"Query must be real\")\n    q = np.asarray(q, dtype=float)\n    if q.ndim > 1: raise ValueError(\"Query must be a scalar or vector\")\n    q = q.reshape(-1)\n    if np.any(~np.isfinite(q)) or np.any(q < 0.5) or np.any(q > 5): raise ValueError(\"Query outside evaluated domain\")\n    u = q + 0\n    p = np.array([[2.9974129066037447, 2.0077272379085249]], dtype=float)\n    v1 = p[0, 0]\n    v2 = u\n    v3 = (v1 * v2)\n    v4 = p[0, 1]\n    v5 = (v3 + v4)\n    y = v5\n    x = q\n    y = np.broadcast_to(y, q.shape) - 0\n    points = np.column_stack((x, y))\n    if not np.all(np.isfinite(points)): raise ValueError(\"Model evaluated outside its finite domain\")\n    return points\n\ndef _piecewise(u, knots, c, normalized):\n    i = np.clip(np.searchsorted(knots, u, side='right')-1, 0, len(knots)-2)\n    z = u-knots[i]\n    if normalized:\n        z = z/(knots[i+1]-knots[i])\n    return ((c[i, 0]*z+c[i, 1])*z+c[i, 2])*z+c[i, 3]\n\n\ndef _erf(x):\n    from scipy.special import erf\n    return erf(x)\n\n\ndef _voigt(x, sigma, gamma):\n    from scipy.special import voigt_profile\n    if np.any(np.asarray(sigma) <= 0) or np.any(np.asarray(gamma) < 0):\n        raise ValueError('Voigt needs sigma > 0 and gamma >= 0')\n    return voigt_profile(x, sigma, gamma)\n\n\ndef _logistic(x):\n    e = np.exp(-np.abs(x))\n    return np.where(np.asarray(x) >= 0, 1/(1+e), e/(1+e))\n\n\ndef _positive(x):\n    return np.maximum(x, 0)\n\n\ndef _exprel(x):\n    x = np.asarray(x, dtype=float)\n    result = np.empty_like(x)\n    small = np.abs(x) < 1e-4\n    z = x[small]\n    result[small] = 1+z*(.5+z*(1/6+z*(1/24+z*(1/120+z/720))))\n    with np.errstate(over='ignore', invalid='ignore'):\n        moderate = (~small) & (x < 50)\n        result[moderate] = np.expm1(x[moderate])/x[moderate]\n        large = x >= 50\n        result[large] = np.exp(x[large]-np.log(x[large]))*(-np.expm1(-x[large]))\n    return result\n\n\ndef _shockley(v, saturation, thermal, resistance):\n    # Monotone junction identity u + (Rs*Is/V
[…]
Negative test or attempted call · model_export:declared

Download the example script (ZIP).

Example operands, preview

[
  {
    "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": [
        2.0,
        1.0
      ]
    },
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        2.9974129066037447,
        2.007727237908525
      ]
    },
    "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": [
          2.0,
          1.0
        ]
      },
      "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
        ]
      }
    },
    "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",
            "initial": 2.0,
            "unit": "1"
          },
          {
            "id": "b",
            "initial": 1.0,
            "unit": "1"
          }
        ]
      },
      "original_expression": "a*x+b",
      "effective_expression": "a*x+b",
      "dimensional_receipt": {
        "schema": "gxtxt.expression_dimensions.v1",
        "expression": "a*x+b",

[…]

Result, preview

"GXTXT:Numeric:Export: Export requires an explicit increasing finite evaluated domain"

generalized_least_squares

Access
Registered in the Python Job
Arguments
design, response, covariance, optional policy
Units
Units follow NUMERIC_API_v1 operation contract
Result
Coefficients, full covariance, exact source identity and whitened residual facts
Effect
Fit a linear design with full correlated observation covariance and exact zero-variance constraints
Types
matrix,vector,matrix
Declared shape
matching_rows_square_covariance
Options
covariance_semantics=absolute,relative_scale;singular_policy=reject,exact_constraints;eigen_relative_tolerance=0..1e-6;symmetry_relative_tolerance=0..1e-6;constraint_relative_tolerance=0..1e-6;max_lag=1..64
Nonfinite values
error
Units rule
explicit_covariance_in_squared_response_units
gxtxt_api_call("NUMERIC_API_v1", "generalized_least_squares", args)
Recorded result · generalized_least_squares

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      40,
      2
    ],
    "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
    ]
  },
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      3.502397127693021,
      3.8490402092700293,
      4.195644905551329,
      4.542205220750953,
      4.888715749300064,
      5.235171747734771,
      5.581569197778721,
      5.927904859781541,
      6.274176315802433,
      6.620382001766006,
      6.966521228262664,
      7.312594189716963
    ]
  },
  {
    "shape": [
      40,
      40
    ],
    "dtype": "float64",
    "values": [
      0.01,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  }
]

Result, preview

{
  "schema": "gxtxt.generalized_least_squares_numeric.v1",
  "numeric_api": "NUMERIC_API_v1",
  "operation": "generalized_least_squares",
  "coefficients": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0077272378708235,
      2.9974129066160904
    ]
  },
  "covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0013157181571815712,
      -0.0003875338753387531,
      -0.0003875338753387531,
      0.00014092140921409202
    ]
  },
  "standard_errors": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.03627282946203082,
      0.011871032356711527
    ]
  },
  "predicted": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      3.5064336911788687,
      3.8522890265576484,
      4.1981443619364285,
      4.543999697315208,
      4.889855032693987,
      5.235710368072768,
      5.581565703451547,
      5.927421038830326,
      6.273276374209106,
      6.619131709587886,
      6.964987044966666,
      7.310842380345446
    ]
  },
  "residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.0040365634858479105,
      -0.0032488172876190546,
      -0.002499456385099741,
      -0.0017944765642550209,
      -0.0011392833939227742,
      -0.0005386203379966759,
      3.4943271742804427e-06,
      0.00048382095121457525,
      0.0008999415933264032,
      0.00125029217812056,
      0.0015341832959983037,
      0.001751809371516977
    ]
  },
  "whitened_residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.040365634858479105,
      -0.032488172876190546,
      -0.02499456385099741,
      -0.01794476564255021,
      -0.011392833939227742,
      -0.005386203379966759,
      3.494327174280443e-05,
      0.0048382095121457525,
      0.008999415933264032,
      0.0125029217812056,
      0.015341832959983037,
      0.01751809371516977
    ]
  },
  "whitened_sequence": {
    "numeric_api": "NUMERIC_API_v1",
    "operation": "residual_sequence",
    "schema": "gxtxt.residual_sequence_numeric.v1",
    "input_count": 40.0,
    "n": 40.0,
    "omitted_count": 0.0,
    "nonfinite_policy": "error",
    "ordering": "input",
    "key_storage_class": "uint64",
    "generated_input_positions": true,
    "tie_count": 0.0,
    "tie_policy": "stable_input_order",
    "input_residual_sha256": "cce58940be964b9bb60f09a92939a0f801bf006ba1916319a76972c15bebc2d0",
    "input_order_sha256": "ae23dabcc4ac3a4abdb1b16d57ef1b5a24641cd336e51949815271a6618f16c4",
    "ordered_residual_sha256": "cce58940be964b9bb60f09a92939a0f801bf006ba1916319a76972c15bebc2d0",
    "ordered_keys_sha256": "ae23dabcc4ac3a4abdb1b16d57ef1b5a24641cd336e51949815271a6618f16c4",
    "positive_count": 20.0,
    "negative_count": 20.0
  },
  "observation_count": 40.0,
  "parameter_count": 2.0,
  "covariance_rank": 40.0,
  "covariance_nullity": 0.0,
  "exact_constraint_rank": 0.0,
  "stochastic_parameter_count": 2.0,
  "dof": 38.0,
  "objective": 0.008661459538286122
}

polynomial_gls

Access
Registered in the Python Job
Arguments
x, y, degree, covariance, optional policy
Units
Units follow NUMERIC_API_v1 operation contract
Result
Physical and scaled coefficients/covariance with retained GLS meaning
Effect
Fit a polynomial with full observation covariance in shared centered coordinates
Types
vector,vector,scalar,matrix
Declared shape
matching_rows_square_covariance
Options
center_scale=true,false;covariance_semantics=absolute,relative_scale;singular_policy=reject,exact_constraints;eigen_relative_tolerance=0..1e-6;symmetry_relative_tolerance=0..1e-6;constraint_relative_tolerance=0..1e-6;max_lag=1..64
Nonfinite values
error
Units rule
explicit_covariance_in_squared_response_units
gxtxt_api_call("NUMERIC_API_v1", "polynomial_gls", args)
Recorded result · polynomial_gls

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.6153846153846154,
      0.7307692307692308,
      0.8461538461538461,
      0.9615384615384616,
      1.076923076923077,
      1.1923076923076923,
      1.3076923076923077,
      1.4230769230769231,
      1.5384615384615385,
      1.653846153846154,
      1.7692307692307694
    ]
  },
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      3.502397127693021,
      3.8490402092700293,
      4.195644905551329,
      4.542205220750953,
      4.888715749300064,
      5.235171747734771,
      5.581569197778721,
      5.927904859781541,
      6.274176315802433,
      6.620382001766006,
      6.966521228262664,
      7.312594189716963
    ]
  },
  2,
  {
    "shape": [
      40,
      40
    ],
    "dtype": "float64",
    "values": [
      0.01,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ]
  }
]

Result, preview

{
  "schema": "gxtxt.generalized_least_squares_numeric.v1",
  "numeric_api": "NUMERIC_API_v1",
  "operation": "polynomial_gls",
  "coefficients": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.000641466718222974,
      3.0009409735663173,
      2.0040141324441816
    ]
  },
  "covariance": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      9.948086114110934e-05,
      -0.0005471447362761013,
      0.0005758411385283443,
      -0.0005471447362761015,
      0.00315021745873265,
      -0.0035546601372446474,
      0.0005758411385283444,
      -0.0035546601372446474,
      0.004648952439816796
    ]
  },
  "standard_errors": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.009974009281182234,
      0.05612679804454063,
      0.06818322696834461
    ]
  },
  "predicted": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      3.504324252547784,
      3.8505041169467304,
      4.196666900870931,
      4.542812604320386,
      4.888941227295095,
      5.235052769795058,
      5.5811472318202755,
      5.927224613370749,
      6.273284914446474,
      6.619328135047456,
      6.965354275173691,
      7.311363334825182
    ]
  },
  "residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.001927124854763207,
      -0.001463907676701126,
      -0.0010219953196024534,
      -0.0006073835694335727,
      -0.0002254779950305874,
      0.00011897793971282766,
      0.00042196595844590234,
      0.000680246410792229,
      0.0008914013559584433,
      0.0010538667185500117,
      0.0011669530889726332,
      0.0012308548917809858
    ]
  },
  "whitened_residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.01927124854763207,
      -0.014639076767011261,
      -0.010219953196024534,
      -0.0060738356943357275,
      -0.002254779950305874,
      0.0011897793971282766,
      0.0042196595844590234,
      0.00680246410792229,
      0.008914013559584433,
      0.010538667185500117,
      0.011669530889726332,
      0.012308548917809858
    ]
  },
  "whitened_sequence": {
    "numeric_api": "NUMERIC_API_v1",
    "operation": "residual_sequence",
    "schema": "gxtxt.residual_sequence_numeric.v1",
    "input_count": 40.0,
    "n": 40.0,
    "omitted_count": 0.0,
    "nonfinite_policy": "error",
    "ordering": "input",
    "key_storage_class": "uint64",
    "generated_input_positions": true,
    "tie_count": 0.0,
    "tie_policy": "stable_input_order",
    "input_residual_sha256": "f3cad9db571fc0f144244bd96aff667374874d693cb952984c872e2531102f4d",
    "input_order_sha256": "ae23dabcc4ac3a4abdb1b16d57ef1b5a24641cd336e51949815271a6618f16c4",
    "ordered_residual_sha256": "f3cad9db571fc0f144244bd96aff667374874d693cb952984c872e2531102f4d",
    "ordered_keys_sha256": "ae23dabcc4ac3a4abdb1b16d57ef1b5a24641cd336e51949815271a6618f16c4",
    "positive_count": 21.0,
    "negative_count": 19.0
  },
  "observation_count": 40.0,
  "parameter_count": 3.0,
  "covariance_rank": 40.0,
  "covariance_nullity": 0.0,
  "exact_constraint_rank": 0.0,
  "stochastic_parameter_count": 3.0,
  "dof": 37.0,
  "objective": 0.004525191055417126
}

fit_characteristics

Access
Registered in the Python Job
Arguments
predictors, response, optional declared thresholds
Units
Units follow NUMERIC_API_v1 operation contract
Result
bounded shape facts and exact source signature; CORE owns advisory model meaning
Effect
Inspect finite source characteristics without fitting or accepting a model
Types
real,real
Declared shape
equal_finite_vectors
Options
relative_flat_tolerance=0..0.001;monotonic_fraction=0.5..1;linearity_tolerance=0..0.25;prominence=positive_fraction;period_tolerance=0..0.5;saturation_ratio=0..1
Nonfinite values
error
Units rule
caller_declared_physical_coordinate_basis
gxtxt_api_call("NUMERIC_API_v1", "fit_characteristics", args)
Recorded result · fit_characteristics

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.6153846153846154,
      0.7307692307692308,
      0.8461538461538461,
      0.9615384615384616,
      1.076923076923077,
      1.1923076923076923,
      1.3076923076923077,
      1.4230769230769231,
      1.5384615384615385,
      1.653846153846154,
      1.7692307692307694
    ]
  },
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      3.502397127693021,
      3.8490402092700293,
      4.195644905551329,
      4.542205220750953,
      4.888715749300064,
      5.235171747734771,
      5.581569197778721,
      5.927904859781541,
      6.274176315802433,
      6.620382001766006,
      6.966521228262664,
      7.312594189716963
    ]
  }
]

Result, preview

{
  "schema": "gxtxt.fit_characteristics.v1",
  "numeric_api": "NUMERIC_API_v1",
  "operation": "fit_characteristics",
  "status": "value",
  "reason": "",
  "observation_count": 40.0,
  "distinct_predictors": 40.0,
  "duplicate_predictors": false,
  "predictor_minimum": 0.5,
  "predictor_maximum": 5.0,
  "response_minimum": 3.502397127693021,
  "response_maximum": 16.995205378626686,
  "positive_predictors": true,
  "response_one_sign": true,
  "constant_response": false,
  "shape_status": "value",
  "monotonic": "increasing",
  "linear_like": true
}

fit_initial_guess

Access
Registered in the Python Job
Arguments
model kind, finite predictors, response, optional bounds/fixed/current values
Units
Units follow NUMERIC_API_v1 operation contract
Result
proposed or explicitly unavailable starting values; no accepted fit or uncertainty
Effect
Suggest reviewed starting parameters through existing Numeric linear solves and native evaluation
Types
text,real,real
Declared shape
equal_finite_vectors
Options
degree=1..12;initial_parameters=finite_vector;lower_bounds=real_vector;upper_bounds=real_vector;fixed_mask=boolean_vector
Nonfinite values
error
Units rule
caller_declared_physical_coordinate_basis
gxtxt_api_call("NUMERIC_API_v1", "fit_initial_guess", args)
Recorded result · fit_initial_guess

Download the example script (ZIP).

Example operands, preview

[
  "linear",
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.6153846153846154,
      0.7307692307692308,
      0.8461538461538461,
      0.9615384615384616,
      1.076923076923077,
      1.1923076923076923,
      1.3076923076923077,
      1.4230769230769231,
      1.5384615384615385,
      1.653846153846154,
      1.7692307692307694
    ]
  },
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      3.502397127693021,
      3.8490402092700293,
      4.195644905551329,
      4.542205220750953,
      4.888715749300064,
      5.235171747734771,
      5.581569197778721,
      5.927904859781541,
      6.274176315802433,
      6.620382001766006,
      6.966521228262664,
      7.312594189716963
    ]
  }
]

Result, preview

{
  "schema": "gxtxt.fit_initial_guess.v1",
  "status": "proposed",
  "model_kind": "linear",
  "purpose": "initialization_only",
  "nonlinear_optimization": false,
  "observation_count": 40.0,
  "nonfinite_policy": "error",
  "source_mutation": false,
  "auxiliary_linear_solves": 1.0,
  "method": "existing_linear_least_squares",
  "reason": "Initial suggestion only. Review physical units, bounds and fixed values; run the existing fit and inspect convergence/inference separately.",
  "parameter_ids": [
    "intercept",
    "slope"
  ],
  "parameters": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0077272378708266,
      2.9974129066160904
    ]
  },
  "model": {
    "kind": "linear",
    "expression": [
      "intercept+slope*x"
    ],
    "parameter_ids": [
      "intercept",
      "slope"
    ],
    "predictor_ids": [
      "x"
    ],
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        2.0077272378708266,
        2.9974129066160904
      ]
    }
  },
  "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
    ]
  },
  "clipped_mask": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  }
}

rational_residuals

Access
Registered in the Python Job
Arguments
retained rational model, finite x and y, optional explicit extrapolation
Units
Units follow NUMERIC_API_v1 operation contract
Result
shared residual metrics, physical residuals and domain receipt; no training inference
Effect
Evaluate exact rational residuals without fitting or parameter inference
Types
struct,vector,vector,struct
Declared shape
finite_paired_observations
Options
extrapolation=error,allow
Nonfinite values
error
Units rule
physical
gxtxt_api_call("NUMERIC_API_v1", "rational_residuals", args)
Recorded result · rational_residuals

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.rational_model.v1",
    "kind": "rational",
    "recipe": {
      "numerator_degree": 1.0,
      "denominator_degree": 1.0,
      "x_unit": "1",
      "y_unit": "1",
      "parameters": [
        {
          "id": "a0",
          "unit": "1",
          "initial": 2.0,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        },
        {
          "id": "a1",
          "unit": "1",
          "initial": 0.5,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        },
        {
          "id": "b1",
          "unit": "1",
          "initial": 0.25,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        }
      ],
      "domain": {
        "shape": [
          1,
          2
        ],
        "dtype": "float64",
        "values": [
          0.0,
          6.0
        ]
      },
      "pole_tolerance": 1e-10
    },
    "formula_model": {
      "kind": "expression",
      "expression": [
        "(a0+a1*x^1)/(1+b1*x^1)"
      ],
      "parameter_ids": [
        "a0",
        "a1",
        "b1"
      ],
      "parameter_units": [
        "1",
        "1",
        "1"
      ],
      "predictor_ids": [
        "x"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          2.0,
          0.5,
          0.25
        ]
      },
      "parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          2.000000000022552,
          0.6999999996530155,
          0.2999999998432868
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "480199c8c0a3c86a96597921ab8e5e762670fba65c8f92cd1b4ee620a7e56554",
      "binding_sha256": "94075c6348fdd1207abb5021113273285c1e705cc2b577f4fcb9332b9e47fd79",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            2.0,
            0.5,
            0.25
          ]
        },
        "lower_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            -Infinity,
            -Infinity,
            -Infinity
          ]
        },
 
[…]

Result, preview

{
  "n": 40.0,
  "sse": 3.443001511389815e-22,
  "mse": 8.607503778474538e-24,
  "rmse": 2.933854764379883e-12,
  "mae": 2.485889272207942e-12,
  "max_abs_error": 7.982059457845025e-12,
  "r2": 1.0,
  "response_variance": 0.0020044509770550402,
  "max_relative_error": 3.906114202775225e-12,
  "rms_relative_error": 1.385998109978159e-12,
  "relative_n": 40.0,
  "relative_floor": 0.0,
  "operation": "rational_residuals",
  "parameters": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      2.000000000022552,
      0.6999999996530155,
      0.2999999998432868
    ]
  },
  "model": {
    "schema": "gxtxt.rational_model.v1",
    "kind": "rational",
    "recipe": {
      "numerator_degree": 1.0,
      "denominator_degree": 1.0,
      "x_unit": "1",
      "y_unit": "1",
      "parameters": [
        {
          "id": "a0",
          "unit": "1",
          "initial": 2.0,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        },
        {
          "id": "a1",
          "unit": "1",
          "initial": 0.5,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        },
        {
          "id": "b1",
          "unit": "1",
          "initial": 0.25,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        }
      ],
      "domain": {
        "shape": [
          1,
          2
        ],
        "dtype": "float64",
        "values": [
          0.0,
          6.0
        ]
      },
      "pole_tolerance": 1e-10
    },
    "formula_model": {
      "kind": "expression",
      "expression": [
        "(a0+a1*x^1)/(1+b1*x^1)"
      ],
      "parameter_ids": [
        "a0",
        "a1",
        "b1"
      ],
      "parameter_units": [
        "1",
        "1",
        "1"
      ],
      "predictor_ids": [
        "x"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          2.0,
          0.5,
          0.25
        ]
      },
      "parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          2.000000000022552,
          0.6999999996530155,
          0.2999999998432868
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "480199c8c0a3c86a96597921ab8e5e762670fba65c8f92cd1b4ee620a7e56554",
      "binding_sha256": "94075c6348fdd1207abb5021113273285c1e705cc2b577f4fcb9332b9e47fd79",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            2.0,
            0.5,
            0.25
          ]
        },
        "lower_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            -Infinity,
            -Infinity,
            -Infinity
          ]
        },
        "upper_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            Infinity,
            Infinity,
            Infinity
          ]
        },
        "fixed_mask": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            0.0,
  
[…]

rational_model_compose

Access
Registered in the Python Job
Arguments
physical coefficients, units and bounded domain
Units
Units follow NUMERIC_API_v1 operation contract
Result
validated rational declaration through shared dimensional compilation
Effect
Declare rational polynomial terms with physical units and an explicit domain
Types
struct
Declared shape
data_only
Nonfinite values
error
Units rule
dimensional
gxtxt_api_call("NUMERIC_API_v1", "rational_model_compose", args)
Recorded result · rational_model_compose

Download the example script (ZIP).

Example operands, preview

[
  {
    "numerator_degree": 1,
    "denominator_degree": 1,
    "x_unit": "1",
    "y_unit": "1",
    "domain": [
      0.0,
      6.0
    ],
    "parameters": [
      {
        "id": "a0",
        "initial": 2.0,
        "unit": "1"
      },
      {
        "id": "a1",
        "initial": 0.5,
        "unit": "1"
      },
      {
        "id": "b1",
        "initial": 0.25,
        "unit": "1"
      }
    ]
  }
]

Result, preview

{
  "schema": "gxtxt.rational_model.v1",
  "kind": "rational",
  "recipe": {
    "numerator_degree": 1.0,
    "denominator_degree": 1.0,
    "x_unit": "1",
    "y_unit": "1",
    "parameters": [
      {
        "id": "a0",
        "unit": "1",
        "initial": 2.0,
        "lower": -Infinity,
        "upper": Infinity,
        "fixed": 0.0
      },
      {
        "id": "a1",
        "unit": "1",
        "initial": 0.5,
        "lower": -Infinity,
        "upper": Infinity,
        "fixed": 0.0
      },
      {
        "id": "b1",
        "unit": "1",
        "initial": 0.25,
        "lower": -Infinity,
        "upper": Infinity,
        "fixed": 0.0
      }
    ],
    "domain": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        0.0,
        6.0
      ]
    },
    "pole_tolerance": 1e-10
  },
  "formula_model": {
    "kind": "expression",
    "expression": [
      "(a0+a1*x^1)/(1+b1*x^1)"
    ],
    "parameter_ids": [
      "a0",
      "a1",
      "b1"
    ],
    "parameter_units": [
      "1",
      "1",
      "1"
    ],
    "predictor_ids": [
      "x"
    ],
    "response_units": [
      "1"
    ],
    "initial_parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        2.0,
        0.5,
        0.25
      ]
    },
    "parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        2.0,
        0.5,
        0.25
      ]
    },
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "480199c8c0a3c86a96597921ab8e5e762670fba65c8f92cd1b4ee620a7e56554",
    "binding_sha256": "94075c6348fdd1207abb5021113273285c1e705cc2b577f4fcb9332b9e47fd79",
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          2.0,
          0.5,
          0.25
        ]
      },
      "lower_bounds": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          -Infinity,
          -Infinity,
          -Infinity
        ]
      },
      "upper_bounds": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          Infinity,
          Infinity,
          Infinity
        ]
      },
      "fixed_mask": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          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": "(a0+a1*x^1)/(1+b1*x^1)",
        "predictor_ids": [
          "x"
        ],
        "predictor_units": [
          "1"
        ],
        "response_unit": "1",
        "parameters": [
          {
            "id": "a0",
            "unit": "1",
            "initial": 2.0,
            "lower": -Infinity,
            "upper": Infinity,
            "fixed": 0.0
          },
          {
            "id": "a1",
            "unit": "1",
            "initial": 0.5,
            "lower": -Infinity,
            "upper": Infinity,
            "fixed": 0.0
          },
          {
            "id"
[…]

rational_domain

Access
Registered in the Python Job
Arguments
compiled rational model or physical recipe and finite increasing domain
Units
Units follow NUMERIC_API_v1 operation contract
Result
bounded interval receipt and diagnostic poles; no fitting
Effect
Check a compiled model or physical recipe over the whole interval without fitting or cancelling factors
Types
struct,vector
Declared shape
two_bounds
Nonfinite values
error
Units rule
physical
gxtxt_api_call("NUMERIC_API_v1", "rational_domain", args)
Recorded result · rational_domain:pole

Download the example script (ZIP).

Example operands, preview

[
  {
    "numerator_degree": 1,
    "denominator_degree": 1,
    "x_unit": "1",
    "y_unit": "1",
    "domain": [
      0.0,
      6.0
    ],
    "parameters": [
      {
        "id": "a0",
        "initial": 2.0,
        "unit": "1"
      },
      {
        "id": "a1",
        "initial": 0.5,
        "unit": "1"
      },
      {
        "id": "b1",
        "initial": -0.25,
        "unit": "1"
      }
    ]
  },
  [
    0.0,
    6.0
  ]
]

Result, preview

{
  "schema": "gxtxt.rational_domain.v1",
  "status": "unsafe",
  "reason": "Denominator reaches a pole or the declared relative near-zero threshold",
  "domain": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      6.0
    ]
  },
  "coordinate_unit": "1",
  "denominator_constant": 1.0,
  "numerator_degree": 1.0,
  "denominator_degree": 1.0,
  "denominator_coefficients_descending": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      -0.25,
      1.0
    ]
  },
  "denominator_coefficient_bound": 2.5,
  "relative_margin_lower_bound": 0.0,
  "pole_tolerance": 1e-10,
  "interval_nodes": 1.0,
  "method": "bounded_binary64_Bernstein_sign_guard",
  "root_method": "Octave_roots_diagnostic_only",
  "poles_real_imag": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      4.0,
      0.0
    ]
  },
  "possible_common_factor": false,
  "cancellation_policy": "no_automatic_factor_cancellation"
}

rational_fit

Access
Registered in the Python Job
Arguments
model, predictor, response, optional noise and solver settings
Units
Units follow NUMERIC_API_v1 operation contract
Result
captured fit covariance, exact observations and qualified rational summary
Effect
Fit a rational response with shared Ceres and guarded domain
Types
struct,vector,vector,struct
Declared shape
paired_observations
Options
nonfinite=error,omit
Nonfinite values
error,omit
Units rule
physical
gxtxt_api_call("NUMERIC_API_v1", "rational_fit", args)
Recorded result · rational_fit

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.rational_model.v1",
    "kind": "rational",
    "recipe": {
      "numerator_degree": 1.0,
      "denominator_degree": 1.0,
      "x_unit": "1",
      "y_unit": "1",
      "parameters": [
        {
          "id": "a0",
          "unit": "1",
          "initial": 2.0,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        },
        {
          "id": "a1",
          "unit": "1",
          "initial": 0.5,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        },
        {
          "id": "b1",
          "unit": "1",
          "initial": 0.25,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        }
      ],
      "domain": {
        "shape": [
          1,
          2
        ],
        "dtype": "float64",
        "values": [
          0.0,
          6.0
        ]
      },
      "pole_tolerance": 1e-10
    },
    "formula_model": {
      "kind": "expression",
      "expression": [
        "(a0+a1*x^1)/(1+b1*x^1)"
      ],
      "parameter_ids": [
        "a0",
        "a1",
        "b1"
      ],
      "parameter_units": [
        "1",
        "1",
        "1"
      ],
      "predictor_ids": [
        "x"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          2.0,
          0.5,
          0.25
        ]
      },
      "parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          2.0,
          0.5,
          0.25
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "480199c8c0a3c86a96597921ab8e5e762670fba65c8f92cd1b4ee620a7e56554",
      "binding_sha256": "94075c6348fdd1207abb5021113273285c1e705cc2b577f4fcb9332b9e47fd79",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            2.0,
            0.5,
            0.25
          ]
        },
        "lower_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            -Infinity,
            -Infinity,
            -Infinity
          ]
        },
        "upper_bounds": {
          "shape":
[…]

Result, preview

{
  "parameters": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      2.000000000022552,
      0.6999999996530155,
      0.2999999998432868
    ]
  },
  "predicted": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0434782608775475,
      2.0519480519538855,
      2.0599369085213635,
      2.067484662579164,
      2.0746268656728293,
      2.0813953488373222,
      2.087818696883079,
      2.0939226519322047,
      2.099730458218948,
      2.105263157892207,
      2.1105398457554823,
      2.1155778894441175
    ]
  },
  "residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -7.982059457845025e-12,
      -5.8335558605904225e-12,
      -4.013678278624866e-12,
      -2.4766855233337992e-12,
      -1.1874945471390674e-12,
      -1.127986593019159e-13,
      7.73159314348959e-13,
      1.497024726404561e-12,
      2.0761170560490427e-12,
      2.5290880500961066e-12,
      2.872813098520055e-12,
      3.1188385207769898e-12
    ]
  },
  "weighted_residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -7.982059457845025e-12,
      -5.8335558605904225e-12,
      -4.013678278624866e-12,
      -2.4766855233337992e-12,
      -1.1874945471390674e-12,
      -1.127986593019159e-13,
      7.73159314348959e-13,
      1.497024726404561e-12,
      2.0761170560490427e-12,
      2.5290880500961066e-12,
      2.872813098520055e-12,
      3.1188385207769898e-12
    ]
  },
  "objective": 3.443001511389815e-22,
  "sse": 3.443001511389815e-22,
  "rss": 3.443001511389815e-22,
  "rmse": 3.050476928324937e-12,
  "residual_rmse": 3.050476928324937e-12,
  "response_rmse": 2.933854764379883e-12,
  "r_squared": 1.0,
  "adjusted_r_squared": 1.0,
  "dof": 37.0,
  "rank": 3.0,
  "condition_number": 463.57435895541903,
  "scaled_condition_number": 410.4762549379598,
  "covariance": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      1.622873252687898e-23,
      -2.1188997103941394e-22,
      -9.530988232213563e-23,
      -2.1188997103941394e-22,
      3.2539439433800303e-21,
      1.469533743384959e-21,
      -9.530988232213563e-23,
      1.469533743384959e-21,
      6.637482373976143e-22
    ]
  },
  "standard_errors": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      4.028490105098805e-12,
      5.704335143888401e-11,
      2.5763311848394304e-11
    ]
  }
}

rational_evaluate

Access
Registered in the Python Job
Arguments
model, coordinates, optional explicit extrapolation and derivatives
Units
Units follow NUMERIC_API_v1 operation contract
Result
predictions, domain flags and whole-interval denominator guard
Effect
Evaluate retained rational parameters with pole-crossing protection
Types
struct,vector,struct
Declared shape
finite_query
Options
extrapolation=error,allow;jacobian=boolean;predictor_derivative=boolean
Nonfinite values
error
Units rule
physical
gxtxt_api_call("NUMERIC_API_v1", "rational_evaluate", args)
Recorded result · rational_evaluate

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.rational_model.v1",
    "kind": "rational",
    "recipe": {
      "numerator_degree": 1.0,
      "denominator_degree": 1.0,
      "x_unit": "1",
      "y_unit": "1",
      "parameters": [
        {
          "id": "a0",
          "unit": "1",
          "initial": 2.0,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        },
        {
          "id": "a1",
          "unit": "1",
          "initial": 0.5,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        },
        {
          "id": "b1",
          "unit": "1",
          "initial": 0.25,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        }
      ],
      "domain": {
        "shape": [
          1,
          2
        ],
        "dtype": "float64",
        "values": [
          0.0,
          6.0
        ]
      },
      "pole_tolerance": 1e-10
    },
    "formula_model": {
      "kind": "expression",
      "expression": [
        "(a0+a1*x^1)/(1+b1*x^1)"
      ],
      "parameter_ids": [
        "a0",
        "a1",
        "b1"
      ],
      "parameter_units": [
        "1",
        "1",
        "1"
      ],
      "predictor_ids": [
        "x"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          2.0,
          0.5,
          0.25
        ]
      },
      "parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          2.000000000022552,
          0.6999999996530155,
          0.2999999998432868
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "480199c8c0a3c86a96597921ab8e5e762670fba65c8f92cd1b4ee620a7e56554",
      "binding_sha256": "94075c6348fdd1207abb5021113273285c1e705cc2b577f4fcb9332b9e47fd79",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            2.0,
            0.5,
            0.25
          ]
        },
        "lower_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            -Infinity,
            -Infinity,
            -Infinity
          ]
        },
 
[…]

Result, preview

{
  "predicted": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0434782608775475,
      2.0519480519538855,
      2.0599369085213635,
      2.067484662579164,
      2.0746268656728293,
      2.0813953488373222,
      2.087818696883079,
      2.0939226519322047,
      2.099730458218948,
      2.105263157892207,
      2.1105398457554823,
      2.1155778894441175
    ]
  },
  "derivative_method": "not_requested",
  "source_sha256": "480199c8c0a3c86a96597921ab8e5e762670fba65c8f92cd1b4ee620a7e56554",
  "binding_sha256": "94075c6348fdd1207abb5021113273285c1e705cc2b577f4fcb9332b9e47fd79",
  "parameter_ids": [
    "a0",
    "a1",
    "b1"
  ],
  "predictor_ids": [
    "x"
  ],
  "schema": "gxtxt.rational_evaluation.v1",
  "query": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.6153846153846154,
      0.7307692307692308,
      0.8461538461538461,
      0.9615384615384616,
      1.076923076923077,
      1.1923076923076923,
      1.3076923076923077,
      1.4230769230769231,
      1.5384615384615385,
      1.653846153846154,
      1.7692307692307694
    ]
  },
  "points": {
    "shape": [
      40,
      2
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.6153846153846154,
      0.7307692307692308,
      0.8461538461538461,
      0.9615384615384616,
      1.076923076923077,
      1.1923076923076923,
      1.3076923076923077,
      1.4230769230769231,
      1.5384615384615385,
      1.653846153846154,
      1.7692307692307694
    ]
  },
  "domain": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      0.5,
      5.0
    ]
  },
  "is_extrapolated": {
    "shape": [
      40,
      1
    ],
    "dtype": "bool",
    "values": [
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false
    ]
  },
  "coordinate_units": [
    "1",
    "1"
  ],
  "domain_receipt": {
    "schema": "gxtxt.rational_domain.v1",
    "status": "safe",
    "reason": "Whole declared interval has a bounded nonzero denominator",
    "domain": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        0.0,
        6.0
      ]
    },
    "coordinate_unit": "1",
    "denominator_constant": 1.0,
    "numerator_degree": 1.0,
    "denominator_degree": 1.0,
    "denominator_coefficients_descending": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        0.2999999998432868,
        1.0
      ]
    },
    "denominator_coefficient_bound": 2.799999999059721,
    "relative_margin_lower_bound": 0.3571428572627907,
    "pole_tolerance": 1e-10,
    "interval_nodes": 1.0,
    "method": "bounded_binary64_Bernstein_sign_guard",
    "root_method": "Octave_roots_diagnostic_only",
    "poles_real_imag": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        -3.3333333350745913,
        0.0
      ]
    },
    "possible_common_factor": false,
    "cancellation_policy": "no_automatic_factor_cancellation"
  },
  "fit_performed": false
}

rational_model_state

Access
Registered in the Python Job
Arguments
validated retained rational model
Units
Units follow NUMERIC_API_v1 operation contract
Result
inert physical recipe, parameters, domains and identities
Effect
Capture rational physical recipe parameters and domain
Types
struct
Declared shape
retained_model
Nonfinite values
error
Units rule
physical
gxtxt_api_call("NUMERIC_API_v1", "rational_model_state", args)
Recorded result · rational_model_state

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.rational_model.v1",
    "kind": "rational",
    "recipe": {
      "numerator_degree": 1.0,
      "denominator_degree": 1.0,
      "x_unit": "1",
      "y_unit": "1",
      "parameters": [
        {
          "id": "a0",
          "unit": "1",
          "initial": 2.0,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        },
        {
          "id": "a1",
          "unit": "1",
          "initial": 0.5,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        },
        {
          "id": "b1",
          "unit": "1",
          "initial": 0.25,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        }
      ],
      "domain": {
        "shape": [
          1,
          2
        ],
        "dtype": "float64",
        "values": [
          0.0,
          6.0
        ]
      },
      "pole_tolerance": 1e-10
    },
    "formula_model": {
      "kind": "expression",
      "expression": [
        "(a0+a1*x^1)/(1+b1*x^1)"
      ],
      "parameter_ids": [
        "a0",
        "a1",
        "b1"
      ],
      "parameter_units": [
        "1",
        "1",
        "1"
      ],
      "predictor_ids": [
        "x"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          2.0,
          0.5,
          0.25
        ]
      },
      "parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          2.000000000022552,
          0.6999999996530155,
          0.2999999998432868
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "480199c8c0a3c86a96597921ab8e5e762670fba65c8f92cd1b4ee620a7e56554",
      "binding_sha256": "94075c6348fdd1207abb5021113273285c1e705cc2b577f4fcb9332b9e47fd79",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            2.0,
            0.5,
            0.25
          ]
        },
        "lower_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            -Infinity,
            -Infinity,
            -Infinity
          ]
        },
 
[…]

Result, preview

{
  "schema": "gxtxt.rational_state.v1",
  "recipe": {
    "numerator_degree": 1.0,
    "denominator_degree": 1.0,
    "x_unit": "1",
    "y_unit": "1",
    "parameters": [
      {
        "id": "a0",
        "unit": "1",
        "initial": 2.0,
        "lower": -Infinity,
        "upper": Infinity,
        "fixed": 0.0
      },
      {
        "id": "a1",
        "unit": "1",
        "initial": 0.5,
        "lower": -Infinity,
        "upper": Infinity,
        "fixed": 0.0
      },
      {
        "id": "b1",
        "unit": "1",
        "initial": 0.25,
        "lower": -Infinity,
        "upper": Infinity,
        "fixed": 0.0
      }
    ],
    "domain": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        0.0,
        6.0
      ]
    },
    "pole_tolerance": 1e-10
  },
  "parameters": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      2.000000000022552,
      0.6999999996530155,
      0.2999999998432868
    ]
  },
  "declaration_sha256": "92fdda0942c5c69c28f7775330a513fb63501f10b0044186051b9399666e3d56",
  "source_sha256": "480199c8c0a3c86a96597921ab8e5e762670fba65c8f92cd1b4ee620a7e56554",
  "binding_sha256": "94075c6348fdd1207abb5021113273285c1e705cc2b577f4fcb9332b9e47fd79",
  "observation_domain": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      0.5,
      5.0
    ]
  }
}

rational_model_restore

Access
Registered in the Python Job
Arguments
captured rational state
Units
Units follow NUMERIC_API_v1 operation contract
Result
validated model with exact physical parameters and identities
Effect
Restore rational state without fitting or changing its domain
Types
struct
Declared shape
retained_state
Nonfinite values
error
Units rule
physical
gxtxt_api_call("NUMERIC_API_v1", "rational_model_restore", args)
Recorded result · rational_model_restore

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.rational_state.v1",
    "recipe": {
      "numerator_degree": 1.0,
      "denominator_degree": 1.0,
      "x_unit": "1",
      "y_unit": "1",
      "parameters": [
        {
          "id": "a0",
          "unit": "1",
          "initial": 2.0,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        },
        {
          "id": "a1",
          "unit": "1",
          "initial": 0.5,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        },
        {
          "id": "b1",
          "unit": "1",
          "initial": 0.25,
          "lower": -Infinity,
          "upper": Infinity,
          "fixed": 0.0
        }
      ],
      "domain": {
        "shape": [
          1,
          2
        ],
        "dtype": "float64",
        "values": [
          0.0,
          6.0
        ]
      },
      "pole_tolerance": 1e-10
    },
    "parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        2.000000000022552,
        0.6999999996530155,
        0.2999999998432868
      ]
    },
    "declaration_sha256": "92fdda0942c5c69c28f7775330a513fb63501f10b0044186051b9399666e3d56",
    "source_sha256": "480199c8c0a3c86a96597921ab8e5e762670fba65c8f92cd1b4ee620a7e56554",
    "binding_sha256": "94075c6348fdd1207abb5021113273285c1e705cc2b577f4fcb9332b9e47fd79",
    "observation_domain": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        0.5,
        5.0
      ]
    }
  }
]

Result, preview

{
  "schema": "gxtxt.rational_model.v1",
  "kind": "rational",
  "recipe": {
    "numerator_degree": 1.0,
    "denominator_degree": 1.0,
    "x_unit": "1",
    "y_unit": "1",
    "parameters": [
      {
        "id": "a0",
        "unit": "1",
        "initial": 2.0,
        "lower": -Infinity,
        "upper": Infinity,
        "fixed": 0.0
      },
      {
        "id": "a1",
        "unit": "1",
        "initial": 0.5,
        "lower": -Infinity,
        "upper": Infinity,
        "fixed": 0.0
      },
      {
        "id": "b1",
        "unit": "1",
        "initial": 0.25,
        "lower": -Infinity,
        "upper": Infinity,
        "fixed": 0.0
      }
    ],
    "domain": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        0.0,
        6.0
      ]
    },
    "pole_tolerance": 1e-10
  },
  "formula_model": {
    "kind": "expression",
    "expression": [
      "(a0+a1*x^1)/(1+b1*x^1)"
    ],
    "parameter_ids": [
      "a0",
      "a1",
      "b1"
    ],
    "parameter_units": [
      "1",
      "1",
      "1"
    ],
    "predictor_ids": [
      "x"
    ],
    "response_units": [
      "1"
    ],
    "initial_parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        2.0,
        0.5,
        0.25
      ]
    },
    "parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        2.000000000022552,
        0.6999999996530155,
        0.2999999998432868
      ]
    },
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "480199c8c0a3c86a96597921ab8e5e762670fba65c8f92cd1b4ee620a7e56554",
    "binding_sha256": "94075c6348fdd1207abb5021113273285c1e705cc2b577f4fcb9332b9e47fd79",
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          2.0,
          0.5,
          0.25
        ]
      },
      "lower_bounds": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          -Infinity,
          -Infinity,
          -Infinity
        ]
      },
      "upper_bounds": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          Infinity,
          Infinity,
          Infinity
        ]
      },
      "fixed_mask": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          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": "(a0+a1*x^1)/(1+b1*x^1)",
        "predictor_ids": [
          "x"
        ],
        "predictor_units": [
          "1"
        ],
        "response_unit": "1",
        "parameters": [
          {
            "id": "a0",
            "unit": "1",
            "initial": 2.0,
            "lower": -Infinity,
            "upper": Infinity,
            "fixed": 0.0
          },
          {
            "id": "a1",
            "unit": "1",
            "initial": 0.5,
            "lower": -Infinity,
            "upper": Infinity,
            "fixed": 0.
[…]

surface_model_state

Access
Registered in the Python Job
Arguments
validated fitted surface model
Units
Units follow NUMERIC_API_v1 operation contract
Result
inert complete recipe parameters qualified domain and identities
Effect
Capture physical surface recipe parameters and domain without fitting
Types
struct
Declared shape
retained_surface
Nonfinite values
error
Units rule
physical
gxtxt_api_call("NUMERIC_API_v1", "surface_model_state", args)
Recorded result · surface_model_state

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.surface_model.v1",
    "kind": "surface",
    "recipe": {
      "predictor_ids": [
        "x",
        "y"
      ],
      "predictor_units": [
        "1",
        "1"
      ],
      "response_unit": "1",
      "expression": "a*x+b*y+c",
      "parameters": [
        {
          "id": "a",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "b",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "c",
          "initial": 1.0,
          "unit": "1"
        }
      ]
    },
    "formula_model": {
      "kind": "expression",
      "expression": [
        "a*x+b*y+c"
      ],
      "parameter_ids": [
        "a",
        "b",
        "c"
      ],
      "parameter_units": [
        "1",
        "1",
        "1"
      ],
      "predictor_ids": [
        "x",
        "y"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          1.0,
          1.0
        ]
      },
      "parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.999999999999963,
          2.999999999999926,
          1.0
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "bf2611ff4c6f101b83a7302acbcac1063f64af1a2a706db541829b84a207812b",
      "binding_sha256": "444dbbb41581bc0967b0584b692731d1a1bf884367e98da38877fbcecaf610da",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            1.0,
            1.0,
            1.0
          ]
        },
        "lower_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            -Infinity,
            -Infinity,
            -Infinity
          ]
        },
        "upper_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            Infinity,
            Infinity,
            Infinity
          ]
        },
        "fixed_mask": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            0.0,
            0.0,

[…]

Result, preview

{
  "schema": "gxtxt.surface_state.v1",
  "recipe": {
    "predictor_ids": [
      "x",
      "y"
    ],
    "predictor_units": [
      "1",
      "1"
    ],
    "response_unit": "1",
    "expression": "a*x+b*y+c",
    "parameters": [
      {
        "id": "a",
        "initial": 1.0,
        "unit": "1"
      },
      {
        "id": "b",
        "initial": 1.0,
        "unit": "1"
      },
      {
        "id": "c",
        "initial": 1.0,
        "unit": "1"
      }
    ]
  },
  "parameters": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.999999999999963,
      2.999999999999926,
      1.0
    ]
  },
  "observation_domain": {
    "bounds": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        -2.0,
        -1.0,
        2.0,
        1.0
      ]
    },
    "meaning": "axis_bounds_not_observation_coverage"
  },
  "declaration_sha256": "59327649ebcd1b3b7be407df2d3b968e9e2c4fb922166979f94df145a82e8a55",
  "source_sha256": "bf2611ff4c6f101b83a7302acbcac1063f64af1a2a706db541829b84a207812b",
  "binding_sha256": "444dbbb41581bc0967b0584b692731d1a1bf884367e98da38877fbcecaf610da"
}

surface_model_restore

Access
Registered in the Python Job
Arguments
versioned retained surface state
Units
Units follow NUMERIC_API_v1 operation contract
Result
validated physical model with exact parameters and identities
Effect
Restore and validate exact physical surface identities without fitting
Types
struct
Declared shape
retained_surface_state
Nonfinite values
error
Units rule
physical
gxtxt_api_call("NUMERIC_API_v1", "surface_model_restore", args)
Recorded result · surface_model_restore

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.surface_state.v1",
    "recipe": {
      "predictor_ids": [
        "x",
        "y"
      ],
      "predictor_units": [
        "1",
        "1"
      ],
      "response_unit": "1",
      "expression": "a*x+b*y+c",
      "parameters": [
        {
          "id": "a",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "b",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "c",
          "initial": 1.0,
          "unit": "1"
        }
      ]
    },
    "parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        1.999999999999963,
        2.999999999999926,
        1.0
      ]
    },
    "observation_domain": {
      "bounds": {
        "shape": [
          2,
          2
        ],
        "dtype": "float64",
        "values": [
          -2.0,
          -1.0,
          2.0,
          1.0
        ]
      },
      "meaning": "axis_bounds_not_observation_coverage"
    },
    "declaration_sha256": "59327649ebcd1b3b7be407df2d3b968e9e2c4fb922166979f94df145a82e8a55",
    "source_sha256": "bf2611ff4c6f101b83a7302acbcac1063f64af1a2a706db541829b84a207812b",
    "binding_sha256": "444dbbb41581bc0967b0584b692731d1a1bf884367e98da38877fbcecaf610da"
  }
]

Result, preview

{
  "schema": "gxtxt.surface_model.v1",
  "kind": "surface",
  "recipe": {
    "predictor_ids": [
      "x",
      "y"
    ],
    "predictor_units": [
      "1",
      "1"
    ],
    "response_unit": "1",
    "expression": "a*x+b*y+c",
    "parameters": [
      {
        "id": "a",
        "initial": 1.0,
        "unit": "1"
      },
      {
        "id": "b",
        "initial": 1.0,
        "unit": "1"
      },
      {
        "id": "c",
        "initial": 1.0,
        "unit": "1"
      }
    ]
  },
  "formula_model": {
    "kind": "expression",
    "expression": [
      "a*x+b*y+c"
    ],
    "parameter_ids": [
      "a",
      "b",
      "c"
    ],
    "parameter_units": [
      "1",
      "1",
      "1"
    ],
    "predictor_ids": [
      "x",
      "y"
    ],
    "response_units": [
      "1"
    ],
    "initial_parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        1.0,
        1.0
      ]
    },
    "parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        1.999999999999963,
        2.999999999999926,
        1.0
      ]
    },
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "bf2611ff4c6f101b83a7302acbcac1063f64af1a2a706db541829b84a207812b",
    "binding_sha256": "444dbbb41581bc0967b0584b692731d1a1bf884367e98da38877fbcecaf610da",
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          1.0,
          1.0
        ]
      },
      "lower_bounds": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          -Infinity,
          -Infinity,
          -Infinity
        ]
      },
      "upper_bounds": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          Infinity,
          Infinity,
          Infinity
        ]
      },
      "fixed_mask": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0,
          0.0
        ]
      }
    },
    "input_constraints": {
      "domain": "finite_real",
      "translation_policy": "forbid_translation",
      "required_x_unit": "",
      "required_y_unit": "1"
    },
    "formula_declaration": {
      "schema": "gxtxt.fit_formula_declaration.v1",
      "recipe": {
        "predictor_ids": [
          "x",
          "y"
        ],
        "predictor_units": [
          "1",
          "1"
        ],
        "response_unit": "1",
        "expression": "a*x+b*y+c",
        "parameters": [
          {
            "id": "a",
            "initial": 1.0,
            "unit": "1"
          },
          {
            "id": "b",
            "initial": 1.0,
            "unit": "1"
          },
          {
            "id": "c",
            "initial": 1.0,
            "unit": "1"
          }
        ]
      },
      "original_expression": "a*x+b*y+c",
      "effective_expression": "a*x+b*y+c",
      "dimensional_receipt": {
        "schema": "gxtxt.expression_dimensions.v1",
        "expression": "a*x+b*y+c",
        "symbol_units": {
          "x": "1",
          "y": "1",
          "a": "1",
          "b": "1",
          "c": "1"
        },
        "symbol_scales": {
          "x": 1.0,
          "y": 1.0
[…]

surface_model_compose

Access
Registered in the Python Job
Arguments
two-predictor formula recipe with physical units and parameters
Units
Units follow NUMERIC_API_v1 operation contract
Result
versioned surface declaration through the shared dimensional compiler
Effect
Declare a physical two-predictor response model
Types
struct
Declared shape
data_only
Nonfinite values
error
Units rule
dimensional
gxtxt_api_call("NUMERIC_API_v1", "surface_model_compose", args)
Recorded result · surface_model_compose

Download the example script (ZIP).

Example operands, preview

[
  {
    "predictor_ids": [
      "x",
      "y"
    ],
    "predictor_units": [
      "1",
      "1"
    ],
    "response_unit": "1",
    "expression": "a*x+b*y+c",
    "parameters": [
      {
        "id": "a",
        "initial": 1.0,
        "unit": "1"
      },
      {
        "id": "b",
        "initial": 1.0,
        "unit": "1"
      },
      {
        "id": "c",
        "initial": 1.0,
        "unit": "1"
      }
    ]
  }
]

Result, preview

{
  "schema": "gxtxt.surface_model.v1",
  "kind": "surface",
  "recipe": {
    "predictor_ids": [
      "x",
      "y"
    ],
    "predictor_units": [
      "1",
      "1"
    ],
    "response_unit": "1",
    "expression": "a*x+b*y+c",
    "parameters": [
      {
        "id": "a",
        "initial": 1.0,
        "unit": "1"
      },
      {
        "id": "b",
        "initial": 1.0,
        "unit": "1"
      },
      {
        "id": "c",
        "initial": 1.0,
        "unit": "1"
      }
    ]
  },
  "formula_model": {
    "kind": "expression",
    "expression": [
      "a*x+b*y+c"
    ],
    "parameter_ids": [
      "a",
      "b",
      "c"
    ],
    "parameter_units": [
      "1",
      "1",
      "1"
    ],
    "predictor_ids": [
      "x",
      "y"
    ],
    "response_units": [
      "1"
    ],
    "initial_parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        1.0,
        1.0
      ]
    },
    "parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        1.0,
        1.0
      ]
    },
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "bf2611ff4c6f101b83a7302acbcac1063f64af1a2a706db541829b84a207812b",
    "binding_sha256": "444dbbb41581bc0967b0584b692731d1a1bf884367e98da38877fbcecaf610da",
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          1.0,
          1.0
        ]
      },
      "lower_bounds": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          -Infinity,
          -Infinity,
          -Infinity
        ]
      },
      "upper_bounds": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          Infinity,
          Infinity,
          Infinity
        ]
      },
      "fixed_mask": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0,
          0.0
        ]
      }
    },
    "input_constraints": {
      "domain": "finite_real",
      "translation_policy": "forbid_translation",
      "required_x_unit": "",
      "required_y_unit": "1"
    },
    "formula_declaration": {
      "schema": "gxtxt.fit_formula_declaration.v1",
      "recipe": {
        "predictor_ids": [
          "x",
          "y"
        ],
        "predictor_units": [
          "1",
          "1"
        ],
        "response_unit": "1",
        "expression": "a*x+b*y+c",
        "parameters": [
          {
            "id": "a",
            "initial": 1.0,
            "unit": "1"
          },
          {
            "id": "b",
            "initial": 1.0,
            "unit": "1"
          },
          {
            "id": "c",
            "initial": 1.0,
            "unit": "1"
          }
        ]
      },
      "original_expression": "a*x+b*y+c",
      "effective_expression": "a*x+b*y+c",
      "dimensional_receipt": {
        "schema": "gxtxt.expression_dimensions.v1",
        "expression": "a*x+b*y+c",
        "symbol_units": {
          "x": "1",
          "y": "1",
          "a": "1",
          "b": "1",
          "c": "1"
        },
        "symbol_scales": {
          "x": 1.0,
          "y": 1.0,
          "a": 1.0,
      
[…]

surface_residuals

Access
Registered in the Python Job
Arguments
model, x, y, z, explicit layout and omission/extrapolation settings
Units
Units follow NUMERIC_API_v1 operation contract
Result
descriptive physical residuals, original indices and captured interpretation summary
Effect
Evaluate observed surface residuals without refitting or training inference
Types
struct,vector,matrix,struct
Declared shape
explicit_points_or_grid_yx
Options
layout=points,grid_yx;nonfinite=error,omit;extrapolation=error,allow
Nonfinite values
error,omit
Units rule
physical
gxtxt_api_call("NUMERIC_API_v1", "surface_residuals", args)
Recorded result · surface_residuals

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.surface_model.v1",
    "kind": "surface",
    "recipe": {
      "predictor_ids": [
        "x",
        "y"
      ],
      "predictor_units": [
        "1",
        "1"
      ],
      "response_unit": "1",
      "expression": "a*x+b*y+c",
      "parameters": [
        {
          "id": "a",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "b",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "c",
          "initial": 1.0,
          "unit": "1"
        }
      ]
    },
    "formula_model": {
      "kind": "expression",
      "expression": [
        "a*x+b*y+c"
      ],
      "parameter_ids": [
        "a",
        "b",
        "c"
      ],
      "parameter_units": [
        "1",
        "1",
        "1"
      ],
      "predictor_ids": [
        "x",
        "y"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          1.0,
          1.0
        ]
      },
      "parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.999999999999963,
          2.999999999999926,
          1.0
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "bf2611ff4c6f101b83a7302acbcac1063f64af1a2a706db541829b84a207812b",
      "binding_sha256": "444dbbb41581bc0967b0584b692731d1a1bf884367e98da38877fbcecaf610da",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            1.0,
            1.0,
            1.0
          ]
        },
        "lower_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            -Infinity,
            -Infinity,
            -Infinity
          ]
        },
        "upper_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            Infinity,
            Infinity,
            Infinity
          ]
        },
        "fixed_mask": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            0.0,
            0.0,

[…]

Result, preview

{
  "n": 24.0,
  "sse": 1.351443962312297e-25,
  "mse": 5.631016509634571e-27,
  "rmse": 7.504009934451427e-14,
  "mae": 6.102525892022943e-14,
  "max_abs_error": 1.4832579608992091e-13,
  "r2": 1.0,
  "response_variance": 12.466666666666669,
  "max_relative_error": 7.438494264988543e-14,
  "rms_relative_error": 2.959877104113459e-14,
  "relative_n": 23.0,
  "relative_floor": 0.0,
  "operation": "surface_residuals",
  "model": {
    "schema": "gxtxt.surface_model.v1",
    "kind": "surface",
    "recipe": {
      "predictor_ids": [
        "x",
        "y"
      ],
      "predictor_units": [
        "1",
        "1"
      ],
      "response_unit": "1",
      "expression": "a*x+b*y+c",
      "parameters": [
        {
          "id": "a",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "b",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "c",
          "initial": 1.0,
          "unit": "1"
        }
      ]
    },
    "formula_model": {
      "kind": "expression",
      "expression": [
        "a*x+b*y+c"
      ],
      "parameter_ids": [
        "a",
        "b",
        "c"
      ],
      "parameter_units": [
        "1",
        "1",
        "1"
      ],
      "predictor_ids": [
        "x",
        "y"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          1.0,
          1.0
        ]
      },
      "parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.999999999999963,
          2.999999999999926,
          1.0
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "bf2611ff4c6f101b83a7302acbcac1063f64af1a2a706db541829b84a207812b",
      "binding_sha256": "444dbbb41581bc0967b0584b692731d1a1bf884367e98da38877fbcecaf610da",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            1.0,
            1.0,
            1.0
          ]
        },
        "lower_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            -Infinity,
            -Infinity,
            -Infinity
          ]
        },
        "upper_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            Infinity,
            Infinity,
            Infinity
          ]
        },
        "fixed_mask": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            0.0,
            0.0,
            0.0
          ]
        }
      },
      "input_constraints": {
        "domain": "finite_real",
        "translation_policy": "forbid_translation",
        "required_x_unit": "",
        "required_y_unit": "1"
      },
      "formula_declaration": {
        "schema": "gxtxt.fit_formula_declaration.v1",
        "recipe": {
          "predictor_ids": [
            "x",
            "y"
          ],
          "predictor_units": [
            "1",
            "1"
          ],
          "response_unit": "1",
          "expression": "a*x+b*y+c",
          "para
[…]

surface_fit

Access
Registered in the Python Job
Arguments
model, x, y, z, explicit layout and solver options
Units
Units follow NUMERIC_API_v1 operation contract
Result
shared solver result, original linear indices, declared parameter covariance and surface input receipt
Effect
Fit exact point or gridded response observations without interpolation
Types
struct,vector,matrix,struct
Declared shape
explicit_points_or_grid_yx
Options
layout=points,grid_yx;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
physical
gxtxt_api_call("NUMERIC_API_v1", "surface_fit", args)
Recorded result · surface_fit

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.surface_model.v1",
    "kind": "surface",
    "recipe": {
      "predictor_ids": [
        "x",
        "y"
      ],
      "predictor_units": [
        "1",
        "1"
      ],
      "response_unit": "1",
      "expression": "a*x+b*y+c",
      "parameters": [
        {
          "id": "a",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "b",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "c",
          "initial": 1.0,
          "unit": "1"
        }
      ]
    },
    "formula_model": {
      "kind": "expression",
      "expression": [
        "a*x+b*y+c"
      ],
      "parameter_ids": [
        "a",
        "b",
        "c"
      ],
      "parameter_units": [
        "1",
        "1",
        "1"
      ],
      "predictor_ids": [
        "x",
        "y"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          1.0,
          1.0
        ]
      },
      "parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          1.0,
          1.0
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "bf2611ff4c6f101b83a7302acbcac1063f64af1a2a706db541829b84a207812b",
      "binding_sha256": "444dbbb41581bc0967b0584b692731d1a1bf884367e98da38877fbcecaf610da",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            1.0,
            1.0,
            1.0
          ]
        },
        "lower_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            -Infinity,
            -Infinity,
            -Infinity
          ]
        },
        "upper_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            Infinity,
            Infinity,
            Infinity
          ]
        },
        "fixed_mask": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            0.0,
            0.0,
            0.0
          ]

[…]

Result, preview

{
  "parameters": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.999999999999963,
      2.999999999999926,
      1.0
    ]
  },
  "predicted": {
    "shape": [
      24,
      1
    ],
    "dtype": "float64",
    "values": [
      -5.999999999999852,
      -3.9999999999999014,
      -1.9999999999999507,
      0.0,
      -4.399999999999881,
      -2.399999999999931,
      -0.39999999999998037,
      1.5999999999999703,
      -2.799999999999911,
      -0.7999999999999603,
      1.19999999999999,
      3.1999999999999407
    ]
  },
  "residuals": {
    "shape": [
      24,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.4832579608992091e-13,
      -9.85878045867139e-14,
      -4.929390229335695e-14,
      0.0,
      -1.1901590823981678e-13,
      -6.88338275267597e-14,
      -1.9761969838327786e-14,
      2.9753977059954195e-14,
      -8.881784197001252e-14,
      -3.952393967665557e-14,
      9.992007221626409e-15,
      5.950795411990839e-14
    ]
  },
  "weighted_residuals": {
    "shape": [
      24,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.4832579608992091e-13,
      -9.85878045867139e-14,
      -4.929390229335695e-14,
      0.0,
      -1.1901590823981678e-13,
      -6.88338275267597e-14,
      -1.9761969838327786e-14,
      2.9753977059954195e-14,
      -8.881784197001252e-14,
      -3.952393967665557e-14,
      9.992007221626409e-15,
      5.950795411990839e-14
    ]
  },
  "objective": 1.351443962312297e-25,
  "sse": 1.351443962312297e-25,
  "rss": 1.351443962312297e-25,
  "rmse": 8.022124057618634e-14,
  "residual_rmse": 8.022124057618634e-14,
  "response_rmse": 7.504009934451427e-14,
  "r_squared": 1.0,
  "adjusted_r_squared": 1.0,
  "dof": 21.0,
  "rank": 3.0,
  "condition_number": 1.8330302779823362,
  "scaled_condition_number": 1.0,
  "covariance": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      1.4364838034782067e-28,
      0.0,
      0.0,
      0.0,
      4.826585579686776e-28,
      0.0,
      0.0,
      0.0,
      2.68143643315932e-28
    ]
  },
  "standard_errors": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.1985340226619378e-14,
      2.1969491527313e-14,
      1.637509216205918e-14
    ]
  }
}

surface_evaluate

Access
Registered in the Python Job
Arguments
model, Nx2 physical coordinates, optional domain/extrapolation/Jacobian options
Units
Units follow NUMERIC_API_v1 operation contract
Result
retained predictions and explicit domain flags without interpolation or fitting
Effect
Evaluate a retained physical surface without fitting
Types
struct,matrix,struct
Declared shape
Nx2_query_points
Options
extrapolation=error,allow;jacobian=boolean
Nonfinite values
error
Units rule
physical
gxtxt_api_call("NUMERIC_API_v1", "surface_evaluate", args)
Recorded result · surface_evaluate

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.surface_model.v1",
    "kind": "surface",
    "recipe": {
      "predictor_ids": [
        "x",
        "y"
      ],
      "predictor_units": [
        "1",
        "1"
      ],
      "response_unit": "1",
      "expression": "a*x+b*y+c",
      "parameters": [
        {
          "id": "a",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "b",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "c",
          "initial": 1.0,
          "unit": "1"
        }
      ]
    },
    "formula_model": {
      "kind": "expression",
      "expression": [
        "a*x+b*y+c"
      ],
      "parameter_ids": [
        "a",
        "b",
        "c"
      ],
      "parameter_units": [
        "1",
        "1",
        "1"
      ],
      "predictor_ids": [
        "x",
        "y"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          1.0,
          1.0
        ]
      },
      "parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.999999999999963,
          2.999999999999926,
          1.0
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "bf2611ff4c6f101b83a7302acbcac1063f64af1a2a706db541829b84a207812b",
      "binding_sha256": "444dbbb41581bc0967b0584b692731d1a1bf884367e98da38877fbcecaf610da",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            1.0,
            1.0,
            1.0
          ]
        },
        "lower_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            -Infinity,
            -Infinity,
            -Infinity
          ]
        },
        "upper_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            Infinity,
            Infinity,
            Infinity
          ]
        },
        "fixed_mask": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            0.0,
            0.0,

[…]

Result, preview

{
  "predicted": {
    "shape": [
      24,
      1
    ],
    "dtype": "float64",
    "values": [
      -5.999999999999852,
      -4.399999999999881,
      -2.799999999999911,
      -1.1999999999999398,
      0.4000000000000301,
      2.0,
      -3.9999999999999014,
      -2.399999999999931,
      -0.7999999999999603,
      0.8000000000000105,
      2.399999999999981,
      3.9999999999999503
    ]
  },
  "parameters": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.999999999999963,
      2.999999999999926,
      1.0
    ]
  },
  "backend": "numeric_ceres_expression_vm",
  "backend_version": "2.2.0",
  "evaluation_only": true,
  "derivative_method": "not_requested",
  "adapter_dataset_copy_bytes": 0.0,
  "adapter_dataset_view_bytes": 384.0,
  "prediction_bytes": 192.0,
  "jacobian_bytes": 0.0,
  "source_sha256": "bf2611ff4c6f101b83a7302acbcac1063f64af1a2a706db541829b84a207812b",
  "binding_sha256": "444dbbb41581bc0967b0584b692731d1a1bf884367e98da38877fbcecaf610da",
  "parameter_ids": [
    "a",
    "b",
    "c"
  ],
  "predictor_ids": [
    "x",
    "y"
  ],
  "coordinates": {
    "shape": [
      24,
      2
    ],
    "dtype": "float64",
    "values": [
      -2.0,
      -1.2,
      -0.3999999999999999,
      0.40000000000000036,
      1.2000000000000002,
      2.0,
      -2.0,
      -1.2,
      -0.3999999999999999,
      0.40000000000000036,
      1.2000000000000002,
      2.0
    ]
  },
  "points": {
    "shape": [
      24,
      3
    ],
    "dtype": "float64",
    "values": [
      -2.0,
      -1.2,
      -0.3999999999999999,
      0.40000000000000036,
      1.2000000000000002,
      2.0,
      -2.0,
      -1.2,
      -0.3999999999999999,
      0.40000000000000036,
      1.2000000000000002,
      2.0
    ]
  },
  "is_extrapolated": {
    "shape": [
      24,
      1
    ],
    "dtype": "bool",
    "values": [
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false
    ]
  },
  "coordinate_units": [
    "1",
    "1",
    "1"
  ]
}

surface_grid

Access
Registered in the Python Job
Arguments
model, x axis, y axis, optional domain/extrapolation/Jacobian options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Y-by-X model samples with units and bounds flags; no data interpolation
Effect
Sample a declared surface model without interpolating source data
Types
struct,vector,vector,struct
Declared shape
explicit_grid_axes
Options
extrapolation=error,allow;jacobian=boolean
Nonfinite values
error
Units rule
physical
gxtxt_api_call("NUMERIC_API_v1", "surface_grid", args)
Recorded result · surface_grid

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.surface_model.v1",
    "kind": "surface",
    "recipe": {
      "predictor_ids": [
        "x",
        "y"
      ],
      "predictor_units": [
        "1",
        "1"
      ],
      "response_unit": "1",
      "expression": "a*x+b*y+c",
      "parameters": [
        {
          "id": "a",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "b",
          "initial": 1.0,
          "unit": "1"
        },
        {
          "id": "c",
          "initial": 1.0,
          "unit": "1"
        }
      ]
    },
    "formula_model": {
      "kind": "expression",
      "expression": [
        "a*x+b*y+c"
      ],
      "parameter_ids": [
        "a",
        "b",
        "c"
      ],
      "parameter_units": [
        "1",
        "1",
        "1"
      ],
      "predictor_ids": [
        "x",
        "y"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          1.0,
          1.0
        ]
      },
      "parameters": {
        "shape": [
          3,
          1
        ],
        "dtype": "float64",
        "values": [
          1.999999999999963,
          2.999999999999926,
          1.0
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "bf2611ff4c6f101b83a7302acbcac1063f64af1a2a706db541829b84a207812b",
      "binding_sha256": "444dbbb41581bc0967b0584b692731d1a1bf884367e98da38877fbcecaf610da",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            1.0,
            1.0,
            1.0
          ]
        },
        "lower_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            -Infinity,
            -Infinity,
            -Infinity
          ]
        },
        "upper_bounds": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            Infinity,
            Infinity,
            Infinity
          ]
        },
        "fixed_mask": {
          "shape": [
            3,
            1
          ],
          "dtype": "float64",
          "values": [
            0.0,
            0.0,

[…]

Result, preview

{
  "predicted": {
    "shape": [
      24,
      1
    ],
    "dtype": "float64",
    "values": [
      -5.999999999999852,
      -3.9999999999999014,
      -1.9999999999999507,
      0.0,
      -4.399999999999881,
      -2.399999999999931,
      -0.39999999999998037,
      1.5999999999999703,
      -2.799999999999911,
      -0.7999999999999603,
      1.19999999999999,
      3.1999999999999407
    ]
  },
  "parameters": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.999999999999963,
      2.999999999999926,
      1.0
    ]
  },
  "backend": "numeric_ceres_expression_vm",
  "backend_version": "2.2.0",
  "evaluation_only": true,
  "derivative_method": "not_requested",
  "adapter_dataset_copy_bytes": 0.0,
  "adapter_dataset_view_bytes": 384.0,
  "prediction_bytes": 192.0,
  "jacobian_bytes": 0.0,
  "source_sha256": "bf2611ff4c6f101b83a7302acbcac1063f64af1a2a706db541829b84a207812b",
  "binding_sha256": "444dbbb41581bc0967b0584b692731d1a1bf884367e98da38877fbcecaf610da",
  "parameter_ids": [
    "a",
    "b",
    "c"
  ],
  "predictor_ids": [
    "x",
    "y"
  ],
  "coordinates": {
    "shape": [
      24,
      2
    ],
    "dtype": "float64",
    "values": [
      -2.0,
      -2.0,
      -2.0,
      -2.0,
      -1.2,
      -1.2,
      -1.2,
      -1.2,
      -0.3999999999999999,
      -0.3999999999999999,
      -0.3999999999999999,
      -0.3999999999999999
    ]
  },
  "points": {
    "shape": [
      24,
      3
    ],
    "dtype": "float64",
    "values": [
      -2.0,
      -2.0,
      -2.0,
      -2.0,
      -1.2,
      -1.2,
      -1.2,
      -1.2,
      -0.3999999999999999,
      -0.3999999999999999,
      -0.3999999999999999,
      -0.3999999999999999
    ]
  },
  "is_extrapolated": {
    "shape": [
      4,
      6
    ],
    "dtype": "bool",
    "values": [
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false
    ]
  },
  "coordinate_units": [
    "1",
    "1",
    "1"
  ]
}

complex_model_compose

Access
Registered in the Python Job
Arguments
data-only frequency, real/imaginary channel formulas and physical parameters
Units
Units follow NUMERIC_API_v1 operation contract
Result
versioned complex declaration using the shared dimensional compiler
Effect
Declare shared complex physical responses
Types
struct
Declared shape
bounded_complex_formula_and_units
Nonfinite values
error
Units rule
physical_channel_units
gxtxt_api_call("NUMERIC_API_v1", "complex_model_compose", args)
Recorded result · complex_model_compose

Download the example script (ZIP).

Example operands, preview

[
  {
    "predictor_id": "f",
    "predictor_unit": "Hz",
    "channels": [
      {
        "id": "z",
        "unit": "Ohm",
        "real_expression": "resistance",
        "imaginary_expression": "2*pi*f*inductance"
      }
    ],
    "parameters": [
      {
        "id": "resistance",
        "initial": 4.0,
        "unit": "Ohm"
      },
      {
        "id": "inductance",
        "initial": 0.004,
        "unit": "Ohm*s"
      }
    ]
  }
]

Result, preview

{
  "schema": "gxtxt.complex_model.v1",
  "kind": "complex_response",
  "recipe": {
    "predictor_id": "f",
    "predictor_unit": "Hz",
    "channels": [
      {
        "id": "z",
        "unit": "Ohm",
        "real_expression": "resistance",
        "imaginary_expression": "2*pi*f*inductance"
      }
    ],
    "parameters": [
      {
        "id": "resistance",
        "initial": 4.0,
        "unit": "Ohm"
      },
      {
        "id": "inductance",
        "initial": 0.004,
        "unit": "Ohm*s"
      }
    ]
  },
  "physical_model": {
    "kind": "expression",
    "expression": [
      "resistance",
      "2*pi*f*inductance"
    ],
    "parameter_ids": [
      "resistance",
      "inductance"
    ],
    "parameter_units": [
      "Ohm",
      "Ohm*s"
    ],
    "predictor_ids": [
      "f"
    ],
    "response_units": [
      "Ohm",
      "Ohm"
    ],
    "initial_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        4.0,
        0.004
      ]
    },
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        4.0,
        0.004
      ]
    },
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "14fbbdea81ea2af6810dc1bdbb5cac332b79129ccb01047080372d9ddba28f76",
    "binding_sha256": "8bcc1eb7c78e77e70dcaa9ef6373d5c18206463bfd67149d17424ecd4c7b8cb3",
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          4.0,
          0.004
        ]
      },
      "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
        ]
      }
    },
    "input_constraints": {
      "domain": "finite_real",
      "translation_policy": "forbid_translation",
      "required_x_unit": "Hz",
      "required_y_unit": ""
    },
    "formula_declaration": {
      "schema": "gxtxt.fit_formula_declaration.v1",
      "recipe": {
        "expression": [
          "resistance",
          "2*pi*f*inductance"
        ],
        "response_unit": [
          "Ohm",
          "Ohm"
        ],
        "predictor_ids": [
          "f"
        ],
        "predictor_units": [
          "Hz"
        ],
        "parameters": [
          {
            "id": "resistance",
            "initial": 4.0,
            "unit": "Ohm"
          },
          {
            "id": "inductance",
            "initial": 0.004,
            "unit": "Ohm*s"
          }
        ]
      },
      "original_expression": [
        "resistance",
        "2*pi*f*inductance"
      ],
      "effective_expression": [
        "resistance",
        "2*pi*f*inductance"
      ],
      "dimensional_receipts": [
        {
          "schema": "gxtxt.expression_dimensions.v1",
          "expression": "resistance",
          "symbol_units": {
            "f": "Hz",
            "resistance": "Ohm",
            "inductance": "Ohm*s"
          },
          "symbol_scales":
[…]

complex_fit

Access
Registered in the Python Job
Arguments
model, frequencies, complex observations, covariance contract, optional solver options
Units
Units follow NUMERIC_API_v1 operation contract
Result
shared parameters/covariance and captured Cartesian metric; phase diagnostics are separate
Effect
Fit complex channels through shared real Ceres owner
Types
struct,float64,complex128,struct
Declared shape
finite_matched_rows_absolute_covariance
Nonfinite values
error
Units rule
physical_parameters_dimensionless_objective
gxtxt_api_call("NUMERIC_API_v1", "complex_fit", args)
Recorded result · complex_fit

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.complex_model.v1",
    "kind": "complex_response",
    "recipe": {
      "predictor_id": "f",
      "predictor_unit": "Hz",
      "channels": [
        {
          "id": "z",
          "unit": "Ohm",
          "real_expression": "resistance",
          "imaginary_expression": "2*pi*f*inductance"
        }
      ],
      "parameters": [
        {
          "id": "resistance",
          "initial": 4.0,
          "unit": "Ohm"
        },
        {
          "id": "inductance",
          "initial": 0.004,
          "unit": "Ohm*s"
        }
      ]
    },
    "physical_model": {
      "kind": "expression",
      "expression": [
        "resistance",
        "2*pi*f*inductance"
      ],
      "parameter_ids": [
        "resistance",
        "inductance"
      ],
      "parameter_units": [
        "Ohm",
        "Ohm*s"
      ],
      "predictor_ids": [
        "f"
      ],
      "response_units": [
        "Ohm",
        "Ohm"
      ],
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          4.0,
          0.004
        ]
      },
      "parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          4.0,
          0.004
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "14fbbdea81ea2af6810dc1bdbb5cac332b79129ccb01047080372d9ddba28f76",
      "binding_sha256": "8bcc1eb7c78e77e70dcaa9ef6373d5c18206463bfd67149d17424ecd4c7b8cb3",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            4.0,
            0.004
          ]
        },
        "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
          ]
        }
      },
      "input_constraints": {
        "
[…]

Result, preview

{
  "parameters": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      4.999999999999964,
      0.004999999999999963
    ]
  },
  "predicted": {
    "shape": [
      32,
      1
    ],
    "dtype": "complex128",
    "values": [
      "(4.999999999999964+3.14159265358977j)",
      "(4.999999999999964+4.053667940115832j)",
      "(4.999999999999964+4.965743226641894j)",
      "(4.999999999999964+5.877818513167957j)",
      "(4.999999999999964+6.789893799694018j)",
      "(4.999999999999964+7.701969086220081j)",
      "(4.999999999999964+8.614044372746143j)",
      "(4.999999999999964+9.526119659272206j)",
      "(4.999999999999964+10.438194945798267j)",
      "(4.999999999999964+11.350270232324329j)",
      "(4.999999999999964+12.26234551885039j)",
      "(4.999999999999964+13.174420805376455j)"
    ]
  },
  "residuals": {
    "shape": [
      32,
      1
    ],
    "dtype": "complex128",
    "values": [
      "(3.6415315207705135e-14+2.3092638912203256e-14j)",
      "(3.6415315207705135e-14+3.019806626980426e-14j)",
      "(3.6415315207705135e-14+3.730349362740526e-14j)",
      "(3.6415315207705135e-14+4.440892098500626e-14j)",
      "(3.6415315207705135e-14+5.062616992290714e-14j)",
      "(3.6415315207705135e-14+5.684341886080802e-14j)",
      "(3.6415315207705135e-14+6.394884621840902e-14j)",
      "(3.6415315207705135e-14+7.105427357601002e-14j)",
      "(3.6415315207705135e-14+7.815970093361102e-14j)",
      "(3.6415315207705135e-14+8.348877145181177e-14j)",
      "(3.6415315207705135e-14+9.237055564881302e-14j)",
      "(3.6415315207705135e-14+9.947598300641403e-14j)"
    ]
  },
  "weighted_residuals": {
    "shape": [
      32,
      2
    ],
    "dtype": "float64",
    "values": [
      3.623767952376511e-13,
      3.623767952376511e-13,
      3.623767952376511e-13,
      3.623767952376511e-13,
      3.623767952376511e-13,
      3.623767952376511e-13,
      3.623767952376511e-13,
      3.623767952376511e-13,
      3.623767952376511e-13,
      3.623767952376511e-13,
      3.623767952376511e-13,
      3.623767952376511e-13
    ]
  },
  "objective": 6.997099041646851e-23,
  "sse": 6.997099041646851e-23,
  "rss": 6.997099041646851e-23,
  "rmse": 1.0623390991373441e-12,
  "residual_rmse": NaN,
  "response_rmse": 1.0456083039347577e-12,
  "r_squared": NaN,
  "adjusted_r_squared": NaN,
  "dof": 62.0,
  "rank": 2.0,
  "condition_number": 3844.338259673896,
  "scaled_condition_number": 1.0000000000000002,
  "covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0003125000000000001,
      0.0,
      0.0,
      2.114495834845211e-11
    ]
  },
  "standard_errors": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.01767766952966369,
      4.59836474721744e-06
    ]
  }
}
Negative test or attempted call · complex_fit

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.complex_model.v1",
    "kind": "complex_response",
    "recipe": {
      "predictor_id": "f",
      "predictor_unit": "Hz",
      "channels": [
        {
          "id": "z",
          "unit": "Ohm",
          "real_expression": "resistance",
          "imaginary_expression": "2*pi*f*inductance"
        }
      ],
      "parameters": [
        {
          "id": "resistance",
          "initial": 4.0,
          "unit": "Ohm"
        },
        {
          "id": "inductance",
          "initial": 0.004,
          "unit": "Ohm*s"
        }
      ]
    },
    "physical_model": {
      "kind": "expression",
      "expression": [
        "resistance",
        "2*pi*f*inductance"
      ],
      "parameter_ids": [
        "resistance",
        "inductance"
      ],
      "parameter_units": [
        "Ohm",
        "Ohm*s"
      ],
      "predictor_ids": [
        "f"
      ],
      "response_units": [
        "Ohm",
        "Ohm"
      ],
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          4.0,
          0.004
        ]
      },
      "parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          4.0,
          0.004
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "14fbbdea81ea2af6810dc1bdbb5cac332b79129ccb01047080372d9ddba28f76",
      "binding_sha256": "8bcc1eb7c78e77e70dcaa9ef6373d5c18206463bfd67149d17424ecd4c7b8cb3",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            4.0,
            0.004
          ]
        },
        "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
          ]
        }
      },
      "input_constraints": {
        "
[…]

Result, preview

"GXTXT:Numeric:Complex: Unknown field or invalid complex covariance"

complex_evaluate

Access
Registered in the Python Job
Arguments
model, frequencies, optional derivative or Jacobian request
Units
Units follow NUMERIC_API_v1 operation contract
Result
complex channels, magnitude, principal phase and real component derivatives without fitting
Effect
Evaluate retained complex response and real component derivatives
Types
struct,float64
Declared shape
positive_frequency_rows
Nonfinite values
error
Units rule
physical_channel_units
gxtxt_api_call("NUMERIC_API_v1", "complex_evaluate", args)
Recorded result · complex_evaluate

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.complex_model.v1",
    "kind": "complex_response",
    "recipe": {
      "predictor_id": "f",
      "predictor_unit": "Hz",
      "channels": [
        {
          "id": "z",
          "unit": "Ohm",
          "real_expression": "resistance",
          "imaginary_expression": "2*pi*f*inductance"
        }
      ],
      "parameters": [
        {
          "id": "resistance",
          "initial": 4.0,
          "unit": "Ohm"
        },
        {
          "id": "inductance",
          "initial": 0.004,
          "unit": "Ohm*s"
        }
      ]
    },
    "physical_model": {
      "kind": "expression",
      "expression": [
        "resistance",
        "2*pi*f*inductance"
      ],
      "parameter_ids": [
        "resistance",
        "inductance"
      ],
      "parameter_units": [
        "Ohm",
        "Ohm*s"
      ],
      "predictor_ids": [
        "f"
      ],
      "response_units": [
        "Ohm",
        "Ohm"
      ],
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          4.0,
          0.004
        ]
      },
      "parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          4.999999999999964,
          0.004999999999999963
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "14fbbdea81ea2af6810dc1bdbb5cac332b79129ccb01047080372d9ddba28f76",
      "binding_sha256": "8bcc1eb7c78e77e70dcaa9ef6373d5c18206463bfd67149d17424ecd4c7b8cb3",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            4.0,
            0.004
          ]
        },
        "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
          ]
        }
      },
      "in
[…]

Result, preview

{
  "predicted": {
    "shape": [
      32,
      1
    ],
    "dtype": "complex128",
    "values": [
      "(4.999999999999964+3.14159265358977j)",
      "(4.999999999999964+4.053667940115832j)",
      "(4.999999999999964+4.965743226641894j)",
      "(4.999999999999964+5.877818513167957j)",
      "(4.999999999999964+6.789893799694018j)",
      "(4.999999999999964+7.701969086220081j)",
      "(4.999999999999964+8.614044372746143j)",
      "(4.999999999999964+9.526119659272206j)",
      "(4.999999999999964+10.438194945798267j)",
      "(4.999999999999964+11.350270232324329j)",
      "(4.999999999999964+12.26234551885039j)",
      "(4.999999999999964+13.174420805376455j)"
    ]
  },
  "parameters": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      4.999999999999964,
      0.004999999999999963
    ]
  },
  "backend": "numeric_ceres_expression_vm",
  "backend_version": "2.2.0",
  "evaluation_only": true,
  "derivative_method": "not_requested",
  "adapter_dataset_copy_bytes": 0.0,
  "adapter_dataset_view_bytes": 256.0,
  "prediction_bytes": 512.0,
  "jacobian_bytes": 0.0,
  "source_sha256": "14fbbdea81ea2af6810dc1bdbb5cac332b79129ccb01047080372d9ddba28f76",
  "binding_sha256": "8bcc1eb7c78e77e70dcaa9ef6373d5c18206463bfd67149d17424ecd4c7b8cb3",
  "parameter_ids": [
    "resistance",
    "inductance"
  ],
  "predictor_ids": [
    "f"
  ],
  "component_values": {
    "shape": [
      32,
      2
    ],
    "dtype": "float64",
    "values": [
      4.999999999999964,
      4.999999999999964,
      4.999999999999964,
      4.999999999999964,
      4.999999999999964,
      4.999999999999964,
      4.999999999999964,
      4.999999999999964,
      4.999999999999964,
      4.999999999999964,
      4.999999999999964,
      4.999999999999964
    ]
  },
  "magnitude": {
    "shape": [
      32,
      1
    ],
    "dtype": "float64",
    "values": [
      5.90504906000694,
      6.436786758058913,
      7.046886248048814,
      7.716783687116,
      8.432239193187234,
      9.182610075849318,
      9.960008054998708,
      10.75857591704274,
      11.573932509155568,
      12.402767205216238,
      13.24254951373299,
      14.091322278520765
    ]
  },
  "phase_radians": {
    "shape": [
      32,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5609821161086237,
      0.6812516311978887,
      0.7819607239959905,
      0.8659217004784157,
      0.9360636157617249,
      0.994994510429509,
      1.0448777886879883,
      1.0874491366975807,
      1.1240812600999524,
      1.1558554315369327,
      1.1836248198372077,
      1.2080659103458022
    ]
  },
  "phase_valid": {
    "shape": [
      32,
      1
    ],
    "dtype": "bool",
    "values": [
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      true
    ]
  }
}

complex_residuals

Access
Registered in the Python Job
Arguments
model, frequencies, observations, absolute Cartesian covariance
Units
Units follow NUMERIC_API_v1 operation contract
Result
physical residuals and bounded whitened diagnostics without fitting or parameter inference
Effect
Evaluate captured complex residuals without fitting or parameter inference
Types
struct,float64,complex128,struct
Declared shape
finite_matched_rows_absolute_covariance
Nonfinite values
error
Units rule
physical_channels_dimensionless_objective
gxtxt_api_call("NUMERIC_API_v1", "complex_residuals", args)
Recorded result · complex_residuals

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.complex_model.v1",
    "kind": "complex_response",
    "recipe": {
      "predictor_id": "f",
      "predictor_unit": "Hz",
      "channels": [
        {
          "id": "z",
          "unit": "Ohm",
          "real_expression": "resistance",
          "imaginary_expression": "2*pi*f*inductance"
        }
      ],
      "parameters": [
        {
          "id": "resistance",
          "initial": 4.0,
          "unit": "Ohm"
        },
        {
          "id": "inductance",
          "initial": 0.004,
          "unit": "Ohm*s"
        }
      ]
    },
    "physical_model": {
      "kind": "expression",
      "expression": [
        "resistance",
        "2*pi*f*inductance"
      ],
      "parameter_ids": [
        "resistance",
        "inductance"
      ],
      "parameter_units": [
        "Ohm",
        "Ohm*s"
      ],
      "predictor_ids": [
        "f"
      ],
      "response_units": [
        "Ohm",
        "Ohm"
      ],
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          4.0,
          0.004
        ]
      },
      "parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          4.999999999999964,
          0.004999999999999963
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "14fbbdea81ea2af6810dc1bdbb5cac332b79129ccb01047080372d9ddba28f76",
      "binding_sha256": "8bcc1eb7c78e77e70dcaa9ef6373d5c18206463bfd67149d17424ecd4c7b8cb3",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            4.0,
            0.004
          ]
        },
        "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
          ]
        }
      },
      "in
[…]

Result, preview

{
  "operation": "complex_residuals",
  "model": {
    "schema": "gxtxt.complex_model.v1",
    "kind": "complex_response",
    "recipe": {
      "predictor_id": "f",
      "predictor_unit": "Hz",
      "channels": [
        {
          "id": "z",
          "unit": "Ohm",
          "real_expression": "resistance",
          "imaginary_expression": "2*pi*f*inductance"
        }
      ],
      "parameters": [
        {
          "id": "resistance",
          "initial": 4.0,
          "unit": "Ohm"
        },
        {
          "id": "inductance",
          "initial": 0.004,
          "unit": "Ohm*s"
        }
      ]
    },
    "physical_model": {
      "kind": "expression",
      "expression": [
        "resistance",
        "2*pi*f*inductance"
      ],
      "parameter_ids": [
        "resistance",
        "inductance"
      ],
      "parameter_units": [
        "Ohm",
        "Ohm*s"
      ],
      "predictor_ids": [
        "f"
      ],
      "response_units": [
        "Ohm",
        "Ohm"
      ],
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          4.0,
          0.004
        ]
      },
      "parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          4.999999999999964,
          0.004999999999999963
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "14fbbdea81ea2af6810dc1bdbb5cac332b79129ccb01047080372d9ddba28f76",
      "binding_sha256": "8bcc1eb7c78e77e70dcaa9ef6373d5c18206463bfd67149d17424ecd4c7b8cb3",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            4.0,
            0.004
          ]
        },
        "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
          ]
        }
      },
      "input_constraints": {
        "domain": "finite_real",
        "translation_policy": "forbid_translation",
        "required_x_unit": "Hz",
        "required_y_unit": ""
      },
      "formula_declaration": {
        "schema": "gxtxt.fit_formula_declaration.v1",
        "recipe": {
          "expression": [
            "resistance",
            "2*pi*f*inductance"
          ],
          "response_unit": [
            "Ohm",
            "Ohm"
          ],
          "predictor_ids": [
            "f"
          ],
          "predictor_units": [
            "Hz"
          ],
          "parameters": [
            {
              "id": "resistance",
              "initial": 4.0,
              "unit": "Ohm"
            },
            {
              "id": "inductance",
              "initial": 0.004,
              "unit": "Ohm*s"
            }
          ]
        },
        "original_expression": [
          "resistance",
          "2*pi*f*inductanc
[…]
Negative test or attempted call · complex_residuals

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.complex_model.v1",
    "kind": "complex_response",
    "recipe": {
      "predictor_id": "f",
      "predictor_unit": "Hz",
      "channels": [
        {
          "id": "z",
          "unit": "Ohm",
          "real_expression": "resistance",
          "imaginary_expression": "2*pi*f*inductance"
        }
      ],
      "parameters": [
        {
          "id": "resistance",
          "initial": 4.0,
          "unit": "Ohm"
        },
        {
          "id": "inductance",
          "initial": 0.004,
          "unit": "Ohm*s"
        }
      ]
    },
    "physical_model": {
      "kind": "expression",
      "expression": [
        "resistance",
        "2*pi*f*inductance"
      ],
      "parameter_ids": [
        "resistance",
        "inductance"
      ],
      "parameter_units": [
        "Ohm",
        "Ohm*s"
      ],
      "predictor_ids": [
        "f"
      ],
      "response_units": [
        "Ohm",
        "Ohm"
      ],
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          4.0,
          0.004
        ]
      },
      "parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          4.0,
          0.004
        ]
      },
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "14fbbdea81ea2af6810dc1bdbb5cac332b79129ccb01047080372d9ddba28f76",
      "binding_sha256": "8bcc1eb7c78e77e70dcaa9ef6373d5c18206463bfd67149d17424ecd4c7b8cb3",
      "parameter_constraints": {
        "initial_parameters": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            4.0,
            0.004
          ]
        },
        "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
          ]
        }
      },
      "input_constraints": {
        "
[…]

Result, preview

"GXTXT:Numeric:Complex: Unknown field or invalid complex covariance"

complex_from_polar

Access
Registered in the Python Job
Arguments
magnitude, phase, explicit units/scale/reference options
Units
Units follow NUMERIC_API_v1 operation contract
Result
complex values and conversion provenance; no covariance approximation
Effect
Convert linear or db20 amplitude and phase without covariance assumptions
Types
float64,float64,struct
Declared shape
finite_matched_arrays
Nonfinite values
error
Units rule
explicit_phase_amplitude_units
gxtxt_api_call("NUMERIC_API_v1", "complex_from_polar", args)
Recorded result · complex_from_polar

Download the example script (ZIP).

Example operands, preview

[
  [
    1.0,
    2.0
  ],
  [
    0.0,
    90.0
  ],
  {
    "phase_unit": "deg",
    "magnitude_scale": "linear",
    "channel_units": [
      "Ohm"
    ]
  }
]

Result, preview

{
  "schema": "gxtxt.complex_observations.v1",
  "values": {
    "shape": [
      2,
      1
    ],
    "dtype": "complex128",
    "values": [
      "(1+0j)",
      "(1.2246467991473532e-16+2j)"
    ]
  },
  "options": {
    "phase_unit": "deg",
    "magnitude_scale": "linear",
    "channel_units": [
      "Ohm"
    ]
  },
  "magnitude_sha256": "e114f8dd33869973a58582cb37bd59f5ac488219b7d0d7311d6f084754518029",
  "phase_sha256": "4f116794655206f29ba7e58907480fe2df26aae4f73dc503f56fc58c4629168c",
  "conversion": "physical_amplitude_times_exp_i_phase",
  "covariance_conversion": "none_cartesian_covariance_required",
  "phase_valid": {
    "shape": [
      2,
      1
    ],
    "dtype": "bool",
    "values": [
      true,
      true
    ]
  }
}
Negative test or attempted call · complex_from_polar

Download the example script (ZIP).

Example operands, preview

[
  [
    1.0,
    2.0
  ],
  [
    0.0,
    90.0
  ],
  {
    "phase_unit": "deg",
    "magnitude_scale": "linear"
  }
]

Result, preview

"GXTXT:Numeric:Complex: Declare phase units, magnitude scale and physical channel units"

implicit_model_compose

Access
Registered in the Python Job
Arguments
data-only two-coordinate formula, residual mode and explicit reference normalization
Units
Units follow NUMERIC_API_v1 operation contract
Result
versioned implicit model with CORE units and bounds
Effect
Declare an implicit equation with explicit residual semantics and physical normalization
Types
struct
Declared shape
bounded_two_coordinate_formula
Nonfinite values
error
Units rule
CORE_formula_units
gxtxt_api_call("NUMERIC_API_v1", "implicit_model_compose", args)
Recorded result · implicit_model_compose

Download the example script (ZIP).

Example operands, preview

[
  {
    "formula": {
      "predictor_ids": [
        "x",
        "y"
      ],
      "predictor_units": [
        "1",
        "1"
      ],
      "response_unit": "1",
      "expression": "y-a*x",
      "parameters": [
        {
          "id": "a",
          "initial": 1.0,
          "unit": "1"
        }
      ]
    },
    "residual_mode": "algebraic"
  }
]

Result, preview

{
  "schema": "gxtxt.implicit_model.v1",
  "kind": "implicit",
  "recipe": {
    "formula": {
      "predictor_ids": [
        "x",
        "y"
      ],
      "predictor_units": [
        "1",
        "1"
      ],
      "response_unit": "1",
      "expression": "y-a*x",
      "parameters": [
        {
          "id": "a",
          "initial": 1.0,
          "unit": "1"
        }
      ]
    },
    "residual_mode": "algebraic"
  },
  "equation_model": {
    "kind": "expression",
    "expression": [
      "y-a*x"
    ],
    "parameter_ids": [
      "a"
    ],
    "parameter_units": [
      "1"
    ],
    "predictor_ids": [
      "x",
      "y"
    ],
    "response_units": [
      "1"
    ],
    "initial_parameters": 1.0,
    "parameters": 1.0,
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "2de146ff8e1735748f4b6c56c598f1b08ea0405449fc8468aa8e560be549d197",
    "binding_sha256": "a443fa556288d606b94c2951d67197638ccff1755d67b68db522abb203e4f5f7",
    "parameter_constraints": {
      "initial_parameters": 1.0,
      "lower_bounds": -Infinity,
      "upper_bounds": Infinity,
      "fixed_mask": 0.0
    },
    "input_constraints": {
      "domain": "finite_real",
      "translation_policy": "forbid_translation",
      "required_x_unit": "",
      "required_y_unit": "1"
    },
    "formula_declaration": {
      "schema": "gxtxt.fit_formula_declaration.v1",
      "recipe": {
        "predictor_ids": [
          "x",
          "y"
        ],
        "predictor_units": [
          "1",
          "1"
        ],
        "response_unit": "1",
        "expression": "y-a*x",
        "parameters": [
          {
            "id": "a",
            "initial": 1.0,
            "unit": "1"
          }
        ]
      },
      "original_expression": "y-a*x",
      "effective_expression": "y-a*x",
      "dimensional_receipt": {
        "schema": "gxtxt.expression_dimensions.v1",
        "expression": "y-a*x",
        "symbol_units": {
          "x": "1",
          "y": "1",
          "a": "1"
        },
        "symbol_scales": {
          "x": 1.0,
          "y": 1.0,
          "a": 1.0
        },
        "inferred_parameter_ids": [],
        "used_symbols": [
          "a",
          "x",
          "y"
        ],
        "output_unit": "1",
        "output_scale": 1.0,
        "dimensions": {},
        "dimension_label": "1",
        "normalization": "explicit_symbol_to_canonical_then_output_scale",
        "variable_exponent_policy": "dimensionless_base_and_exponent",
        "constraint_count": 2.0
      },
      "derivative_policy": "existing_native_expression_vm_analytic_with_explicit_nonsmooth_domains",
      "unit_policy": "physical_parameter_units_with_explicit_internal_SI_conversion",
      "source_expression_sha256": "2de146ff8e1735748f4b6c56c598f1b08ea0405449fc8468aa8e560be549d197"
    }
  },
  "parameter_ids": [
    "a"
  ],
  "parameter_units": [
    "1"
  ],
  "predictor_ids": [
    "x",
    "y"
  ],
  "predictor_units": [
    "1",
    "1"
  ],
  "parameters": 1.0,
  "initial_parameters": 1.0,
  "residual_mode": "algebraic",
  "normalization": {
    "value": 1.0,
    "unit": "1",
    "role": "reference_scale"
  },
  "residual_unit": "1",
  "objective_unit_rule": "square_residual_unit",
  "declaration_sha256": "dc5612fe11049af4f3fbe82c7fc5de609a662feaa35fec8d3a1b1c17e836b8a3",
  "fit_geometry": "implicit_algebraic",
  "residual_definition": "zero_minus_equation_value_at_observed_coordi
[…]

implicit_fit

Access
Registered in the Python Job
Arguments
implicit model, first and second coordinates, optional solver policy
Units
Units follow NUMERIC_API_v1 operation contract
Result
physical parameters/covariance and explicit equation residual facts; no ODR distance or inferred response curve
Effect
Fit algebraic implicit residuals without claiming ODR distances or a response branch
Types
struct,vector,vector
Declared shape
matched_original_observations
Options
solver=auto,ceres;max_iterations=positive_integer;max_seconds=positive_number;loss=linear,huber,cauchy,soft_l1,arctan,tukey
Nonfinite values
error
Units rule
declared_equation_and_parameter_units
gxtxt_api_call("NUMERIC_API_v1", "implicit_fit", args)
Recorded result · implicit_fit

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.implicit_model.v1",
    "kind": "implicit",
    "recipe": {
      "formula": {
        "predictor_ids": [
          "x",
          "y"
        ],
        "predictor_units": [
          "1",
          "1"
        ],
        "response_unit": "1",
        "expression": "y-a*x",
        "parameters": [
          {
            "id": "a",
            "initial": 1.0,
            "unit": "1"
          }
        ]
      },
      "residual_mode": "algebraic"
    },
    "equation_model": {
      "kind": "expression",
      "expression": [
        "y-a*x"
      ],
      "parameter_ids": [
        "a"
      ],
      "parameter_units": [
        "1"
      ],
      "predictor_ids": [
        "x",
        "y"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": 1.0,
      "parameters": 1.0,
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "2de146ff8e1735748f4b6c56c598f1b08ea0405449fc8468aa8e560be549d197",
      "binding_sha256": "a443fa556288d606b94c2951d67197638ccff1755d67b68db522abb203e4f5f7",
      "parameter_constraints": {
        "initial_parameters": 1.0,
        "lower_bounds": -Infinity,
        "upper_bounds": Infinity,
        "fixed_mask": 0.0
      },
      "input_constraints": {
        "domain": "finite_real",
        "translation_policy": "forbid_translation",
        "required_x_unit": "",
        "required_y_unit": "1"
      },
      "formula_declaration": {
        "schema": "gxtxt.fit_formula_declaration.v1",
        "recipe": {
          "predictor_ids": [
            "x",
            "y"
          ],
          "predictor_units": [
            "1",
            "1"
          ],
          "response_unit": "1",
          "expression": "y-a*x",
          "parameters": [
            {
              "id": "a",
              "initial": 1.0,
              "unit": "1"
            }
          ]
        },
        "original_expression": "y-a*x",
        "effective_expression": "y-a*x",
        "dimensional_receipt": {
          "schema": "gxtxt.expression_dimensions.v1",
          "expression": "y-a*x",
          "symbol_units": {
            "x": "1",
            "y": "1",
            "a": "1"
          },
          "symbol_scales": {
            "x": 1.0,
            "y": 1.0,
            "a": 1.0
          },
          "inferred_parameter_ids": [],
          "used_symbols": [
            "a",
            "x",
            "y"
          ],
[…]

Result, preview

{
  "parameters": 1.999999999999963,
  "predicted": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      1.8540724511240114e-14,
      2.2870594307278225e-14,
      2.708944180085382e-14,
      3.1308289294429414e-14,
      3.574918139293004e-14,
      3.9968028886505635e-14,
      4.440892098500626e-14,
      4.8405723873656825e-14,
      5.284661597215745e-14,
      5.684341886080802e-14,
      6.128431095930864e-14,
      6.572520305780927e-14
    ]
  },
  "residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.8540724511240114e-14,
      -2.2870594307278225e-14,
      -2.708944180085382e-14,
      -3.1308289294429414e-14,
      -3.574918139293004e-14,
      -3.9968028886505635e-14,
      -4.440892098500626e-14,
      -4.8405723873656825e-14,
      -5.284661597215745e-14,
      -5.684341886080802e-14,
      -6.128431095930864e-14,
      -6.572520305780927e-14
    ]
  },
  "weighted_residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -1.8540724511240114e-14,
      -2.2870594307278225e-14,
      -2.708944180085382e-14,
      -3.1308289294429414e-14,
      -3.574918139293004e-14,
      -3.9968028886505635e-14,
      -4.440892098500626e-14,
      -4.8405723873656825e-14,
      -5.284661597215745e-14,
      -5.684341886080802e-14,
      -6.128431095930864e-14,
      -6.572520305780927e-14
    ]
  },
  "objective": 5.135947578992055e-25,
  "sse": 5.135947578992055e-25,
  "rss": 5.135947578992055e-25,
  "rmse": 1.147566832754846e-13,
  "residual_rmse": 1.147566832754846e-13,
  "response_rmse": 1.1331314551930917e-13,
  "r_squared": NaN,
  "adjusted_r_squared": NaN,
  "dof": 39.0,
  "rank": 1.0,
  "condition_number": 1.0,
  "scaled_condition_number": 1.0,
  "covariance": 3.5262255949138716e-29,
  "standard_errors": 5.938203090930683e-15
}

implicit_evaluate

Access
Registered in the Python Job
Arguments
implicit model, first and second coordinates, optional Jacobian request
Units
Units follow NUMERIC_API_v1 operation contract
Result
equation values, residuals and declared physical normalization without fitting
Effect
Evaluate a retained implicit equation without fitting
Types
struct,vector,vector
Declared shape
matched_observed_coordinates
Options
jacobian=boolean
Nonfinite values
error
Units rule
declared_equation_unit
gxtxt_api_call("NUMERIC_API_v1", "implicit_evaluate", args)
Recorded result · implicit_evaluate

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.implicit_model.v1",
    "kind": "implicit",
    "recipe": {
      "formula": {
        "predictor_ids": [
          "x",
          "y"
        ],
        "predictor_units": [
          "1",
          "1"
        ],
        "response_unit": "1",
        "expression": "y-a*x",
        "parameters": [
          {
            "id": "a",
            "initial": 1.0,
            "unit": "1"
          }
        ]
      },
      "residual_mode": "algebraic"
    },
    "equation_model": {
      "kind": "expression",
      "expression": [
        "y-a*x"
      ],
      "parameter_ids": [
        "a"
      ],
      "parameter_units": [
        "1"
      ],
      "predictor_ids": [
        "x",
        "y"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": 1.0,
      "parameters": 1.999999999999963,
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "2de146ff8e1735748f4b6c56c598f1b08ea0405449fc8468aa8e560be549d197",
      "binding_sha256": "a443fa556288d606b94c2951d67197638ccff1755d67b68db522abb203e4f5f7",
      "parameter_constraints": {
        "initial_parameters": 1.0,
        "lower_bounds": -Infinity,
        "upper_bounds": Infinity,
        "fixed_mask": 0.0
      },
      "input_constraints": {
        "domain": "finite_real",
        "translation_policy": "forbid_translation",
        "required_x_unit": "",
        "required_y_unit": "1"
      },
      "formula_declaration": {
        "schema": "gxtxt.fit_formula_declaration.v1",
        "recipe": {
          "predictor_ids": [
            "x",
            "y"
          ],
          "predictor_units": [
            "1",
            "1"
          ],
          "response_unit": "1",
          "expression": "y-a*x",
          "parameters": [
            {
              "id": "a",
              "initial": 1.0,
              "unit": "1"
            }
          ]
        },
        "original_expression": "y-a*x",
        "effective_expression": "y-a*x",
        "dimensional_receipt": {
          "schema": "gxtxt.expression_dimensions.v1",
          "expression": "y-a*x",
          "symbol_units": {
            "x": "1",
            "y": "1",
            "a": "1"
          },
          "symbol_scales": {
            "x": 1.0,
            "y": 1.0,
            "a": 1.0
          },
          "inferred_parameter_ids": [],
          "used_symbols": [
            "a",
            "x",
            "y
[…]

Result, preview

{
  "parameters": 1.999999999999963,
  "predicted": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      1.8540724511240114e-14,
      2.2870594307278225e-14,
      2.708944180085382e-14,
      3.1308289294429414e-14,
      3.574918139293004e-14,
      3.9968028886505635e-14,
      4.440892098500626e-14,
      4.8405723873656825e-14,
      5.284661597215745e-14,
      5.684341886080802e-14,
      6.128431095930864e-14,
      6.572520305780927e-14
    ]
  },
  "jacobian": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.5,
      -0.6153846153846154,
      -0.7307692307692308,
      -0.8461538461538461,
      -0.9615384615384616,
      -1.076923076923077,
      -1.1923076923076923,
      -1.3076923076923077,
      -1.4230769230769231,
      -1.5384615384615385,
      -1.653846153846154,
      -1.7692307692307694
    ]
  },
  "converged": false,
  "termination": "EVALUATED",
  "solver_message": "ceres::Solve was not called.",
  "iterations": 0.0,
  "function_evaluations": -1.0,
  "jacobian_evaluations": -1.0,
  "solver_seconds": -1.0,
  "solver_objective": NaN,
  "solver": "ceres",
  "backend_version": "2.2.0",
  "derivative_method": "automatic_differentiation",
  "parameter_scales": 1.0,
  "free_parameter_count": 1.0,
  "threads_used": 1.0,
  "adapter_dataset_copy_bytes": 0.0
}

implicit_query

Access
Registered in the Python Job
Arguments
implicit model, independent queries and branch declaration
Units
Units follow NUMERIC_API_v1 operation contract
Result
checked local roots, partial-derivative ratio and explicit unavailable/uniqueness status
Effect
Query a caller-declared continuous branch through public root finding
Types
struct,vector,struct
Declared shape
one_to_64_independent_queries
Nonfinite values
error
Units rule
declared_coordinate_units
gxtxt_api_call("NUMERIC_API_v1", "implicit_query", args)
Recorded result · implicit_query

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.implicit_model.v1",
    "kind": "implicit",
    "recipe": {
      "formula": {
        "predictor_ids": [
          "x",
          "y"
        ],
        "predictor_units": [
          "1",
          "1"
        ],
        "response_unit": "1",
        "expression": "y-a*x",
        "parameters": [
          {
            "id": "a",
            "initial": 1.0,
            "unit": "1"
          }
        ]
      },
      "residual_mode": "algebraic"
    },
    "equation_model": {
      "kind": "expression",
      "expression": [
        "y-a*x"
      ],
      "parameter_ids": [
        "a"
      ],
      "parameter_units": [
        "1"
      ],
      "predictor_ids": [
        "x",
        "y"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": 1.0,
      "parameters": 1.999999999999963,
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "2de146ff8e1735748f4b6c56c598f1b08ea0405449fc8468aa8e560be549d197",
      "binding_sha256": "a443fa556288d606b94c2951d67197638ccff1755d67b68db522abb203e4f5f7",
      "parameter_constraints": {
        "initial_parameters": 1.0,
        "lower_bounds": -Infinity,
        "upper_bounds": Infinity,
        "fixed_mask": 0.0
      },
      "input_constraints": {
        "domain": "finite_real",
        "translation_policy": "forbid_translation",
        "required_x_unit": "",
        "required_y_unit": "1"
      },
      "formula_declaration": {
        "schema": "gxtxt.fit_formula_declaration.v1",
        "recipe": {
          "predictor_ids": [
            "x",
            "y"
          ],
          "predictor_units": [
            "1",
            "1"
          ],
          "response_unit": "1",
          "expression": "y-a*x",
          "parameters": [
            {
              "id": "a",
              "initial": 1.0,
              "unit": "1"
            }
          ]
        },
        "original_expression": "y-a*x",
        "effective_expression": "y-a*x",
        "dimensional_receipt": {
          "schema": "gxtxt.expression_dimensions.v1",
          "expression": "y-a*x",
          "symbol_units": {
            "x": "1",
            "y": "1",
            "a": "1"
          },
          "symbol_scales": {
            "x": 1.0,
            "y": 1.0,
            "a": 1.0
          },
          "inferred_parameter_ids": [],
          "used_symbols": [
            "a",
            "x",
            "y
[…]

Result, preview

{
  "schema": "gxtxt.implicit_branch_result.v1",
  "queries": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0
    ]
  },
  "predicted": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.999999999999963,
      3.999999999999926
    ]
  },
  "points": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      1.999999999999963,
      3.999999999999926
    ]
  },
  "valid": {
    "shape": [
      2,
      1
    ],
    "dtype": "bool",
    "values": [
      true,
      true
    ]
  },
  "equation_values": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  },
  "derivative": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.999999999999963,
      1.999999999999963
    ]
  },
  "derivative_valid": {
    "shape": [
      2,
      1
    ],
    "dtype": "bool",
    "values": [
      true,
      true
    ]
  },
  "response_index": 2.0,
  "query_unit": "1",
  "response_unit": "1",
  "residual_unit": "1",
  "iterations": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  },
  "function_evaluations": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      3.0,
      3.0
    ]
  },
  "reasons": [
    "Local bracket root verified against the response tolerance; global uniqueness is not certified.",
    "Local bracket root verified against the response tolerance; global uniqueness is not certified."
  ],
  "bracket": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      12.0
    ]
  },
  "independent_domain": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      5.0
    ]
  },
  "is_extrapolated": {
    "shape": [
      2,
      1
    ],
    "dtype": "bool",
    "values": [
      false,
      false
    ]
  }
}
Negative test or attempted call · implicit_query

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.implicit_model.v1",
    "kind": "implicit",
    "recipe": {
      "formula": {
        "predictor_ids": [
          "x",
          "y"
        ],
        "predictor_units": [
          "1",
          "1"
        ],
        "response_unit": "1",
        "expression": "y-a*x",
        "parameters": [
          {
            "id": "a",
            "initial": 1.0,
            "unit": "1"
          }
        ]
      },
      "residual_mode": "algebraic"
    },
    "equation_model": {
      "kind": "expression",
      "expression": [
        "y-a*x"
      ],
      "parameter_ids": [
        "a"
      ],
      "parameter_units": [
        "1"
      ],
      "predictor_ids": [
        "x",
        "y"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": 1.0,
      "parameters": 1.999999999999963,
      "expression_grammar": "CORE controlled expression v1",
      "compiler_version": 1.0,
      "source_sha256": "2de146ff8e1735748f4b6c56c598f1b08ea0405449fc8468aa8e560be549d197",
      "binding_sha256": "a443fa556288d606b94c2951d67197638ccff1755d67b68db522abb203e4f5f7",
      "parameter_constraints": {
        "initial_parameters": 1.0,
        "lower_bounds": -Infinity,
        "upper_bounds": Infinity,
        "fixed_mask": 0.0
      },
      "input_constraints": {
        "domain": "finite_real",
        "translation_policy": "forbid_translation",
        "required_x_unit": "",
        "required_y_unit": "1"
      },
      "formula_declaration": {
        "schema": "gxtxt.fit_formula_declaration.v1",
        "recipe": {
          "predictor_ids": [
            "x",
            "y"
          ],
          "predictor_units": [
            "1",
            "1"
          ],
          "response_unit": "1",
          "expression": "y-a*x",
          "parameters": [
            {
              "id": "a",
              "initial": 1.0,
              "unit": "1"
            }
          ]
        },
        "original_expression": "y-a*x",
        "effective_expression": "y-a*x",
        "dimensional_receipt": {
          "schema": "gxtxt.expression_dimensions.v1",
          "expression": "y-a*x",
          "symbol_units": {
            "x": "1",
            "y": "1",
            "a": "1"
          },
          "symbol_scales": {
            "x": 1.0,
            "y": 1.0,
            "a": 1.0
          },
          "inferred_parameter_ids": [],
          "used_symbols": [
            "a",
            "x",
            "y
[…]

Result, preview

"GXTXT:Numeric:Implicit: Unknown implicit branch field: domain"

fit_formula_compose

Access
Registered in the Python Job
Arguments
data-only formula, predictor units and named parameter recipe
Units
Units follow NUMERIC_API_v1 operation contract
Result
frozen expression model for the existing Numeric solver with physical parameter units and constraints
Effect
Declare a safe formula with shared CORE unit inference
Types
struct
Declared shape
bounded_formula_and_units
Nonfinite values
error
Units rule
explicit_internal_conversion_physical_parameters
gxtxt_api_call("NUMERIC_API_v1", "fit_formula_compose", args)
Recorded result · fit_formula_compose

Download the example script (ZIP).

Example operands, preview

[
  {
    "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
      }
    ]
  }
]

Result, preview

{
  "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.0,
      0.25
    ]
  },
  "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",
    "dimensional_receipt": {
      "schema": "gxtxt.expression_dimensions.v1",
      "expression": "a*x+b",
      "symbol_units": {
        "x": "1",
        "a": "1",
        "b": "1"
      },
      "symbol_scales": {
        "x": 1.0,
        "a": 1.0,
        "b": 1.0
      },
      "inferred_parameter_ids": [],
      "used_symbols": [
        "a",
        "b",
        "x"
      ],
      "output_unit": "1",
      "output_scale": 1.0,
      "dimensions": {},
      "dimension_label": "1",
      "normalization": "explicit_symbol_to_canonical_then_output_scale",
      "variable_exponent_policy": "dimensionless_base_and_exponent",
      "constraint_count": 2.0
    },
    "derivative_policy": "existing_native_expression_vm_analytic_with_explicit_nonsmooth_domains",
    "unit_policy": "physical_parameter_units_with_explicit_internal_SI_conversion",
    "source_expression_sha256": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5"
  }
}

fit_model_compose

Access
Registered in the Python Job
Arguments
recipe with components, x_unit, y_unit and optional parameter overrides
Units
Units follow NUMERIC_API_v1 operation contract
Result
declared expression model and captured constraints
Effect
Compose frozen peak and baseline descriptors with parameter sharing and constraints
Types
struct
Declared shape
bounded_component_recipe
Nonfinite values
error
Units rule
explicit_axis_units_and_parameter_relationships
gxtxt_api_call("NUMERIC_API_v1", "fit_model_compose", args)
Recorded result · fit_model_compose

Download the example script (ZIP).

Example operands, preview

[
  {
    "x_unit": "s",
    "y_unit": "V",
    "components": [
      {
        "id": "peak",
        "model_id": "peak.lorentzian_height_v1",
        "initial_parameters": [
          2.0,
          1.0,
          0.7
        ]
      },
      {
        "id": "background",
        "model_id": "baseline.linear_v1",
        "initial_parameters": [
          0.2,
          0.03
        ]
      }
    ]
  }
]

Result, preview

{
  "kind": "expression",
  "expression": [
    "(peak_height/(1+((x-peak_center)/peak_hwhm)^2))+(background_intercept+background_slope*x)"
  ],
  "parameter_ids": [
    "peak_height",
    "peak_center",
    "peak_hwhm",
    "background_intercept",
    "background_slope"
  ],
  "predictor_ids": [
    "x"
  ],
  "parameter_units": [
    "V",
    "s",
    "s",
    "V",
    "V/(s)"
  ],
  "initial_parameters": {
    "shape": [
      5,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      1.0,
      0.7,
      0.2,
      0.03
    ]
  },
  "parameters": {
    "shape": [
      5,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      1.0,
      0.7,
      0.2,
      0.03
    ]
  },
  "parameter_constraints": {
    "initial_parameters": {
      "shape": [
        5,
        1
      ],
      "dtype": "float64",
      "values": [
        2.0,
        1.0,
        0.7,
        0.2,
        0.03
      ]
    },
    "lower_bounds": {
      "shape": [
        5,
        1
      ],
      "dtype": "float64",
      "values": [
        -Infinity,
        -Infinity,
        2.2250738585072014e-308,
        -Infinity,
        -Infinity
      ]
    },
    "upper_bounds": {
      "shape": [
        5,
        1
      ],
      "dtype": "float64",
      "values": [
        Infinity,
        Infinity,
        Infinity,
        Infinity,
        Infinity
      ]
    },
    "fixed_mask": {
      "shape": [
        5,
        1
      ],
      "dtype": "float64",
      "values": [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0
      ]
    }
  },
  "input_constraints": {
    "domain": "finite_real",
    "required_x_unit": "",
    "required_y_unit": "",
    "translation_policy": "allowed"
  },
  "composition": {
    "schema": "gxtxt.fit_composition.v1",
    "recipe": {
      "x_unit": "s",
      "y_unit": "V",
      "components": [
        {
          "id": "peak",
          "model_id": "peak.lorentzian_height_v1",
          "initial_parameters": {
            "shape": [
              3,
              1
            ],
            "dtype": "float64",
            "values": [
              2.0,
              1.0,
              0.7
            ]
          },
          "bindings": {
            "height": "peak_height",
            "center": "peak_center",
            "hwhm": "peak_hwhm"
          }
        },
        {
          "id": "background",
          "model_id": "baseline.linear_v1",
          "initial_parameters": {
            "shape": [
              2,
              1
            ],
            "dtype": "float64",
            "values": [
              0.2,
              0.03
            ]
          },
          "bindings": {
            "intercept": "background_intercept",
            "slope": "background_slope"
          }
        }
      ],
      "parameters": {}
    },
    "cards": [
      {
        "id": "peak.lorentzian_height_v1",
        "version": "1.0.0",
        "name": "Lorentzian peak (height, HWHM)",
        "description": "Peak height is not integrated area. FWHM = 2*hwhm and integrated area = pi*height*hwhm.",
        "descriptor_sha256": "b54ffa22076b38fd1cb516fc9eb36b9bf0e51be2a78e639deb9c49c2319b9f04",
        "expression": "height/(1+((x-center)/hwhm)^2)",
        "parameter_ids": [
          "height",
          "center",
          "hwhm"
        ],
        "parameter_units": [
          "Y",
          "X",
          "X"
        ],
        "parameter_meanings": [
          "Peak height abo
[…]

local_cloud_fit

Access
Registered in the Python Job
Arguments
x, y, in-domain query, optional empty options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Per-query estimate, dispersion and effective denominator facts
Effect
Deterministic local quadratic or constant cloud estimate with explicit effective variance denominator
Types
vector
Declared shape
matched_source_vectors_and_queries
Nonfinite values
error
Units rule
caller_owned
Expression function
local_cloud_fit
gxtxt_api_call("NUMERIC_API_v1", "local_cloud_fit", args)
Recorded result · local_cloud_fit

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.6153846153846154,
      0.7307692307692308,
      0.8461538461538461,
      0.9615384615384616,
      1.076923076923077,
      1.1923076923076923,
      1.3076923076923077,
      1.4230769230769231,
      1.5384615384615385,
      1.653846153846154,
      1.7692307692307694
    ]
  },
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      3.502397127693021,
      3.8490402092700293,
      4.195644905551329,
      4.542205220750953,
      4.888715749300064,
      5.235171747734771,
      5.581569197778721,
      5.927904859781541,
      6.274176315802433,
      6.620382001766006,
      6.966521228262664,
      7.312594189716963
    ]
  },
  [
    1.0,
    2.0,
    3.0
  ]
]

Result, preview

{
  "query": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0
    ]
  },
  "local_mean": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      5.004207028776217,
      8.004545891097187,
      11.000705682555926
    ]
  },
  "local_sigma": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      6.516740908900115e-06,
      6.160429283847181e-06,
      1.1923091162658732e-05
    ]
  },
  "local_effective_n": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      6.58767399082087,
      7.065956617252248,
      6.587673990820867
    ]
  },
  "local_dof": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      3.5876739908208704,
      4.065956617252248,
      3.587673990820867
    ]
  },
  "local_count": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      10.0,
      10.0,
      10.0
    ]
  },
  "local_degree": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      2.0,
      2.0
    ]
  },
  "quadratic_condition": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      22.030367475370944,
      19.065366005267965,
      22.030367475370973
    ]
  },
  "method": "nearest_tricube_quadratic_or_constant",
  "variance_correction": "kish_effective_n_minus_parameters",
  "insufficient_policy": "undefined_without_positive_variance_denominator"
}

fit_profile

Access
Registered in the Python Job
Arguments
fitted declared model, exact predictors/response, CORE plan, original weights
Units
Units follow NUMERIC_API_v1 operation contract
Result
typed trial ledger and bounded profile receipt
Effect
Constrained Gaussian profile likelihood through existing native refits
Types
struct,matrix,vector,struct
Declared shape
exact_retained_observations
Options
weights=original_positive_precision_vector
Nonfinite values
error
Units rule
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "fit_profile", args)
Recorded result · fit_profile

Download the example script (ZIP).

Example operands, preview

[
  {
    "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
[…]

Result, preview

{
  "summary": {
    "schema": "gxtxt.fit_profile_numeric.v1",
    "settings": {
      "parameter_id": "a",
      "confidence": 0.95,
      "search_lower": 1.5,
      "search_upper": 2.5,
      "initial_step": 0.004,
      "parameter_tolerance": 0.0001,
      "max_refits": 48.0,
      "max_seconds": 15.0
    },
    "n": 22.0,
    "p": 2.0,
    "baseline_sse": 0.27406343935594607,
    "objective": "n_log_sse_ratio",
    "threshold": 3.8414588206941263,
    "threshold_distribution": "chi_square_1",
    "threshold_method": "two_erfinv_confidence_squared",
    "interval_policy": "connected_local_profile_component",
    "execution_policy": "sequential_one_thread_per_refit",
    "original_fit_count": 0.0,
    "attempted_count": 26.0,
    "successful_count": 26.0,
    "failed_count": 0.0,
    "max_refits": 48.0,
    "elapsed_seconds": 6.553071022033691,
    "workspace_bytes_bound": 11072.0
  },
  "trial_values": {
    "shape": [
      26,
      4
    ],
    "dtype": "float64",
    "values": [
      1.9945809013354445,
      1.9913809013354444,
      1.9856209013354444,
      1.9752529013354445,
      1.9565905013354445,
      1.9659217013354446,
      1.9705873013354447,
      1.9682545013354447,
      1.9670881013354446,
      1.9665049013354445,
      1.9662133013354446,
      1.9663591013354447
    ]
  },
  "trial_parameters": {
    "shape": [
      26,
      2
    ],
    "dtype": "float64",
    "values": [
      1.9945809013354445,
      1.9913809013354444,
      1.9856209013354444,
      1.9752529013354445,
      1.9565905013354445,
      1.9659217013354446,
      1.9705873013354447,
      1.9682545013354447,
      1.9670881013354446,
      1.9665049013354445,
      1.9662133013354446,
      1.9663591013354447
    ]
  },
  "trial_status": {
    "shape": [
      26,
      1
    ],
    "dtype": "uint8",
    "values": [
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1
    ]
  },
  "trial_messages": [
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    ""
  ],
  "trial_columns": [
    "parameter_value",
    "weighted_sse",
    "likelihood_ratio",
    "direction"
  ],
  "status_codes": {
    "converged": 1.0,
    "solver_failure": 2.0,
    "baseline_improved": 3.0
  }
}

least_squares

Access
Registered in the Python Job
Arguments
design, response, optional weights and options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Numeric fit with optional influence receipt and typed original input rows
Effect
Fit a linear design matrix with optional weights
Types
matrix,vector
Declared shape
matching_rows
Options
rank_policy=error,minimum_norm;weight_semantics=relative,inverse_variance;influence_diagnostics=true,false
Nonfinite values
error,omit
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "least_squares", args)
Recorded result · least_squares

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      40,
      2
    ],
    "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
    ]
  },
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      3.502397127693021,
      3.8490402092700293,
      4.195644905551329,
      4.542205220750953,
      4.888715749300064,
      5.235171747734771,
      5.581569197778721,
      5.927904859781541,
      6.274176315802433,
      6.620382001766006,
      6.966521228262664,
      7.312594189716963
    ]
  }
]

Result, preview

{
  "predicted": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      3.506433691178872,
      3.8522890265576515,
      4.198144361936431,
      4.543999697315211,
      4.8898550326939905,
      5.235710368072771,
      5.58156570345155,
      5.92742103883033,
      6.273276374209109,
      6.619131709587888,
      6.964987044966669,
      7.3108423803454485
    ]
  },
  "residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.004036563485851019,
      -0.0032488172876221633,
      -0.0024994563851024054,
      -0.0017944765642585736,
      -0.001139283393926327,
      -0.0005386203379993404,
      3.4943271716159074e-06,
      0.00048382095121102253,
      0.0008999415933237387,
      0.0012502921781178955,
      0.001534183295994751,
      0.0017518093715143124
    ]
  },
  "weighted_residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.004036563485851019,
      -0.0032488172876221633,
      -0.0024994563851024054,
      -0.0017944765642585736,
      -0.001139283393926327,
      -0.0005386203379993404,
      3.4943271716159074e-06,
      0.00048382095121102253,
      0.0008999415933237387,
      0.0012502921781178955,
      0.001534183295994751,
      0.0017518093715143124
    ]
  },
  "objective": 8.661459538286369e-05,
  "sse": 8.661459538286369e-05,
  "rss": 8.661459538286369e-05,
  "rmse": 0.0015097454942617915,
  "residual_rmse": 0.0015097454942617915,
  "response_rmse": 0.0014715178845571644,
  "r_squared": 0.9999998641452419,
  "adjusted_r_squared": NaN,
  "dof": 38.0,
  "rank": 2.0,
  "condition_number": 7.629499604469735,
  "scaled_condition_number": 4.358767688939616,
  "covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      2.9989577847939165e-07,
      -8.833181528847167e-08,
      -8.833181528847167e-08,
      3.212066010489878e-08
    ]
  },
  "standard_errors": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0005476274084442739,
      0.00017922237612781164
    ]
  },
  "weighted": false
}

linear_regression

Access
Registered in the Python Job
Arguments
X, Y, optional weights and options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Numeric fit in intercept/slope parameter order
Effect
Fit a linear regression with optional weights
Types
vector
Declared shape
same_length
Options
has_intercept=true,false;intercept=true,false;influence_diagnostics=true,false
Nonfinite values
error,omit
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "linear_regression", args)
Recorded result · linear_regression

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.6153846153846154,
      0.7307692307692308,
      0.8461538461538461,
      0.9615384615384616,
      1.076923076923077,
      1.1923076923076923,
      1.3076923076923077,
      1.4230769230769231,
      1.5384615384615385,
      1.653846153846154,
      1.7692307692307694
    ]
  },
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      3.502397127693021,
      3.8490402092700293,
      4.195644905551329,
      4.542205220750953,
      4.888715749300064,
      5.235171747734771,
      5.581569197778721,
      5.927904859781541,
      6.274176315802433,
      6.620382001766006,
      6.966521228262664,
      7.312594189716963
    ]
  }
]

Result, preview

{
  "predicted": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      3.506433691178872,
      3.8522890265576515,
      4.198144361936431,
      4.543999697315211,
      4.8898550326939905,
      5.235710368072771,
      5.58156570345155,
      5.92742103883033,
      6.273276374209109,
      6.619131709587888,
      6.964987044966669,
      7.3108423803454485
    ]
  },
  "residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.004036563485851019,
      -0.0032488172876221633,
      -0.0024994563851024054,
      -0.0017944765642585736,
      -0.001139283393926327,
      -0.0005386203379993404,
      3.4943271716159074e-06,
      0.00048382095121102253,
      0.0008999415933237387,
      0.0012502921781178955,
      0.001534183295994751,
      0.0017518093715143124
    ]
  },
  "weighted_residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.004036563485851019,
      -0.0032488172876221633,
      -0.0024994563851024054,
      -0.0017944765642585736,
      -0.001139283393926327,
      -0.0005386203379993404,
      3.4943271716159074e-06,
      0.00048382095121102253,
      0.0008999415933237387,
      0.0012502921781178955,
      0.001534183295994751,
      0.0017518093715143124
    ]
  },
  "objective": 8.661459538286369e-05,
  "sse": 8.661459538286369e-05,
  "rss": 8.661459538286369e-05,
  "rmse": 0.0015097454942617915,
  "residual_rmse": 0.0015097454942617915,
  "response_rmse": 0.0014715178845571644,
  "r_squared": 0.9999998641452419,
  "adjusted_r_squared": 0.9999998605701167,
  "dof": 38.0,
  "rank": 2.0,
  "condition_number": 7.629499604469735,
  "scaled_condition_number": 4.358767688939616,
  "covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      2.9989577847939165e-07,
      -8.833181528847167e-08,
      -8.833181528847167e-08,
      3.212066010489878e-08
    ]
  },
  "standard_errors": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0005476274084442739,
      0.00017922237612781164
    ]
  },
  "weighted": false
}

polynomial_fit

Access
Registered in the Python Job
Arguments
X, Y, degree, optional weights and options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Numeric fit in descending-power order
Effect
Fit a polynomial of the declared degree
Types
vector,scalar
Declared shape
same_length_xy
Options
center_scale=true,false;influence_diagnostics=true,false
Nonfinite values
error,omit
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "polynomial_fit", args)
Recorded result · polynomial_fit

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      22
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.2380952380952381,
      1.4761904761904763,
      1.7142857142857142,
      1.9523809523809523,
      2.1904761904761907,
      2.4285714285714284,
      2.6666666666666665,
      2.9047619047619047,
      3.142857142857143,
      3.380952380952381,
      3.619047619047619
    ]
  },
  {
    "shape": [
      22
    ],
    "dtype": "float64",
    "values": [
      3.0225792012895787,
      3.3894868954609714,
      3.7987820026518593,
      4.283168150682681,
      4.838638661578362,
      5.426435325505179,
      5.991996410002849,
      6.4916306527930745,
      6.913876928404042,
      7.285107332321677,
      7.656634461979122,
      8.07962585232904
    ]
  },
  2
]

Result, preview

{
  "predicted": {
    "shape": [
      22,
      1
    ],
    "dtype": "float64",
    "values": [
      2.9088479818576918,
      3.4065290022016175,
      3.902027180067403,
      4.395342515455047,
      4.886475008364552,
      5.375424658795916,
      5.862191466749139,
      6.346775432224222,
      6.829176555221164,
      7.309394835739965,
      7.787430273780627,
      8.263282869343147
    ]
  },
  "residuals": {
    "shape": [
      22,
      1
    ],
    "dtype": "float64",
    "values": [
      0.11373121943188691,
      -0.0170421067406461,
      -0.10324517741554384,
      -0.11217436477236564,
      -0.04783634678618931,
      0.051010666709262686,
      0.12980494325370984,
      0.1448552205688527,
      0.08470037318287815,
      -0.02428750341828856,
      -0.13079581180150512,
      -0.18365701701410764
    ]
  },
  "weighted_residuals": {
    "shape": [
      22,
      1
    ],
    "dtype": "float64",
    "values": [
      0.11373121943188691,
      -0.0170421067406461,
      -0.10324517741554384,
      -0.11217436477236564,
      -0.04783634678618931,
      0.051010666709262686,
      0.12980494325370984,
      0.1448552205688527,
      0.08470037318287815,
      -0.02428750341828856,
      -0.13079581180150512,
      -0.18365701701410764
    ]
  },
  "objective": 0.24030958705743355,
  "sse": 0.24030958705743355,
  "rss": 0.24030958705743355,
  "rmse": 0.1124627627395967,
  "residual_rmse": 0.1124627627395967,
  "response_rmse": 0.10451393709962878,
  "r_squared": 0.9988031370013724,
  "adjusted_r_squared": 0.9986771514225694,
  "dof": 19.0,
  "rank": 3.0,
  "condition_number": 2.7303323852311157,
  "scaled_condition_number": 2.624124312829311,
  "covariance": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      0.00013889164254663353,
      -0.0009722414978264349,
      0.0013845071669727914,
      -0.0009722414978264348,
      0.007057648112987554,
      -0.010573401867518324,
      0.0013845071669727912,
      -0.010573401867518324,
      0.017462503325052548
    ]
  },
  "standard_errors": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.011785229847000589,
      0.08400980962356452,
      0.13214576544502873
    ]
  },
  "weighted": false
}

nonlinear_evaluate

Access
Registered in the Python Job
Arguments
model with parameters, predictors, optional jacobian flag
Units
Units follow NUMERIC_API_v1 operation contract
Result
predictions, model identity and optional physical Jacobian
Effect
Evaluate a declared fitted model through the compiled expression engine
Types
struct,matrix
Declared shape
query_rows
Options
jacobian=boolean
Nonfinite values
error
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "nonlinear_evaluate", args)
Recorded result · nonlinear_evaluate

Download the example script (ZIP).

Example operands, preview

[
  {
    "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": [
        2.0,
        1.0
      ]
    },
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        2.9974129066037447,
        2.007727237908525
      ]
    },
    "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": [
          2.0,
          1.0
        ]
      },
      "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
        ]
      }
    },
    "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",
            "initial": 2.0,
            "unit": "1"
          },
          {
            "id": "b",
            "initial": 1.0,
            "unit": "1"
          }
        ]
      },
      "original_expression": "a*x+b",
      "effective_expression": "a*x+b",
      "dimensional_receipt": {
        "schema": "gxtxt.expression_dimensions.v1",
        "expression": "a*x+b",

[…]

Result, preview

{
  "parameters": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.9974129066037447,
      2.007727237908525
    ]
  },
  "predicted": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      3.5064336912103973,
      3.8522890265877523,
      4.198144361965108,
      4.543999697342462,
      4.889855032719818,
      5.235710368097173,
      5.581565703474528,
      5.927421038851883,
      6.273276374229239,
      6.619131709606594,
      6.964987044983949,
      7.310842380361304
    ]
  },
  "jacobian": {
    "shape": [
      40,
      2
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.6153846153846154,
      0.7307692307692308,
      0.8461538461538461,
      0.9615384615384616,
      1.076923076923077,
      1.1923076923076923,
      1.3076923076923077,
      1.4230769230769231,
      1.5384615384615385,
      1.653846153846154,
      1.7692307692307694
    ]
  },
  "converged": false,
  "termination": "EVALUATED",
  "solver_message": "ceres::Solve was not called.",
  "iterations": 0.0,
  "function_evaluations": -1.0,
  "jacobian_evaluations": -1.0,
  "solver_seconds": -1.0,
  "solver_objective": NaN,
  "solver": "ceres",
  "backend_version": "2.2.0",
  "derivative_method": "automatic_differentiation",
  "parameter_scales": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  },
  "free_parameter_count": 2.0,
  "threads_used": 1.0,
  "adapter_dataset_copy_bytes": 0.0
}

curve_model_fit

Access
Registered in the Python Job
Arguments
model, X, Y, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
model state struct
Effect
Fit reconstructible curves including Akima interpolation and explicit-knot B-spline approximation
Types
text,vector,struct
Declared shape
paired_vectors
Options
order=positive_integer;period=positive;smoothing_lambda=nonnegative;degree=1..12;topology=open_closed_auto;parameterization=row_path_user;knots=explicit_simple;boundary=declared;endpoint_slopes=physical_pair;x_unit=text;y_unit=text
Nonfinite values
error
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "curve_model_fit", args)
Recorded result · curve_model_fit

Download the example script (ZIP).

Example operands, preview

[
  "parametric_polynomial",
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      4.0,
      9.0,
      16.0,
      25.0
    ]
  },
  {
    "degree": 2
  }
]

Result, preview

{
  "model": "parametric_polynomial",
  "parametric": true,
  "topology": "open",
  "requested_topology": "auto",
  "parameterization": "row_order",
  "parameter_start": 0.0,
  "parameter_end": 1.0,
  "closure_tolerance": 2.5495097567963926e-08,
  "source_endpoint_distance": 25.495097567963924,
  "repeated_endpoint_removed": false,
  "source_count": 6.0,
  "parameters": {
    "shape": [
      6,
      1
    ],
    "dtype": "float64",
    "values": [
      -8.941051885355887e-16,
      5.0,
      0.0,
      24.999999999999954,
      4.973799150320701e-14,
      -1.0658141036401503e-14
    ]
  },
  "coefficients": {
    "shape": [
      3,
      2
    ],
    "dtype": "float64",
    "values": [
      -8.941051885355887e-16,
      5.0,
      0.0,
      24.999999999999954,
      4.973799150320701e-14,
      -1.0658141036401503e-14
    ]
  },
  "degree": 2.0
}

model_state_decode

Access
Registered in the Python Job
Arguments
JSON text or typed uint8 byte vector
Units
Units follow NUMERIC_API_v1 operation contract
Result
model state preserving exact numbers and JSON structure; bounded native decoder
Effect
Decode saved Numeric JSON with exact binary64 numbers and bounded structure
Types
text_or_uint8_vector
Declared shape
bounded_saved_model_bytes
Nonfinite values
error
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "model_state_decode", args)
Recorded result · model_state_decode

Download the example script (ZIP).

Example operands, preview

[
  "{\"schema\":\"teaching.v1\",\"a\":2.5,\"b\":[1,2]}"
]

Result, preview

{
  "schema": "teaching.v1",
  "a": 2.5,
  "b": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0
    ]
  }
}

fit_input_policy

Access
Registered in the Python Job
Arguments
model name, captured model state
Units
Units follow NUMERIC_API_v1 operation contract
Result
versioned preprocessing policy; no fitting or statistics
Effect
Describe actual model input ordering duplicate and endpoint policies without fitting
Types
model_name,struct
Declared shape
captured_model_decisions
Nonfinite values
error
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "fit_input_policy", args)
Recorded result · fit_input_policy

Download the example script (ZIP).

Example operands, preview

[
  "fourier",
  {
    "model": "fourier",
    "parametric": false,
    "order": 1.0,
    "period": 1.0,
    "fundamental_angular_frequency": 6.283185307179586,
    "origin": 0.0,
    "basis": "explicit_period",
    "coefficients": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    },
    "parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    },
    "solver": "least_squares",
    "parameter_metadata": {
      "schema": "gxtxt.curve_parameter_metadata.v1",
      "model": "fourier",
      "order": 1.0,
      "parameter_ids": [
        "constant",
        "cos_1",
        "sin_1"
      ],
      "parameter_labels": [
        "C0",
        "Ccos_1",
        "Csin_1"
      ],
      "unit_roles": [
        "response",
        "response",
        "response"
      ]
    },
    "source_count": 81.0
  }
]

Result, preview

{
  "schema": "gxtxt.fit_input_policy.v1",
  "model": "fourier",
  "order": "preserve_observation_order",
  "duplicates": "preserve_distinct_observations",
  "aggregation": "none",
  "endpoint": "preserve",
  "removed_terminal_endpoint": false,
  "parameterization": "not_applicable"
}

model_geometry

Access
Registered in the Python Job
Arguments
model, explicit physical domain/options
Units
Units follow NUMERIC_API_v1 operation contract
Result
exact definition or explicit sampled-required reason; no fitting
Effect
Convert retained polynomial spans and arcs to exact Native2D definitions without refitting
Types
struct,struct
Declared shape
retained_model_geometry
Options
domain=explicit;orientation=physical_frame;translation=pair;polar_frame=explicit;extrapolation=error_allow
Nonfinite values
error
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "model_geometry", args)
Recorded result · model_geometry

Download the example script (ZIP).

Example operands, preview

[
  {
    "model": "fourier",
    "parametric": false,
    "order": 1.0,
    "period": 1.0,
    "fundamental_angular_frequency": 6.283185307179586,
    "origin": 0.0,
    "basis": "explicit_period",
    "coefficients": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    },
    "parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    },
    "solver": "least_squares",
    "parameter_metadata": {
      "schema": "gxtxt.curve_parameter_metadata.v1",
      "model": "fourier",
      "order": 1.0,
      "parameter_ids": [
        "constant",
        "cos_1",
        "sin_1"
      ],
      "parameter_labels": [
        "C0",
        "Ccos_1",
        "Csin_1"
      ],
      "unit_roles": [
        "response",
        "response",
        "response"
      ]
    },
    "source_count": 81.0
  },
  {
    "domain": [
      0.0,
      1.0
    ]
  }
]

Result, preview

{
  "schema": "gxtxt.model_geometry.v1",
  "status": "sampled_required",
  "reason": "no_exact_native2d_primitive",
  "parameter_domain": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0
    ]
  },
  "parameter_breaks": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0
    ]
  },
  "parameter_mapping": "piecewise_affine",
  "fit_performed": false,
  "definition": {}
}

model_query

Access
Registered in the Python Job
Arguments
model, query vector, explicit domain/options
Units
Units follow NUMERIC_API_v1 operation contract
Result
points, derivative and inverse-slope validity; no fit or uncertainty
Effect
Evaluate a retained model without fitting with explicit derivative and inverse-slope validity
Types
struct,vector,struct
Declared shape
bounded_scalar_queries
Options
domain=explicit;extrapolation=error_allow;derivative=boolean;tangent_floors=two_nonnegative;difference_step=live_callback_positive;difference_relative_tolerance=live_callback_1e-12..0.1;orientation=physical_frame;translation=pair;polar_frame=explicit
Nonfinite values
error
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "model_query", args)
Recorded result · model_query:declared

Download the example script (ZIP).

Example operands, preview

[
  {
    "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": [
        2.0,
        1.0
      ]
    },
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        2.9974129066037447,
        2.007727237908525
      ]
    },
    "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": [
          2.0,
          1.0
        ]
      },
      "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
        ]
      }
    },
    "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",
            "initial": 2.0,
            "unit": "1"
          },
          {
            "id": "b",
            "initial": 1.0,
            "unit": "1"
          }
        ]
      },
      "original_expression": "a*x+b",
      "effective_expression": "a*x+b",
      "dimensional_receipt": {
        "schema": "gxtxt.expression_dimensions.v1",
        "expression": "a*x+b",

[…]

Result, preview

{
  "schema": "gxtxt.model_query.v1",
  "query": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0
    ]
  },
  "points": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      5.00514014451227,
      8.002553051116013
    ]
  },
  "predicted": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      5.00514014451227,
      8.002553051116013
    ]
  },
  "parametric": false,
  "domain": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      5.0
    ]
  },
  "extrapolation": "error",
  "is_extrapolated": {
    "shape": [
      2,
      1
    ],
    "dtype": "bool",
    "values": [
      false,
      false
    ]
  },
  "derivative": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.9974129066037447,
      2.9974129066037447
    ]
  },
  "derivative_valid": {
    "shape": [
      2,
      1
    ],
    "dtype": "bool",
    "values": [
      true,
      true
    ]
  },
  "inverse_derivative": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.33362103625991996,
      0.33362103625991996
    ]
  },
  "inverse_derivative_valid": {
    "shape": [
      2,
      1
    ],
    "dtype": "bool",
    "values": [
      true,
      true
    ]
  },
  "tangent_x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  },
  "tangent_y": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.9974129066037447,
      2.9974129066037447
    ]
  },
  "tangent_floors": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  },
  "derivative_method": "two_sided_automatic_differentiation",
  "fit_performed": false,
  "uncertainty_available": false
}

model_inverse

Access
Registered in the Python Job
Arguments
model, response targets, bracket, explicit domain/tolerances
Units
Units follow NUMERIC_API_v1 operation contract
Result
verified roots or unavailable reasons; global uniqueness is not certified
Effect
Find local retained-model roots with explicit branch and residual verification
Types
struct,vector,vector,struct
Declared shape
bounded_1_to_64_targets
Options
domain=explicit;x_tolerance=positive;response_tolerance=positive;max_iterations=1..256;extrapolation=error_allow;orientation=physical_frame;translation=pair;polar_frame=explicit
Nonfinite values
error
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "model_inverse", args)
Recorded result · model_inverse

Download the example script (ZIP).

Example operands, preview

[
  {
    "model": "fourier",
    "parametric": false,
    "order": 1.0,
    "period": 1.0,
    "fundamental_angular_frequency": 6.283185307179586,
    "origin": 0.0,
    "basis": "explicit_period",
    "coefficients": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    },
    "parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    },
    "solver": "least_squares",
    "parameter_metadata": {
      "schema": "gxtxt.curve_parameter_metadata.v1",
      "model": "fourier",
      "order": 1.0,
      "parameter_ids": [
        "constant",
        "cos_1",
        "sin_1"
      ],
      "parameter_labels": [
        "C0",
        "Ccos_1",
        "Csin_1"
      ],
      "unit_roles": [
        "response",
        "response",
        "response"
      ]
    },
    "source_count": 81.0
  },
  [
    0.5
  ],
  [
    0.0,
    0.25
  ],
  {
    "domain": [
      0.0,
      1.0
    ]
  }
]

Result, preview

{
  "schema": "gxtxt.model_inverse.v1",
  "targets": 0.5,
  "roots": 0.08333333333471919,
  "valid": true,
  "residual": 7.541189894766376e-12,
  "bracket": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.25
    ]
  },
  "domain": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0
    ]
  },
  "is_extrapolated": false,
  "iterations": 7.0,
  "function_evaluations": 9.0,
  "reasons": [
    "Local bracket root verified against the response tolerance; global uniqueness is not certified."
  ],
  "x_tolerance": 1e-12,
  "response_tolerance": 1e-10,
  "uniqueness": "not_certified",
  "branch_contract": "caller_declares_continuous_branch",
  "fit_performed": false,
  "uncertainty_available": false
}

curve_model_parameter_state

Access
Registered in the Python Job
Arguments
model state, parameter vector or empty for current values
Units
Units follow NUMERIC_API_v1 operation contract
Result
validated state, named parameters and unit roles; no optimization
Effect
Validate and compact direct curve parameters without optimization or statistics
Types
struct,vector
Declared shape
bounded_1_to_127_parameters
Nonfinite values
error
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "curve_model_parameter_state", args)
Recorded result · curve_model_parameter_state

Download the example script (ZIP).

Example operands, preview

[
  {
    "model": "fourier",
    "parametric": false,
    "order": 1.0,
    "period": 1.0,
    "fundamental_angular_frequency": 6.283185307179586,
    "origin": 0.0,
    "basis": "explicit_period",
    "coefficients": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    },
    "parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    },
    "solver": "least_squares",
    "parameter_metadata": {
      "schema": "gxtxt.curve_parameter_metadata.v1",
      "model": "fourier",
      "order": 1.0,
      "parameter_ids": [
        "constant",
        "cos_1",
        "sin_1"
      ],
      "parameter_labels": [
        "C0",
        "Ccos_1",
        "Csin_1"
      ],
      "unit_roles": [
        "response",
        "response",
        "response"
      ]
    },
    "source_count": 81.0
  },
  []
]

Result, preview

{
  "schema": "gxtxt.curve_parameter_state.v1",
  "model": {
    "model": "fourier",
    "parametric": false,
    "order": 1.0,
    "period": 1.0,
    "origin": 0.0,
    "fundamental_angular_frequency": 6.283185307179586,
    "coefficients": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    },
    "parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    }
  },
  "parameter_ids": [
    "constant",
    "cos_1",
    "sin_1"
  ],
  "unit_roles": [
    "response",
    "response",
    "response"
  ],
  "parameters": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      -3.222678586243158e-17,
      -2.641002862778835e-17,
      1.0000000000000002
    ]
  },
  "lower_bounds": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      -Infinity,
      -Infinity,
      -Infinity
    ]
  },
  "upper_bounds": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      Infinity,
      Infinity,
      Infinity
    ]
  },
  "fixed_mask": {
    "shape": [
      3,
      1
    ],
    "dtype": "bool",
    "values": [
      false,
      false,
      false
    ]
  },
  "nonlinear_optimization": false,
  "accepted": false,
  "initial_values_affect_direct_solver": false
}
Negative test or attempted call · curve_model_parameter_state

Download the example script (ZIP).

Example operands, preview

[
  {
    "model": "fourier",
    "parametric": false,
    "order": 1.0,
    "period": 1.0,
    "fundamental_angular_frequency": 6.283185307179586,
    "origin": 0.0,
    "basis": "explicit_period",
    "coefficients": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    },
    "parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    },
    "solver": "least_squares",
    "parameter_metadata": {
      "schema": "gxtxt.curve_parameter_metadata.v1",
      "model": "fourier",
      "order": 1.0,
      "parameter_ids": [
        "constant",
        "cos_1",
        "sin_1"
      ],
      "parameter_labels": [
        "C0",
        "Ccos_1",
        "Csin_1"
      ],
      "unit_roles": [
        "response",
        "response",
        "response"
      ]
    },
    "source_count": 81.0
  }
]

Result, preview

"GXTXT:ScriptBridge:InvalidArguments: invalid curve_model_parameter_state argument count"

curve_model_evaluate

Access
Registered in the Python Job
Arguments
model state, query vector
Units
Units follow NUMERIC_API_v1 operation contract
Result
X/Y points struct
Effect
Evaluate a persisted scientific curve model
Types
struct,vector
Declared shape
query_rows
Options
derivative=boolean;extrapolation=error_allow_for_knot_models
Nonfinite values
error
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "curve_model_evaluate", args)
Recorded result · curve_model_evaluate

Download the example script (ZIP).

Example operands, preview

[
  {
    "model": "fourier",
    "parametric": false,
    "order": 1.0,
    "period": 1.0,
    "fundamental_angular_frequency": 6.283185307179586,
    "origin": 0.0,
    "basis": "explicit_period",
    "coefficients": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    },
    "parameters": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        -3.222678586243158e-17,
        -2.641002862778835e-17,
        1.0000000000000002
      ]
    },
    "solver": "least_squares",
    "parameter_metadata": {
      "schema": "gxtxt.curve_parameter_metadata.v1",
      "model": "fourier",
      "order": 1.0,
      "parameter_ids": [
        "constant",
        "cos_1",
        "sin_1"
      ],
      "parameter_labels": [
        "C0",
        "Ccos_1",
        "Csin_1"
      ],
      "unit_roles": [
        "response",
        "response",
        "response"
      ]
    },
    "source_count": 81.0
  },
  [
    0.0,
    0.25,
    0.5,
    0.75,
    1.0
  ]
]

Result, preview

{
  "x": {
    "shape": [
      5,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.25,
      0.5,
      0.75,
      1.0
    ]
  },
  "y": {
    "shape": [
      5,
      1
    ],
    "dtype": "float64",
    "values": [
      -5.863681449021992e-17,
      1.0000000000000002,
      1.1664792268009212e-16,
      -1.0000000000000002,
      -3.035661743196906e-16
    ]
  },
  "points": {
    "shape": [
      5,
      2
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.25,
      0.5,
      0.75,
      1.0,
      -5.863681449021992e-17,
      1.0000000000000002,
      1.1664792268009212e-16,
      -1.0000000000000002,
      -3.035661743196906e-16
    ]
  }
}

root_find

Access
Registered in the Python Job
Arguments
callback, bracket or initial value, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
root and convergence diagnostics
Effect
Find a scalar callback root
Types
callback,scalar
Declared shape
callback_owned
Options
tolerance=positive_number
Nonfinite values
error
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "root_find", args)
Recorded result · model:root_find

Download the example script (ZIP).

Example operands, preview

[
  "root_find",
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "polynomial"
      },
      "coefficients": {
        "kind": "array",
        "shape": [
          3,
          1
        ],
        "real": [
          1.0,
          0.0,
          -2.0
        ]
      }
    }
  },
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        2.0
      ]
    }
  ]
]

Result, preview

{
  "root": 1.4142135763730959,
  "fval": 3.9597982226524664e-08,
  "converged": true,
  "exitflag": 1.0,
  "iterations": 6.0,
  "function_evaluations": 8.0,
  "solver": "fzero"
}

minimize_1d

Access
Registered in the Python Job
Arguments
callback, bounds, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
minimum and convergence diagnostics
Effect
Minimize a scalar callback over an interval
Types
callback,vector
Declared shape
callback_owned
Options
tolerance=positive_number
Nonfinite values
error
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "minimize_1d", args)
Recorded result · model:minimize_1d

Download the example script (ZIP).

Example operands, preview

[
  "minimize_1d",
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "polynomial"
      },
      "coefficients": {
        "kind": "array",
        "shape": [
          3,
          1
        ],
        "real": [
          1.0,
          -4.0,
          4.0
        ]
      }
    }
  },
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        4.0
      ]
    }
  ]
]

Result, preview

{
  "x": 2.0,
  "fval": 0.0,
  "converged": true,
  "exitflag": 1.0,
  "iterations": 5.0,
  "function_evaluations": 6.0,
  "solver": "fminbnd"
}

minimize

Access
Registered in the Python Job
Arguments
callback, initial point, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
minimum and convergence diagnostics
Effect
Minimize a callback objective from initial parameters
Types
callback,vector
Declared shape
callback_owned
Options
max_iterations=positive_integer;tolerance=positive_number
Nonfinite values
error
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "minimize", args)
Recorded result · model:minimize

Download the example script (ZIP).

Example operands, preview

[
  "minimize",
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "quadratic_norm"
      },
      "center": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          2.0,
          -1.0
        ]
      }
    }
  },
  [
    {
      "kind": "array",
      "shape": [
        2,
        1
      ],
      "real": [
        0.0,
        0.0
      ]
    }
  ]
]

Result, preview

{
  "x": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0000000021072566,
      -1.0000000048864104
    ]
  },
  "fval": 2.8317536816547166e-17,
  "converged": true,
  "exitflag": 1.0,
  "iterations": 64.0,
  "function_evaluations": 122.0,
  "solver": "fminsearch"
}

nonlinear_fit

Access
Registered in the Python Job
Arguments
X, Y, callback or expression model struct, initial parameters, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
parameters, residuals and fit diagnostics, with bounded trial receipts when multistart is requested
Effect
Fit a callback or declared expression to numeric observations
Types
callback,struct,vector,matrix
Declared shape
model_owned
Options
max_iterations=positive_integer;tolerance=positive_number
Nonfinite values
error
Units rule
caller_owned
gxtxt_api_call("NUMERIC_API_v1", "nonlinear_fit", args)
Recorded result · nonlinear_fit

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      22
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.2380952380952381,
      1.4761904761904763,
      1.7142857142857142,
      1.9523809523809523,
      2.1904761904761907,
      2.4285714285714284,
      2.6666666666666665,
      2.9047619047619047,
      3.142857142857143,
      3.380952380952381,
      3.619047619047619
    ]
  },
  {
    "shape": [
      22
    ],
    "dtype": "float64",
    "values": [
      3.0225792012895787,
      3.3894868954609714,
      3.7987820026518593,
      4.283168150682681,
      4.838638661578362,
      5.426435325505179,
      5.991996410002849,
      6.4916306527930745,
      6.913876928404042,
      7.285107332321677,
      7.656634461979122,
      8.07962585232904
    ]
  },
  {
    "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.0,
        0.25
      ]
    },
    "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",
      
[…]

Result, preview

{
  "parameters": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.9985809013354445,
      0.9866665673334654
    ]
  },
  "predicted": {
    "shape": [
      22,
      1
    ],
    "dtype": "float64",
    "values": [
      2.98524746866891,
      3.4611000642249685,
      3.936952659781027,
      4.4128052553370845,
      4.888657850893143,
      5.364510446449201,
      5.840363042005259,
      6.316215637561317,
      6.792068233117376,
      7.267920828673433,
      7.7437734242294916,
      8.21962601978555
    ]
  },
  "residuals": {
    "shape": [
      22,
      1
    ],
    "dtype": "float64",
    "values": [
      0.03733173262066858,
      -0.07161316876399715,
      -0.13817065712916765,
      -0.12963710465440315,
      -0.050019189314780554,
      0.061924879055977655,
      0.15163336799759008,
      0.1754150152317573,
      0.12180869528666616,
      0.0171865036482437,
      -0.08713896225036954,
      -0.14000016745651145
    ]
  },
  "weighted_residuals": {
    "shape": [
      22,
      1
    ],
    "dtype": "float64",
    "values": [
      0.03733173262066858,
      -0.07161316876399715,
      -0.13817065712916765,
      -0.12963710465440315,
      -0.050019189314780554,
      0.061924879055977655,
      0.15163336799759008,
      0.1754150152317573,
      0.12180869528666616,
      0.0171865036482437,
      -0.08713896225036954,
      -0.14000016745651145
    ]
  },
  "objective": 0.27406343935594607,
  "sse": 0.27406343935594607,
  "rss": 0.27406343935594607,
  "rmse": 0.11706054829786722,
  "residual_rmse": 0.11706054829786722,
  "response_rmse": 0.11161285347859319,
  "r_squared": 0.9986350257854533,
  "adjusted_r_squared": 0.998566777074726,
  "dof": 20.0,
  "rank": 2.0,
  "condition_number": 10.184020722229539,
  "scaled_condition_number": 4.840672073226063,
  "covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.00027298018465493444,
      -0.0009554306462922706,
      -0.0009554306462922706,
      0.003966878715104643
    ]
  },
  "standard_errors": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.01652211199135675,
      0.06298316215548917
    ]
  }
}

covariance

Access
Registered in the Python Job
Arguments
x y {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Effect
Population and sample covariance with paired counts
Types
vector
Declared shape
same_length
Options
nonfinite=error,omit
Nonfinite values
error,omit
Units rule
multiply
Expression function
covariance
gxtxt_api_call("NUMERIC_API_v1", "covariance", args)
Recorded result · covariance

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0,
      2.0
    ]
  }
]

Result, preview

{
  "covariance_population": 0.5,
  "covariance_sample": 0.6666666666666666,
  "n_input": 4.0,
  "n_valid": 4.0,
  "n_nonfinite": 0.0,
  "missing_pair_policy": "pairwise"
}

leastSquares

Access
Registered in the Python Job
Arguments
design response {weights {}} {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric leastSquares
gxtxt_api_call("NUMERIC_API_v1", "leastSquares", args)
Recorded result · leastSquares

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      40,
      2
    ],
    "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
    ]
  },
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      3.502397127693021,
      3.8490402092700293,
      4.195644905551329,
      4.542205220750953,
      4.888715749300064,
      5.235171747734771,
      5.581569197778721,
      5.927904859781541,
      6.274176315802433,
      6.620382001766006,
      6.966521228262664,
      7.312594189716963
    ]
  }
]

Result, preview

{
  "predicted": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      3.506433691178872,
      3.8522890265576515,
      4.198144361936431,
      4.543999697315211,
      4.8898550326939905,
      5.235710368072771,
      5.58156570345155,
      5.92742103883033,
      6.273276374209109,
      6.619131709587888,
      6.964987044966669,
      7.3108423803454485
    ]
  },
  "residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.004036563485851019,
      -0.0032488172876221633,
      -0.0024994563851024054,
      -0.0017944765642585736,
      -0.001139283393926327,
      -0.0005386203379993404,
      3.4943271716159074e-06,
      0.00048382095121102253,
      0.0008999415933237387,
      0.0012502921781178955,
      0.001534183295994751,
      0.0017518093715143124
    ]
  },
  "weighted_residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.004036563485851019,
      -0.0032488172876221633,
      -0.0024994563851024054,
      -0.0017944765642585736,
      -0.001139283393926327,
      -0.0005386203379993404,
      3.4943271716159074e-06,
      0.00048382095121102253,
      0.0008999415933237387,
      0.0012502921781178955,
      0.001534183295994751,
      0.0017518093715143124
    ]
  },
  "objective": 8.661459538286369e-05,
  "sse": 8.661459538286369e-05,
  "rss": 8.661459538286369e-05,
  "rmse": 0.0015097454942617915,
  "residual_rmse": 0.0015097454942617915,
  "response_rmse": 0.0014715178845571644,
  "r_squared": 0.9999998641452419,
  "adjusted_r_squared": NaN,
  "dof": 38.0,
  "rank": 2.0,
  "condition_number": 7.629499604469735,
  "scaled_condition_number": 4.358767688939616,
  "covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      2.9989577847939165e-07,
      -8.833181528847167e-08,
      -8.833181528847167e-08,
      3.212066010489878e-08
    ]
  },
  "standard_errors": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0005476274084442739,
      0.00017922237612781164
    ]
  },
  "weighted": false
}

fitInformationCriteria

Access
Registered in the Python Job
Arguments
plan
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric fitInformationCriteria
gxtxt_api_call("NUMERIC_API_v1", "fitInformationCriteria", args)
Recorded result · fitInformationCriteria

Download the example script (ZIP).

Example operands, preview

[
  {
    "api_id": "STATISTICAL_MODEL_SELECTION_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "observation_status": "value",
    "source_model_id": "math.numeric.nonlinear",
    "source_id": "synthetic_line",
    "source_sha256": "d72098c4decf5a5689de1e11391dc7410d7ec86aa3f4e680c51134f0499052c3",
    "rows_sha256": "fa6ec9ba7307dbf714e5bb050e41749591d3d20cf5fcae88bd1cf99b41ee5216",
    "n": 22.0,
    "free_parameter_count": 2.0,
    "weighted_sse": 0.27406343935594607,
    "log_weight_sum": 0.0,
    "response_sha256": "9e76cffd934fc8aeed063a695ced927642757c3071e58e66745ba011d8ac6147",
    "weights_sha256": "0d811a1ed6f6ec848a389b2ea64546e82ff05e72ac15109d142c621edb8efc65",
    "x_variable_id": "x",
    "y_variable_id": "y",
    "x_unit": "1"
  }
]

Result, preview

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "fit_information_criteria",
  "plan": {
    "api_id": "STATISTICAL_MODEL_SELECTION_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "observation_status": "value",
    "source_model_id": "math.numeric.nonlinear",
    "source_id": "synthetic_line",
    "source_sha256": "d72098c4decf5a5689de1e11391dc7410d7ec86aa3f4e680c51134f0499052c3",
    "rows_sha256": "fa6ec9ba7307dbf714e5bb050e41749591d3d20cf5fcae88bd1cf99b41ee5216",
    "n": 22.0,
    "free_parameter_count": 2.0,
    "weighted_sse": 0.27406343935594607,
    "log_weight_sum": 0.0,
    "response_sha256": "9e76cffd934fc8aeed063a695ced927642757c3071e58e66745ba011d8ac6147",
    "weights_sha256": "0d811a1ed6f6ec848a389b2ea64546e82ff05e72ac15109d142c621edb8efc65",
    "x_variable_id": "x",
    "y_variable_id": "y",
    "x_unit": "1"
  },
  "n": 22.0,
  "free_parameter_count": 2.0,
  "likelihood_parameter_count": 3.0,
  "log_likelihood": 17.023171614305262,
  "aic": -28.046343228610525,
  "aicc": -26.713009895277192,
  "bic": -24.773215868535576,
  "aicc_computed": true,
  "variance_mle": 0.012457429061633912
}
Negative test or attempted call · fitInformationCriteria

Download the example script (ZIP).

Example operands, preview

[
  {
    "api_id": "STATISTICAL_MODEL_SELECTION_PLAN_v1",
    "api_version": 1.0,
    "status": "unavailable",
    "reason": "Canonical predictor and response identities are required",
    "observation_status": "unavailable",
    "source_model_id": "math.numeric.nonlinear",
    "source_id": "synthetic_line",
    "source_sha256": "d72098c4decf5a5689de1e11391dc7410d7ec86aa3f4e680c51134f0499052c3",
    "rows_sha256": "fa6ec9ba7307dbf714e5bb050e41749591d3d20cf5fcae88bd1cf99b41ee5216",
    "n": 22.0,
    "free_parameter_count": "",
    "weighted_sse": "",
    "log_weight_sum": 0.0,
    "response_sha256": "9e76cffd934fc8aeed063a695ced927642757c3071e58e66745ba011d8ac6147",
    "weights_sha256": "0d811a1ed6f6ec848a389b2ea64546e82ff05e72ac15109d142c621edb8efc65",
    "x_variable_id": "",
    "y_variable_id": "",
    "x_unit": "1"
  }
]

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/fitInformationCriteria: A valid public CORE model-selection plan is required"

nestedFTest

Access
Registered in the Python Job
Arguments
plan
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric nestedFTest
gxtxt_api_call("NUMERIC_API_v1", "nestedFTest", args)
Recorded result · nestedFTest

Download the example script (ZIP).

Example operands, preview

[
  {
    "api_id": "STATISTICAL_NESTED_F_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "method": "complete_polynomial_spaces",
    "reduced_id": "degree_1",
    "full_id": "degree_2",
    "n": 22.0,
    "reduced_p": 2.0,
    "full_p": 3.0,
    "reduced_sse": 0.27406343935594457,
    "full_sse": 0.24030958705743355,
    "numerator_df": 1.0,
    "denominator_df": 19.0,
    "source_id": "synthetic_line",
    "source_sha256": "d72098c4decf5a5689de1e11391dc7410d7ec86aa3f4e680c51134f0499052c3",
    "rows_sha256": "fa6ec9ba7307dbf714e5bb050e41749591d3d20cf5fcae88bd1cf99b41ee5216",
    "response_sha256": "9e76cffd934fc8aeed063a695ced927642757c3071e58e66745ba011d8ac6147"
  }
]

Result, preview

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "nested_f_test",
  "plan": {
    "api_id": "STATISTICAL_NESTED_F_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "method": "complete_polynomial_spaces",
    "reduced_id": "degree_1",
    "full_id": "degree_2",
    "n": 22.0,
    "reduced_p": 2.0,
    "full_p": 3.0,
    "reduced_sse": 0.27406343935594457,
    "full_sse": 0.24030958705743355,
    "numerator_df": 1.0,
    "denominator_df": 19.0,
    "source_id": "synthetic_line",
    "source_sha256": "d72098c4decf5a5689de1e11391dc7410d7ec86aa3f4e680c51134f0499052c3",
    "rows_sha256": "fa6ec9ba7307dbf714e5bb050e41749591d3d20cf5fcae88bd1cf99b41ee5216",
    "response_sha256": "9e76cffd934fc8aeed063a695ced927642757c3071e58e66745ba011d8ac6147"
  },
  "status": "value",
  "reason": "",
  "f_statistic": 2.6687374462444327,
  "p_value": 0.11879858241360768,
  "numerator_df": 1.0,
  "denominator_df": 19.0,
  "sse_reduction": 0.03375385229851102,
  "sse_roundoff_clamped": false
}
Negative test or attempted call · nestedFTest

Download the example script (ZIP).

Example operands, preview

[
  {
    "api_id": "STATISTICAL_NESTED_F_PLAN_v1",
    "api_version": 1.0,
    "status": "unavailable",
    "reason": "reduced: Active or undeclared constraints do not support these regular likelihood criteria",
    "method": "complete_polynomial_spaces",
    "reduced_id": "degree_1",
    "full_id": "",
    "n": "",
    "reduced_p": "",
    "full_p": "",
    "reduced_sse": "",
    "full_sse": "",
    "numerator_df": "",
    "denominator_df": "",
    "source_id": "",
    "source_sha256": "",
    "rows_sha256": "",
    "response_sha256": ""
  }
]

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/nestedFTest: A valid public CORE nested-F plan is required"

fitProfile

Access
Registered in the Python Job
Arguments
model predictors response plan {options {kind struct fields {}}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric fitProfile
gxtxt_api_call("NUMERIC_API_v1", "fitProfile", args)
Recorded result · fitProfile

Download the example script (ZIP).

Example operands, preview

[
  {
    "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,
         
[…]

Result, preview

{
  "summary": {
    "schema": "gxtxt.fit_profile_numeric.v1",
    "settings": {
      "parameter_id": "a",
      "confidence": 0.95,
      "search_lower": 1.5,
      "search_upper": 2.5,
      "initial_step": 0.004,
      "parameter_tolerance": 0.0001,
      "max_refits": 48.0,
      "max_seconds": 15.0
    },
    "n": 22.0,
    "p": 2.0,
    "baseline_sse": 0.27406343935594607,
    "objective": "n_log_sse_ratio",
    "threshold": 3.8414588206941263,
    "threshold_distribution": "chi_square_1",
    "threshold_method": "two_erfinv_confidence_squared",
    "interval_policy": "connected_local_profile_component",
    "execution_policy": "sequential_one_thread_per_refit",
    "original_fit_count": 0.0,
    "attempted_count": 26.0,
    "successful_count": 26.0,
    "failed_count": 0.0,
    "max_refits": 48.0,
    "elapsed_seconds": 7.193366050720215,
    "workspace_bytes_bound": 11072.0
  },
  "trial_values": {
    "shape": [
      26,
      4
    ],
    "dtype": "float64",
    "values": [
      1.9945809013354445,
      1.9913809013354444,
      1.9856209013354444,
      1.9752529013354445,
      1.9565905013354445,
      1.9659217013354446,
      1.9705873013354447,
      1.9682545013354447,
      1.9670881013354446,
      1.9665049013354445,
      1.9662133013354446,
      1.9663591013354447
    ]
  },
  "trial_parameters": {
    "shape": [
      26,
      2
    ],
    "dtype": "float64",
    "values": [
      1.9945809013354445,
      1.9913809013354444,
      1.9856209013354444,
      1.9752529013354445,
      1.9565905013354445,
      1.9659217013354446,
      1.9705873013354447,
      1.9682545013354447,
      1.9670881013354446,
      1.9665049013354445,
      1.9662133013354446,
      1.9663591013354447
    ]
  },
  "trial_status": {
    "shape": [
      26,
      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
    ]
  },
  "trial_messages": [
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    ""
  ],
  "trial_columns": [
    "parameter_value",
    "weighted_sse",
    "likelihood_ratio",
    "direction"
  ],
  "status_codes": {
    "converged": 1.0,
    "solver_failure": 2.0,
    "baseline_improved": 3.0
  }
}
Negative test or attempted call · fitProfile

Download the example script (ZIP).

Example operands, preview

[
  {
    "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,
         
[…]

Result, preview

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

linearRegression

Access
Registered in the Python Job
Arguments
x y {weights {}} {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric linearRegression
gxtxt_api_call("NUMERIC_API_v1", "linearRegression", args)
Recorded result · linearRegression

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.6153846153846154,
      0.7307692307692308,
      0.8461538461538461,
      0.9615384615384616,
      1.076923076923077,
      1.1923076923076923,
      1.3076923076923077,
      1.4230769230769231,
      1.5384615384615385,
      1.653846153846154,
      1.7692307692307694
    ]
  },
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      3.502397127693021,
      3.8490402092700293,
      4.195644905551329,
      4.542205220750953,
      4.888715749300064,
      5.235171747734771,
      5.581569197778721,
      5.927904859781541,
      6.274176315802433,
      6.620382001766006,
      6.966521228262664,
      7.312594189716963
    ]
  }
]

Result, preview

{
  "predicted": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      3.506433691178872,
      3.8522890265576515,
      4.198144361936431,
      4.543999697315211,
      4.8898550326939905,
      5.235710368072771,
      5.58156570345155,
      5.92742103883033,
      6.273276374209109,
      6.619131709587888,
      6.964987044966669,
      7.3108423803454485
    ]
  },
  "residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.004036563485851019,
      -0.0032488172876221633,
      -0.0024994563851024054,
      -0.0017944765642585736,
      -0.001139283393926327,
      -0.0005386203379993404,
      3.4943271716159074e-06,
      0.00048382095121102253,
      0.0008999415933237387,
      0.0012502921781178955,
      0.001534183295994751,
      0.0017518093715143124
    ]
  },
  "weighted_residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.004036563485851019,
      -0.0032488172876221633,
      -0.0024994563851024054,
      -0.0017944765642585736,
      -0.001139283393926327,
      -0.0005386203379993404,
      3.4943271716159074e-06,
      0.00048382095121102253,
      0.0008999415933237387,
      0.0012502921781178955,
      0.001534183295994751,
      0.0017518093715143124
    ]
  },
  "objective": 8.661459538286369e-05,
  "sse": 8.661459538286369e-05,
  "rss": 8.661459538286369e-05,
  "rmse": 0.0015097454942617915,
  "residual_rmse": 0.0015097454942617915,
  "response_rmse": 0.0014715178845571644,
  "r_squared": 0.9999998641452419,
  "adjusted_r_squared": 0.9999998605701167,
  "dof": 38.0,
  "rank": 2.0,
  "condition_number": 7.629499604469735,
  "scaled_condition_number": 4.358767688939616,
  "covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      2.9989577847939165e-07,
      -8.833181528847167e-08,
      -8.833181528847167e-08,
      3.212066010489878e-08
    ]
  },
  "standard_errors": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0005476274084442739,
      0.00017922237612781164
    ]
  },
  "weighted": false
}

polynomialFit

Access
Registered in the Python Job
Arguments
x y degree {weights {}} {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric polynomialFit
gxtxt_api_call("NUMERIC_API_v1", "polynomialFit", args)
Recorded result · polynomialFit

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.6153846153846154,
      0.7307692307692308,
      0.8461538461538461,
      0.9615384615384616,
      1.076923076923077,
      1.1923076923076923,
      1.3076923076923077,
      1.4230769230769231,
      1.5384615384615385,
      1.653846153846154,
      1.7692307692307694
    ]
  },
  {
    "shape": [
      40
    ],
    "dtype": "float64",
    "values": [
      3.502397127693021,
      3.8490402092700293,
      4.195644905551329,
      4.542205220750953,
      4.888715749300064,
      5.235171747734771,
      5.581569197778721,
      5.927904859781541,
      6.274176315802433,
      6.620382001766006,
      6.966521228262664,
      7.312594189716963
    ]
  },
  2
]

Result, preview

{
  "predicted": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      3.5043242525477787,
      3.850504116946726,
      4.196666900870928,
      4.5428126043203845,
      4.888941227295094,
      5.235052769795058,
      5.581147231820277,
      5.9272246133707505,
      6.273284914446478,
      6.619328135047461,
      6.965354275173697,
      7.311363334825187
    ]
  },
  "residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.0019271248547578779,
      -0.0014639076766966852,
      -0.0010219953195989007,
      -0.0006073835694317964,
      -0.00022547799502969923,
      0.00011897793971282766,
      0.000421965958444126,
      0.0006802464107904527,
      0.0008914013559548906,
      0.0010538667185455708,
      0.001166953088967304,
      0.0012308548917756568
    ]
  },
  "weighted_residuals": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      -0.0019271248547578779,
      -0.0014639076766966852,
      -0.0010219953195989007,
      -0.0006073835694317964,
      -0.00022547799502969923,
      0.00011897793971282766,
      0.000421965958444126,
      0.0006802464107904527,
      0.0008914013559548906,
      0.0010538667185455708,
      0.001166953088967304,
      0.0012308548917756568
    ]
  },
  "objective": 4.5251910554181355e-05,
  "sse": 4.5251910554181355e-05,
  "rss": 4.5251910554181355e-05,
  "rmse": 0.0011059044305781892,
  "residual_rmse": 0.0011059044305781892,
  "response_rmse": 0.0010636248228837713,
  "r_squared": 0.999999929022501,
  "adjusted_r_squared": 0.9999999251858794,
  "dof": 37.0,
  "rank": 3.0,
  "condition_number": 2.745963008186296,
  "scaled_condition_number": 2.6198672829032033,
  "covariance": {
    "shape": [
      3,
      3
    ],
    "dtype": "float64",
    "values": [
      1.2166754135703835e-08,
      -6.69171477463711e-08,
      7.042678836243952e-08,
      -6.69171477463711e-08,
      3.852793477534878e-07,
      -4.347436826516459e-07,
      7.042678836243952e-08,
      -4.3474368265164585e-07,
      5.685783242627918e-07
    ]
  },
  "standard_errors": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.00011030301054687417,
      0.0006207087463162476,
      0.0007540413279541061
    ]
  },
  "weighted": false
}

polynomialEvaluate

Access
Registered in the Python Job
Arguments
model xq {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric polynomialEvaluate
gxtxt_api_call("NUMERIC_API_v1", "polynomialEvaluate", args)
Recorded result · polynomialEvaluate

Download the example script (ZIP).

Example operands, preview

[
  {
    "predicted": {
      "shape": [
        40,
        1
      ],
      "dtype": "float64",
      "values": [
        3.5043242525477787,
        3.850504116946726,
        4.196666900870928,
        4.5428126043203845,
        4.888941227295094,
        5.235052769795058,
        5.581147231820277,
        5.9272246133707505,
        6.273284914446478,
        6.619328135047461,
        6.965354275173697,
        7.311363334825187
      ]
    },
    "residuals": {
      "shape": [
        40,
        1
      ],
      "dtype": "float64",
      "values": [
        -0.0019271248547578779,
        -0.0014639076766966852,
        -0.0010219953195989007,
        -0.0006073835694317964,
        -0.00022547799502969923,
        0.00011897793971282766,
        0.000421965958444126,
        0.0006802464107904527,
        0.0008914013559548906,
        0.0010538667185455708,
        0.001166953088967304,
        0.0012308548917756568
      ]
    },
    "weighted_residuals": {
      "shape": [
        40,
        1
      ],
      "dtype": "float64",
      "values": [
        -0.0019271248547578779,
        -0.0014639076766966852,
        -0.0010219953195989007,
        -0.0006073835694317964,
        -0.00022547799502969923,
        0.00011897793971282766,
        0.000421965958444126,
        0.0006802464107904527,
        0.0008914013559548906,
        0.0010538667185455708,
        0.001166953088967304,
        0.0012308548917756568
      ]
    },
    "objective": 4.5251910554181355e-05,
    "sse": 4.5251910554181355e-05,
    "rss": 4.5251910554181355e-05,
    "rmse": 0.0011059044305781892,
    "residual_rmse": 0.0011059044305781892,
    "response_rmse": 0.0010636248228837713,
    "r_squared": 0.999999929022501,
    "adjusted_r_squared": 0.9999999251858794,
    "dof": 37.0,
    "rank": 3.0,
    "condition_number": 2.745963008186296,
    "scaled_condition_number": 2.6198672829032033,
    "covariance": {
      "shape": [
        3,
        3
      ],
      "dtype": "float64",
      "values": [
        1.2166754135703835e-08,
        -6.69171477463711e-08,
        7.042678836243952e-08,
        -6.69171477463711e-08,
        3.852793477534878e-07,
        -4.347436826516459e-07,
        7.042678836243952e-08,
        -4.3474368265164585e-07,
        5.685783242627918e-07
      ]
    },
    "standard_errors": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        0.00011030301054687417,
        0.0006207087463162476
[…]

Result, preview

{
  "xq": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.6153846153846154,
      0.7307692307692308,
      0.8461538461538461,
      0.9615384615384616,
      1.076923076923077,
      1.1923076923076923,
      1.3076923076923077,
      1.4230769230769231,
      1.5384615384615385,
      1.653846153846154,
      1.7692307692307694
    ]
  },
  "yq": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      3.5043242525477787,
      3.850504116946726,
      4.196666900870928,
      4.5428126043203845,
      4.888941227295094,
      5.235052769795058,
      5.581147231820277,
      5.9272246133707505,
      6.273284914446478,
      6.619328135047461,
      6.965354275173697,
      7.311363334825187
    ]
  },
  "degree": 2.0,
  "derivative_order": 0.0
}

propagateCovariance

Access
Registered in the Python Job
Arguments
jacobian covariance {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric propagateCovariance
gxtxt_api_call("NUMERIC_API_v1", "propagateCovariance", args)
Recorded result · propagateCovariance

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0,
      1.0
    ]
  },
  {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.01,
      0.0,
      0.0,
      0.04
    ]
  }
]

Result, preview

{
  "covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.01,
      0.0,
      0.0,
      0.04
    ]
  },
  "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.01,
      0.0,
      0.0,
      0.04
    ]
  },
  "method": "first_order_linear_propagation",
  "input_kind": "covariance",
  "input_count": 2.0,
  "output_count": 2.0
}

polynomial_evaluate

Access
Registered in the Python Job
Arguments
model xq {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Effect
Evaluate a polynomial model
Types
model,vector
Declared shape
model_evaluation
Options
derivative_order=0..12
Nonfinite values
caller_owned
Units rule
caller_owned
Catalog token
polynomial_evaluate
gxtxt_api_call("NUMERIC_API_v1", "polynomial_evaluate", args)
Recorded result · polynomial_evaluate

Download the example script (ZIP).

Example operands, preview

[
  {
    "predicted": {
      "shape": [
        40,
        1
      ],
      "dtype": "float64",
      "values": [
        3.5043242525477787,
        3.850504116946726,
        4.196666900870928,
        4.5428126043203845,
        4.888941227295094,
        5.235052769795058,
        5.581147231820277,
        5.9272246133707505,
        6.273284914446478,
        6.619328135047461,
        6.965354275173697,
        7.311363334825187
      ]
    },
    "residuals": {
      "shape": [
        40,
        1
      ],
      "dtype": "float64",
      "values": [
        -0.0019271248547578779,
        -0.0014639076766966852,
        -0.0010219953195989007,
        -0.0006073835694317964,
        -0.00022547799502969923,
        0.00011897793971282766,
        0.000421965958444126,
        0.0006802464107904527,
        0.0008914013559548906,
        0.0010538667185455708,
        0.001166953088967304,
        0.0012308548917756568
      ]
    },
    "weighted_residuals": {
      "shape": [
        40,
        1
      ],
      "dtype": "float64",
      "values": [
        -0.0019271248547578779,
        -0.0014639076766966852,
        -0.0010219953195989007,
        -0.0006073835694317964,
        -0.00022547799502969923,
        0.00011897793971282766,
        0.000421965958444126,
        0.0006802464107904527,
        0.0008914013559548906,
        0.0010538667185455708,
        0.001166953088967304,
        0.0012308548917756568
      ]
    },
    "objective": 4.5251910554181355e-05,
    "sse": 4.5251910554181355e-05,
    "rss": 4.5251910554181355e-05,
    "rmse": 0.0011059044305781892,
    "residual_rmse": 0.0011059044305781892,
    "response_rmse": 0.0010636248228837713,
    "r_squared": 0.999999929022501,
    "adjusted_r_squared": 0.9999999251858794,
    "dof": 37.0,
    "rank": 3.0,
    "condition_number": 2.745963008186296,
    "scaled_condition_number": 2.6198672829032033,
    "covariance": {
      "shape": [
        3,
        3
      ],
      "dtype": "float64",
      "values": [
        1.2166754135703835e-08,
        -6.69171477463711e-08,
        7.042678836243952e-08,
        -6.69171477463711e-08,
        3.852793477534878e-07,
        -4.347436826516459e-07,
        7.042678836243952e-08,
        -4.3474368265164585e-07,
        5.685783242627918e-07
      ]
    },
    "standard_errors": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        0.00011030301054687417,
        0.0006207087463162476
[…]

Result, preview

{
  "xq": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.6153846153846154,
      0.7307692307692308,
      0.8461538461538461,
      0.9615384615384616,
      1.076923076923077,
      1.1923076923076923,
      1.3076923076923077,
      1.4230769230769231,
      1.5384615384615385,
      1.653846153846154,
      1.7692307692307694
    ]
  },
  "yq": {
    "shape": [
      40,
      1
    ],
    "dtype": "float64",
    "values": [
      3.5043242525477787,
      3.850504116946726,
      4.196666900870928,
      4.5428126043203845,
      4.888941227295094,
      5.235052769795058,
      5.581147231820277,
      5.9272246133707505,
      6.273284914446478,
      6.619328135047461,
      6.965354275173697,
      7.311363334825187
    ]
  },
  "degree": 2.0,
  "derivative_order": 0.0
}
Contract query · expression-name:polynomial_evaluate

Download the example script (ZIP).

Example operands, preview

[
  "polynomial_evaluate"
]

Result, preview

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