Advanced Octave A71 — Plots and scientific reporting

by Giux GX-TXT, octave-en, scripts-en 2 min read

Advanced GNU Octave with GX-TXT · Module 12

A figure and a relationship must tell the same result, declaring data, method and limits. We gather synthetic observations and project forecasts in a persistent chart and in a session document.

Objectives and prerequisites

Run A68 and A70 at the same session: the two synthetic series and the two adapted forecasts are needed. The test uses GX-TXT dev112-P011-bis and GNU Octave 9.4.0. Import figura_rapporto.m, register it and run it in the Runner. The octave_project_report document is created-only: to repeat, use a new Session or change the ID.

Compare observations and forecasts

The PlotSpec uses four series: points for synthetic data of A and B and lines for the respective forecasts of A70. Time and response are expressed in seconds and dimensionless units. Open the variant from Plots tab:

The curves represent the values predicted at the sample times, connected graphically; the points are the samples generated with noise. The condition B reaches values close to one more quickly. The differences between points and curves are residual on the data used for adaptation.

Publish the report

The script reads actual datasets, checks the alignment of time and calculates for each residual speed and RMS condition. Writes a text report in the managed output path and publishes it as document.text via DATASET_FILE_PUBLICATION_API_v1. The report states that the data is synthetic, the model, the seed and the standard deviation assumed; remember that the training error is not an independent validation.

To obtain k from the Dataset of the forecasts the script uses the value to 1 s and the reverse formula of the specific model. This step depends on the known structure of the example: for different models it retains and uses the estimated parameters according to their contract, without automatically applying the same formula.

Exercise

  1. What elements of the chart are samples and what forecast?
  2. What does the report document in addition to the estimated numbers?
  3. A low training error demonstrates the ability to predict independent data?

Worked solution

  1. The circles are synthetic samples; the lines connect the model forecasts.
  2. Synthetic nature of data, method, parameters and limits of analysis.
  3. No, we need a separate and appropriate data assessment.

Download the Module 12 scripts (ZIP)

#GNU Octave #GX-TXT #GX-TXT public APIs

Other steps of this project

Leave a Reply

Your email address will not be published. Required fields are marked *