Skip to content

v2.7.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 13:28
6f7a282

Added

  • feasible_region can count the doubt in an estimated error correlation. The new keyword arguments
    correlation_degrees_of_freedom and random_state go with residual_correlation: each of the integration's
    draws then takes a correlation of its own from the inverse Wishart posterior of the error covariance, so the chance
    that one new run meets every window is averaged over what the residuals leave possible. Taking an estimate as known
    understates that chance, by up to a few points with three responses and five degrees of freedom. Without the new
    argument nothing changes. The browser app (factori.al) passes it for a specification of several responses, and
    the Python it shows does too.
  • fit_gaussian_process takes a noise term for a physical experiment. With noise=True the model adds a
    nugget, the noise variance over the process variance (noise_ratio), estimated by maximum likelihood with the
    correlation parameters. Repeated runs at one setting are then allowed, the prediction smooths the runs rather than
    passing through each, and predict adds std_error_new_run, the standard error of one new run there. Without
    noise the fit is the interpolating model, as before (#1374).
  • Browser app (factori.al): a study's significance level. "Settings" now chooses the significance level a study is
    judged at: 0.01, 0.05 (as before) or 0.10. The confidence of every interval is one minus it, so the page shows
    99%, 95% or 90% intervals. Every test, every interval, Lenth's margins of error and a design's power follow the
    level, the page's words name it, and the Python code shown passes it to the library. A study judged at 0.01 or
    0.10 is saved in study format 13, which a page from before the setting refuses, so no study is silently judged
    at 0.05.
  • A split-plot design keeps to limits on the settings. generate_design(..., hard_to_change=[...], constraints=[...]) for the D-, A- and I-optimal designs now builds a split-plot design whose every run meets the
    constraints, a limit that names a categorical level among them, where it used to ignore hard_to_change with a
    warning and build an ordinary design. The built-in search starts from runs inside the limits and takes no exchange
    that leaves them, so its runs lie on its grid of levels inside the limits. metadata["constraints_enforced"] is
    True for such a design. The browser app (factori.al) no longer refuses a factor that is hard to change beside limits.
  • suggest_next_runs proposes the next runs from a model of every run so far. It fits a Gaussian process (with a
    noise term by default) and proposes the setting where the expected improvement over the best result so far is
    largest (Jones, Schonlau and Welch, 1998), drawn from the study's DesignRegion, so every run keeps its limits. A
    batch of runs to make before any result is read (n_runs) follows the kriging believer: each run is taken to give
    its prediction, and the next is chosen with it. It returns the runs with their prediction, standard error and
    expected improvement, the best so far, and the improvement ratio that says when to stop. GaussianProcessFit
    gains with_runs, which adds runs to a fitted model at its estimated parameters. Numeric factors only (#1374).
  • Factorial writes numbers with a decimal comma when a study's settings ask for it, and dates as the browser
    writes them.
    "Settings" has a drop-down for the decimal mark: a period, the default for every new reader, or a
    comma. With a comma the page writes 1,5 in its sentences, tables, equations and charts, and reads 1,5 where a
    range is typed; the study keeps the choice. The Python code keeps the period. The date at the foot of the page
    and in a report's stamp is written as the reader's browser writes dates, the report's with its time zone.
  • Browser app (factori.al): a design exported from JMP, Minitab, Design-Expert or MODDE is recognized.
    "Analyze data you have" knows each program's .csv or .xlsx export by its headings, names the program, and leaves
    out the columns the program numbers and codes its runs with (Minitab's CenterPt was guessed a factor before).
    api_read_table returns the new keys exported_from and set_aside.
    A Design-Expert export, as text or as a workbook, opens with its lettered factors ("a:Temp") as factors, its
    Group column as the whole plot, its units, and its responses still to measure when the design was not yet run.
  • Browser app (factori.al): the balance, a target and a specification of a mixture of four components or more
    are drawn over a triangle.
    Each chart is over three components, at first the three with the largest shares of
    the blend found, the others held at that blend: the balanced blend, the blend that gives the targets, or the
    surest blend. One picker under each chart sets the three for all of them. The captions name what is held; the
    runs are not drawn on such a triangle.
  • Browser app (factori.al): a mixture's balance has a trade-off chart. It puts one response against another over
    2,000 blends drawn evenly from those the components' bounds allow, as the trade-offs of a study of factors do over
    its ranges, with the other blends nearly as good. A blend pressed on it is chosen. Its Python is not shown yet.
  • Browser app (factori.al): a mixture of four components or more is drawn over a triangle. Learn draws the
    fitted response over three components, at first the three whose Cox traces move it most, with the others held at
    the best blend once there is one, else at the design's centroid. Three drop-downs pick the three. They share what
    the held components leave, so the triangle reads in the recipe's own proportions, and the caption names what is
    held. The Cox trace plot stays beside it, and the Python shown draws the same triangle.
  • The browser app (factori.al) takes each factor's possible range. Under the factors, "What each factor can be set
    to" holds a numeric factor's lowest and highest possible settings: a pressure that cannot go below zero. The path
    of steepest ascent stops before its first run past one, and the next study's ranges stay inside them. A design whose
    runs pass one, as a rotatable design's axial runs can, says which runs. A path that once listed no runs because a
    later run broke a limit on the settings now lists the runs before it. A study with a possible range is saved in
    study format 15, which an earlier page refuses.
  • Browser app (factori.al): the report holds the settings chosen on the trade-off chart, under the chart, as
    Learn says them.
  • Factorial has settings that a study keeps, and the first is the colors of its charts. "Settings", in the
    "Studies" menu, chooses among four Scientific colour maps (Crameri, 2018): batlow, devon, la jolla and gray. Each
    is even to the eye and reads in gray and without telling red from green, and a switch flips the chosen one. A study keeps its settings, in study
    format 12, so its link and its file show others what you see; a study's own settings always win, and a tick keeps
    them for your new studies. From format 12 on, a page keeps a setting it does not know and takes no notice of it.
  • The browser app (factori.al) analyzes a split-plot experiment run elsewhere. In "Analyze data you have", a
    column can be marked as the whole plot (a batch, a day's oven load) and another as the block (a replicate). The
    factors that keep one setting inside every whole plot are taken as hard to change, and Learn tests each term
    against the spread it meets in a new table, a factor of several levels as one term, in place of the ANOVA table.
    Montgomery's tensile strength of paper (Section 14.4) gives the F tests and variance components of his Table 14.19.
    A study of a design the app makes with whole plots shows the same table, and its Python prints it.
  • The browser app (factori.al) suggests runs from a model of every run. In Next, for a goal of the largest or
    smallest result and numeric factors, one press fits a Gaussian process of every run with a result and lists 1 to
    8 runs where it expects the most to gain (suggest_next_runs), each with why: it looks better than the best so
    far, or little is known there. Another press adds them to the run sheet as runs of the study.
  • Browser app (factori.al): the trade-off chart can be drawn at another level of a categorical factor. A box for
    each categorical factor above the chart holds the level the settings tried are at: the balanced settings' level at
    first, marked "(balanced)". At another level the chart has no star for the balanced settings, a point pressed takes
    that level too, and the Python shown holds the models at it.
  • Browser app (factori.al): a study keeps what its trade-off chart shows. The responses on its axes, what colors
    its points, the limits typed, the level of each categorical factor and the settings chosen are kept with the study
    (study format 14), so a study opened again, from this browser, a link or a file, shows the chart as it was left.
    The settings tried are drawn again with the same seed, so the choice is found again among them.
  • The design catalog opens its split-plot designs with their whole plots (#1225). Eleven designs, among them
    Montgomery's tensile strength of paper, his plasma etch and oxide furnace, and Goos and Jones's wind tunnel, open
    in the browser app (factori.al) with each run's whole plot and block as the source prints them, and Learn tests
    each term against the spread it meets. An entry of the reference catalog names its whole plots with
    design["whole_plots"], a column or a list of columns, as it names its blocks; a column called whole plot is
    taken without it. A design was taken as split-plot wherever its text said "split", so Montgomery's two halves of a
    2^3 and his blocked central composite design (Problem 11.18) did not open; they now do.
  • A spherical central composite design (#788): generate_design(..., design_type="ccd", alpha="spherical") puts
    the axial runs at the square root of the number of factors, the distance of the cube's corners, so every run but
    the center runs lies on one sphere. It works on a full or a fractional cube, and metadata["alpha_rule"] reads
    "spherical". Before, the name raised ValueError and the distance had to be typed as a number. The 8 spherical
    distances of Box and Draper's Table 15.2 are now checked in the reference catalog.
  • suggest_next_runs and its tool take a target as the goal (#1374): goal="target", target=1200 proposes the
    runs that are expected to bring the response closest to 1200. The expected improvement is in the distance from
    the target, worked exactly; best is the model's prediction at the run nearest the target so far, and
    improvement_ratio is over its distance. A batch is chosen as before, each run taken to give its prediction.
    The browser app (factori.al) suggests runs for a target goal too, once the target is typed.
  • suggest_next_runs is a tool (#1374), so an agent on the MCP server and the doe-designer skill can ask for
    the next runs from a Gaussian process of every run so far: 1 to 50 runs, inside the factors' ranges and any
    limits on the settings, each with its prediction, standard error and expected improvement, and little_to_gain
    true when the improvement ratio is below 1%. It takes at most 200 runs, as the model's cost grows with the cube
    of the runs.
  • fit_gaussian_process, variance_components and multistratum_anova are tools (#1267), so an agent on the
    MCP server and the doe-designer skill can fit a Gaussian process to a computer experiment (with predictions
    and each input's sensitivity), estimate how much of a result's spread each random source gives, and test each
    term of a split-plot or strip-plot design against its own stratum, or see a design's skeleton analysis of
    variance before it is run. The Gaussian process takes at most 200 runs, the other two 2,000 rows.
  • The browser app (factori.al): each measure of "Compare them in detail" leads to its idea in the concept map
    (#1263). The definition of D-efficiency, the A, E, G and I criteria, the spare runs, the largest correlation
    between model terms and each power ends in "See it in context", as a word of the glossary does. The runs, and
    whether a design fits the model, have no idea of their own in the map.
  • All-bias central composite designs (#972): all_bias_ccd(n_factors, n_cube_runs, region="spherical", expand=1.0) in experiments.designs_response_surface returns the center runs (real, and rounded up) and the cube
    and axial distances of the composite design whose moments up to order 5 equal those of a spherical or cuboidal
    region, so the bias from third-order terms a second-order model leaves out is smallest (Box and Draper 2007,
    Appendix 7H). expand spreads the design, as in all_bias_distance. The 84 numbers of Box and Draper's Tables
    7H.1 and 7H.2 are now checked in the reference catalog, and agree.
  • The all-bias distance of a first-order design (#972): all_bias_distance(n_factors, n_cube_runs, n_center_points, region="spherical", expand=1.0) in experiments.designs_response_surface returns the distance
    of a two-level design's corners at which its second moment equals that of a spherical or cuboidal region, so the
    bias from curvature the first-order model leaves out is smallest (Box and Draper 2007, Appendix 6B); expand
    spreads it, 1.15 as Box and Draper suggest. The 122 distances of their Appendix 6B tables are now checked in
    the reference catalog; two disagree by the book's working from its rounded distances.
  • The center runs for orthogonal blocking at a chosen axial distance (#788): blocking_center_points(alpha, n_cube_runs, n_center_cube, n_factors, n_axial_replicates=1) in experiments.designs_response_surface inverts
    blocking_alpha: the center runs the axial block (or blocks) needs for a central composite design to be blocked
    orthogonally at that alpha, a real number that is negative when no count does (Box and Draper 2007, Section 15.3).
    Exercise 15.8's B = 0 at the rotatable alpha with the star run twice is now checked in the reference catalog.
  • The angles of the canonical axes, and the determinant of B (#971): canonical_analysis returns
    axis_angles, the angle in degrees of each canonical axis to each factor's axis (between 0 and 90), and
    determinant, the product of the eigenvalues. 5 numbers of Box and Draper's Chapters 11, 12 and 15 are now checked
    in the reference catalog; the two printed as "roughly 45 degrees" are recorded against the 42.1 and 42.3 degrees
    they round.
  • Box and Draper's A canonical form in the canonical analysis (#971): optimize_responses(..., method="canonical_analysis") returns rotated_form, the axes rotated about the design center: the slope
    theta_i = m_i'b along every axis (linear), and where the response stops changing on each axis
    (stationary_point, -theta_i / (2 lambda_i), None along a flat axis). Before, only the slope along the
    ridge's axis was returned (ridge_form["linear"]). 27 slopes and coordinates of Box and Draper's Chapters 10 and
    11 are now checked in the reference catalog; two disagree by the book's rounding.
  • Box and Draper's canonical summary in rotated_form (#971): unit_change, how much the response changes one
    unit either way along each axis, r_i = (3 theta_i^2 + lambda_i^2)^(1/2) (Eq. 11.2.5), and
    stationary_point_distance, the distance D of the stationary point from the design center (None when an axis
    is flat). 14 numbers of Box and Draper's Chapters 10 and 11 are now checked in the reference catalog; three
    disagree by the book's working from its rounded table entries.
  • A rotatable check kind in the reference catalog (#791): it asks the library's variance_dispersion whether
    a design is rotatable, the entry's printed runs or a design the library makes, for a second-order model or a
    formula. Seven statements that a design is rotatable now are checked, among them Box and Behnken's designs for
    four and seven factors and Box and Draper's third-order design of Exercise 7.28; all seven agree.
  • Center runs for an equal variance at a chosen radius, and unrounded (#788):
    ccd_center_points("uniform_precision", ..., radius=r) gives the center runs of a rotatable central composite
    design whose prediction variance at the center equals that at distance r from it, in the cube's coded units
    (Box and Draper 2007, Exercise 15.3); without radius the rule keeps Box and Hunter's unit. rounded=False
    returns the real number a source prints instead of whole runs. Exercise 15.3's 4.58 (rounded to 5), 5.55 and
    1.48 are now checked in the reference catalog.
  • Axial check blends at a chosen distance (#973): augment_design(design, "add_axial_points", axial_distance=r) on a mixture design places each axial check blend at (1 - (q - 1) r, r, ..., r) on the
    design's simplex, as Box and Draper (Section 16.5) write it, between the vertex (r = 0) and the centroid
    (r = 1/q). The default, midway, is unchanged; axial_distance on any other design or augmentation raises
    ValueError. Box and Draper's axial blends of Exercises 16.3 and 16.4 and Figure 16.10 are now checked in the
    reference catalog; two disagree by the book's working from a rounded r.
  • The optimum spread against variance and bias (#972): optimum_spread(weight="uniform", variance_share=0.5) in
    experiments.designs_response_surface returns the spread (m2/mu2)^(1/2) of a symmetric design for a straight line
    that minimizes variance plus squared bias when the truth is quadratic, for a uniform or a normal weight function
    and a given share of variance in the total (Box and Draper 2007, Section 13.5). The 12 spreads of their Table 13.1
    are now checked in the reference catalog; 11 agree, and the normal weight's 1.04 at a share of 0.2 (1.0525 by
    their Eq. 13.5.8) is recorded as unexplained.
  • Minimum-bias designs of Box and Draper's Section 13.6 checked (#972): Example 13.1's half-side 0.447 and
    Example 13.2's a = 0.4938, n0 = 2.653 and axial distance 0.83 now check through all_bias_distance and
    all_bias_ccd.
  • Python 3.14 is supported, and tested on every pull request. The package's classifiers name it, and the test
    matrix runs it on Ubuntu, as it runs 3.12. Its free-threaded build already ran the whole suite in its own job.
  • Ridge analysis about a focus (#970): optimize_responses(..., method="ridge_analysis", focus={...}) centers the
    spheres on a coded point instead of the design center (Box and Draper 2007, Section 12.4), for radii, multipliers
    or n_steps. Each radius, and stationary_point_radius, is the distance from the focus, and the result carries
    focus. Hoerl's ridge from (0.5, 0.5) on p. 400 is now checked in the reference catalog: 35 of its 36 numbers
    agree, and its R = 0.597 at lambda = 1.6 (0.5965) is recorded as unexplained.
  • Ridge analysis at chosen radii or multipliers (#970): optimize_responses(..., method="ridge_analysis", radii=[...]) reports the ridge at those radii, and multipliers=[...] at those Lagrange multipliers, as a ridge
    table sets it out (Box and Draper 2007, Chapter 12): each multiplier gives the point x = -(B - mu I)^-1 b / 2 and
    its radius directly, on the ridge of maxima above the largest eigenvalue of B, of minima below the smallest, and on
    one of the other stationary paths between them; an infinite multiplier gives the center. n_steps stays the
    default. In the reference catalog 140 rows of Box and Draper's ridge tables are now read at their printed
    multiplier, so their radii become checks and 80 disagreements that came only from the rounding of the printed radius
    are gone; the points of Hoerl's paths 2 and 3 between the eigenvalues (68 numbers) are now checked as well.
  • U-pseudocomponents and the U-simplex check (#973): to_pseudocomponents(blends, upper=...) and
    from_pseudocomponents(..., upper=...) convert blends with upper bounds on their components to and from
    U-pseudocomponents, u_i = (U_i - x_i)/(U - T) with U the sum of the upper bounds (Crosier 1984; Box and Draper
    2007, Section 17.3); lower becomes optional, and one of the two is given. The new u_simplex_check(upper)
    returns U, U - U_min and whether the inverted simplex the bounds cut out lies wholly inside the mixture simplex
    (U - U_min <= T). Box and Draper's Figures 17.4a and 17.4b are now checked in the reference catalog (6 numbers).
  • The browser app (factori.al) says in the brief that a response can be a curve. Under the response,
    "My measured response is a curve (a spectrum, or a value over time)" says in three lines where to paste one curve
    per run, and that Learn predicts the whole curve at any setting with its band. A small picture beside it shows
    three runs' noisy curves, one color per run. A reader who opens it
    finds the box for the curves open under the run sheet. It was found only under the run sheet before. The buttons
    under the responses and the factors now read "+ Add another response", "+ Add another factor" and "+ Add a
    categorical factor".
  • batch.ResampleAligner, batch.DTWAligner and batch.BatchFeatureExtractor: an alignment, a feature
    table and a batch model in one scikit-learn Pipeline.
    ResampleAligner resamples every batch onto
    the number of samples of a reference batch, as resample_to_reference does, and keeps that length for
    new batches. DTWAligner runs batch_dtw in fit and keeps its reference trajectory and tag weights,
    so transform aligns a new batch as the training batches were aligned: a training batch comes back
    exactly as batch_dtw returned it. Both choose the most typical batch as the reference when none is
    named, and refuse a tag with missing values, naming the batch and the tag. BatchFeatureExtractor
    turns the batches into one row per batch of features from batch.features (mean, standard deviation,
    minimum, maximum, last value, and others), one column per tag and feature, as the X block of a
    PLS model of the final quality. The three were in the closed #461. (#1105)
  • batch_dtw also returns reference_trajectory, the trajectory its last iteration aligned every
    batch to, in the original units. With the last row of weight_history it aligns a new batch as the
    batches given were aligned. (#1105)
  • The book's graph of design terms, queried in Cypher (a prototype). ConceptGraph, in
    process_improve.experiments.knowledge, loads the 237 terms and 490 links of Process Improvement using Data
    (the graph the concept map at factori.al/map draws) into relate, an embedded graph
    database. Every term and link carries the line of the book it comes from, so an answer can cite its source:
    graph.query("MATCH (:Term {id: 'curvature'})-[link:REMEDIED_BY]->(fix) RETURN fix.name, link.evidence") returns
    the quadratic model and response-surface-methods.rst:272. ConceptGraph() is read-only. The new tool
    query_concept_graph gives an agent the same graph: called with no statement it returns the labels, the link
    types, a term's properties and example queries.
  • A study's steps kept beside the terms. ConceptGraph("campaign.rl") keeps a file: record_step(study, step)
    stores each reply of recommend_next_step and links it to the book's term for what it found (curvature, lack of
    fit, an effect confounded with an interaction) and for what it recommends; history(study) returns the actions
    in order, as recommend_next_step(history=...) takes them; explain(study) returns the latest step's terms with
    their definitions, book lines and links.
  • relate is not installed with the package, and is not part of [all], because it has no wheel for free-threaded
    Python: pip install relate-db. Without it, ConceptGraph and the tool say so.
  • The browser app (factori.al) shows the Python of a mixture's last two figures (#1242). The overlay of the
    acceptable blends over the triangle draws each response's Scheffé model over the page's grid of blends and
    shades where every response is acceptable, the balanced blend starred. "How tightly to hold each component"
    moves each component 5% of its range along its Cox direction from the best blend, as the page does.
  • The browser app (factori.al) has a page on how it is validated. validation.html says, on one screen,
    what Factorial's designs are checked against: the 22 books, handbooks and papers that print them, and the 8
    open-source packages in R and Python that build them, with the differences found and a grid of which kind of
    design was compared with which package. The footer's "Validation & technical accuracy" now opens it, and the
    textbooks' answers keep a link of their own, "Reproduced from the books". In the design catalog, a design the
    library makes itself has a "Checked" note: the sources that print a design of its kind and size, and the other
    packages that build it as the library does.
  • yates_table_3k: Yates's algorithm for a full three-level factorial. Each pass takes successive
    triples and writes their sums, linear and quadratic contrasts; the table gives each of the
    3^k - 1 single-degree-of-freedom effects ("A", "A^2", "A:B", "A^2:B", ...) with its divisor
    z'z, its orthogonal effect, its sum of squares, its standardized component and its normal score.
    It reproduces Box and Draper's Table 7G.1 and the columns of Table 7G.2. (#803)
  • The factorial-analysis tables are agent tools. yates_table works Yates's algorithm on a full
    2^k or 3^k factorial, and with keep runs a 2^k in reverse for a model's fitted values;
    interaction_components splits the interactions of up to six three-level factors into their
    two-degree-of-freedom components. The MCP server and skills/doe-designer/ can now call them. (#1097)
  • compare_designs reads a column of labels as a categorical factor of two levels, coded -1 and +1 in sorted order.
    It has no square, and I, G and the FDS curves take it at its two levels only, as evaluate_design does. A
    DesignResult with a two-level categorical factor, such as an optimal design's, can now be compared; before, its
    column of labels was refused as "not numeric". A factor of three levels or more is refused with its count.
  • A blocked central composite design takes its center runs block by block. generate_design(..., design_type="ccd", n_blocks=3, n_center_points=[2, 2, 2]) puts the given center runs in each block, the cube
    blocks first and the axial block last, and the axial distance that blocks the design orthogonally follows from
    them. It builds the designs of the NIST/SEMATECH e-Handbook 5.3.3.6.4, Tables 3.30 to 3.32, with their printed
    axial distances (1.63299, 2 and 2). A number still puts half the center runs, rounded down, with the cube runs.
    The cube blocks take the same number, as orthogonal blocking needs; other lists raise ValueError (A11 of #788).
  • The design catalog (factori.al/catalog) says what a family of designs is. A list that holds one family, as
    after a press on "Orthogonal array (Taguchi)" in the filters, has a card over it: what a design of the family is,
    when it is used, what to watch for, the families it can lead to, the work that first published it, and a link to
    it on the concept map. A family's name in an open row of the table is a button: it lists the family's designs of
    that row under the card, and "Show every ... design" on the card lists the family's designs of every size.
  • Nine families of the catalog have a description: orthogonal arrays, mixtures, optimal designs, supersaturated
    designs, Latin squares, randomized blocks, split plots, comparisons and "Other".
    catalog_families() returned
    "" for each, and the catalog named them and said no more. The words are fields of Family (about, use_when,
    watch_for) for the families the knowledge base of design types has no entry for.
  • catalog_families() returns use_when and watch_for for each family: when a design of the family is used,
    and what to watch for, as lists of short phrases. For a family the knowledge base describes they are its
    suitable_for and disadvantages.
  • doe_knowledge describes five more design types: Taguchi orthogonal arrays, mixture designs, supersaturated
    designs, and D- and I-optimal designs.
    Each has its description at the three levels of detail, when it is
    used, its advantages and disadvantages, and the number of runs generate_design builds for it. They are the
    design types generate_design builds that the knowledge base did not describe (#1475).
  • doe_knowledge answers on split plots and Latin squares, as two concepts: generate_design has no design
    type of either name. The concept of randomization named the split plot as related before there was one.
  • Minimum-aberration fractions of 12 to 25 factors in 32 runs. minimum_aberration_generators,
    get_trade_off_table_entry, trade_off_table and generate_design(design_type="fractional_factorial") now give
    them, where they raised SearchLimitError. The search scores a generator set from the weights of the code its
    columns span (the MacWilliams identities) instead of from its defining relation, which finds the same designs
    many times faster: an exhaustive search of all 10.4 million sets for 18 factors takes seconds. The 32-run designs
    it finds are listed, since the search takes seconds, and each has the word-length pattern Chen, Sun and Wu (1993)
    give (A12 of #788; 64 and 128 runs stay open).
  • Minimum-aberration fractions of up to 50 factors in 32, 64 and 128 runs. Factors after Z are named a, b, c, ...
    (without i), as FrF2 names them, so 50 factors have single-letter names, and the exhaustive search now gives 26 to
    31 factors in 32 runs. The fractions of 12 to 50 factors in 64 and 128 runs, too many for any exhaustive search,
    are read from datasets/experiments/minimum_aberration.json, which scripts/minimum_aberration_table.py writes
    with an iterated tabu search. Each has the word-length pattern of the minimum-aberration design of the published
    catalogs (Chen, Sun and Wu 1993; Mee 2009; Xu 2009; Block and Mee 2005), which the tests check.
    minimum_aberration_generators, get_trade_off_table_entry, trade_off_table and
    generate_design(design_type="fractional_factorial") give them where they raised SearchLimitError or the factor
    names ran out, and the trade_off_table tool no longer has cells marked "?" (A12 of #788).
  • A split-plot design keeps fixed runs (hard_to_change with fixed_runs), with the built-in search
    (designs_split_plot.split_plot_design, and generate_design by default). The fixed runs are the design's
    first runs, kept as given, a setting off the grid of levels included; a whole plot that holds one keeps its
    hard-to-change settings for all its runs, and the search chooses the rest. Until now only
    backend="pyoptex" did this, and the default build ignored hard_to_change with a warning. It was the one
    thing only pyoptex could do, so its removal in 3.0 (#1494) loses nothing.
  • The footer of every page of factori.al shows how many people used Factorial each day. Under "Behind it", a
    line of the last 90 days, then a red dot on the last 24 hours, and that count beside it: "89 users, last 24
    hours". It leads to what the server counts, and how. A user is a network and a browser in a day, as the server's
    usage report counts a reader. The server writes the counts, numbers alone, to a public usage.json each hour
    (deploy/factorial/usage.py --public); a copy of Factorial at another address has none, and leaves the line out.
  • factori.al's What-if map can be detached from the page: Detach floats it over the page, where it is moved by its heading and resized by its corner, with a pointer or the arrow keys, and Put back returns it to its place. It stays in view as the page scrolls, still sets both factors at a press, and the browser keeps where it floated.
  • factori.al takes a run made at settings of your own, such as an exploratory run made before the design: "Add a run you made at other settings", under the run sheet. The run joins the sheet and the model is fitted on it with the design's runs. Under the model's equation, a link goes to the runs and their results in standard order, to check a number by hand. Each chart has "Save" under it at its right, so that a reader sees a figure can be saved or copied for a slide.
  • factori.al can share a study in a locker, for two or more people to work on together: "Share this study", in Run, asks first, in a few plain lines that say who will see the study, what the server keeps and how to stop, then gives a link; the results typed in any browser in the locker reach the others. The study is encrypted in the browser with a key that is part of the link, after its #, so the server keeps it and cannot read it. How Factorial works explains lockers under "Can I work on a study with others?", with a picture of the study going through the server encrypted and the key going around it in the link, a line encrypted in front of the reader by the app's own code, and links to that code and the server's for anyone who wants to audit them. A result corrected in one browser reaches the others; one changed in two at once keeps the one that reached the locker first, and the page says which it replaced. Stop using the locker, or remove it for everyone: each browser keeps its own copy. The server's encrypted study locker, deploy/factorial/encrypted_study_locker.py, keeps one padded blob for each locker and nothing else, removes a locker nobody changes for 30 days, and logs nothing that names one.
  • factori.al walks a reader new to designed experiments through the worked example: "Walk me through it", on the example's banner, goes from Design to Next with a note over each stage that says why the stage is there and what to look at. The banner also says what the example is about.
  • factori.al designs and fits a mixture with process variables. A new design, "Mixture with process variables (optimal)", takes two components or more and one process variable or more, such as a thickness or a temperature: a switch on each factor row says which it is. The runs are a D-optimal choice for the linear or quadratic blending model with the process variables crossed with it or added to it, and Learn fits that model: the equation, the coefficients, the ANOVA and the residuals. Practice results and the Python the page shows cover it too. The best settings, What if and the pictures over the blends are not yet offered for it. A mixture given a range beyond 0 to 1 now names this design, where it told the reader to leave a component out.
  • factori.al: "Why this step?", one line over each stage of a study of your own, opens a note that says why the stage is there and what to do in it. It is what the walkthrough says of the worked example, said of any study, and it follows the stage on show.

Changed

  • Contour and surface plots are drawn in batlow. SURFACE_COLORSCALE, the default color scale of the
    library's contour and surface plots and of Factorial's charts, is now the Scientific colour map batlow (Crameri,
    2018), light for a low value and dark for a high one, where it was a ramp of blues. Factorial's correlation map
    follows it. process_improve.visualization.colors gains COLOR_MAPS (batlow, devon, lajolla, grayC) and
    colorscale(name, dark_page=False), which returns one as a Plotly color scale; a plot's own colorscale
    style still takes any other.
  • The desirability contour and the correlation map are drawn in the default color map. The desirability
    contour (desirability_contour) was red, amber and green, which a reader who does not tell red from green cannot
    read; it is now batlow, light for a desirability of 0 and dark for 1 (DESIRABILITY_COLORSCALE). The library's
    correlation map (correlation_map) follows SURFACE_COLORSCALE, where it named Plotly's own blues, and so does
    the Python that Factorial shows for a mixture's response over its blends.
  • Two multivariate plots are drawn in the package's Scientific colour maps (Crameri, 2018), which are even to
    the eye and read in gray and without telling red from green. confusion_matrix_plot (and
    PLSDA.confusion_matrix_plot) defaults to devon, where it was Plotly's "Blues"; its colorscale setting takes
    the name of one of the package's maps ("batlow", "devon", "lajolla", "grayC") or, as before, any Plotly name, so
    settings={"colorscale": "Blues"} gives the earlier figure. Resampler.plot_results draws its ridges in batlow,
    where it was viridis.
  • Factorial's Learn and its report use plainer words in five places, the same in both. The aim reads "where
    each factor's effect curves (main effects and squares)", without "the book's model". The second "What the results
    say" heading is "What each factor does". The line under the model's equation says what coded units are: "-1 is a
    factor's low value and +1 its high value". A setting on the path of steepest ascent that is below zero, for a
    factor whose range is zero or more, is marked "below zero", with a warning that it may not be possible. The
    library's reason for moving past the ranges (recommend_next_step) leads with "the model still rises there, by
    more than 2 times the noise" and keeps its numbers in brackets.
  • Factorial's report ends with "Terms used". Each word the report used that the page defines, such as leverage,
    lack of fit and coded units, is listed once with its meaning, in the order the report used it.
  • A correlation map gives each correlation its sign. compare_designs(...).correlations holds the Pearson
    correlation between a design's terms from -1 to +1, where it held the absolute value; max_r is still the
    largest size among the squares and interactions. The library's correlation_map plot, Factorial's map of a
    study's runs, the maps of the designs it compares and the design catalog's map are drawn from -1 to +1 in a
    Scientific colour map of two colors (Crameri, 2018): vik on a light page, blue through near white to red, and
    berlin on a dark page, whose zero is near black. Each map has a key. The words and the table of pairs still go by
    the size of a correlation. process_improve.visualization.colors gains DIVERGING_COLOR_MAPS and
    diverging_colorscale(dark_page=False).
  • Factorial's report says how it was made in plainer words. The stamp's "Inputs, SHA-256" is "Fingerprint
    (SHA-256)", and its note says what the fingerprint is made from without the details of how. The run order reads
    "In random order (seed 42).", practice results are called "simulated for practice", and the software versions
    moved from the stamp to the foot of the report.
  • Browser app (factori.al): a specification is judged at more combinations of levels. The table "At each
    level" under a specification held the first 12 combinations of the categorical factors' levels. It now holds up
    to 48, and a note says how many there are when a study has more.
  • Browser app (factori.al): the trade-off chart's Python draws the runs and the settings far from them, as the
    page does: the runs made, each by its place in the run order, and the settings tried that lie further from the runs
    than any run does on some response's model, paler. A blocked study's code draws them all alike.
  • Browser app (factori.al): a workbook carries its study's settings. A workbook downloaded from a study now
    holds the study's settings (its color map, its decimal mark, its significance level), and a workbook read back
    puts them in force, as the study's link and file already did. A workbook with none opens with a new study's
    settings. The Python code shown names the study's color map, colorscale("lajolla"), where the code draws one
    itself.
  • analyze_experiment takes a formula's Block as levels wherever it stands (#1236). Block was levels
    only as a term of its own: in Block*A it was the block's number, a straight line across the blocks, and
    Block:A was that number times A, so Block*A and Block + A + Block:A gave two different fits. Now both are
    the model of C(Block)*A: Block:A is a difference in A's effect for each block but one. The analysis of
    variance tests each block term as one row (Block, Block:A) on the blocks' degrees of freedom, the lists of
    significant terms leave block terms out, and model selection scores a formula's block terms as its refit does.
    A formula with Block in a product fits differently from before; one with Block alone, or C(Block), does
    not change.
  • The reference catalog checks 33 more crude sums of squares (#789): the sums about zero, the corrections for
    the average and the uncorrected model sums that Box, Hunter and Hunter, Davies and the NIST handbook print, through
    the library's ss_total_uncorrected, ss_mean and ss_model_uncorrected. Each was a manual check. One
    disagrees by the book's truncation: the Youden square's correction for the average, 3,347,897.286, printed
    3,347,897.28.
  • optimize_responses says how to avoid "no start converged inside the region" under a count_nonzero limit
    (#1259). When the region counts a factor that has no min_when_used, any amount of it above 0 counts as used,
    and the best setting can hold a trace of it that the search never reaches. The error now names those factors
    and says to give each a min_when_used. It still starts with the same words.
  • A curve's 99% band in the browser app (factori.al) rests on 1,000 bootstrap replicates (#1381), where it
    rested on 200: the simultaneous band is read from the 99% quantile of the replicates' largest departures, which
    200 replicates leave to about the second largest. The page now takes ten replicates past the quantile: 200 at a
    significance level of 0.05 or 0.10, as before, and 1,000 at 0.01, which takes about twice as long to refit.
  • The browser app (factori.al) takes limits on the settings in a study of up to 14 factors, where it took 8. The
    picture of the settings that can be run no longer fails where the region samples its corners (past 16 factors) and
    its shadow is a mask of cells, not a polygon (#1284). The table of corners to mark still lists up to 8 numeric
    factors, and says so past that.
  • The browser app's page on how Factorial works has a name that says what it holds:
    technical-details-how-factorial-works.html, where it was about.html, with its own canonical address and share
    card. The old address forwards to it: the server answers it with a permanent redirect that keeps a link's query
    (deploy/factorial/factorial.caddy), and a small page at the old address forwards wherever the server has none.
  • Blocking a fraction warns when the blocks take a two-factor interaction through an alias (#788):
    generate_design(..., n_blocks=...), generate_design(..., block_generators=...) and
    augment_design(..., "add_blocks") raise a UserWarning that names each word confounded with blocks that the
    fraction aliases with a two-factor interaction, such as ABC with DE for the resolution V half fraction of five
    factors in two blocks, which Box and Draper's Table 5.14 marks "Not available". Before, only
    metadata["blocking"]["aliases"] held it. The "add_blocks" explanation now names the aliases too. The blocks
    themselves are unchanged.
  • Factorial: the book pages and the lists of cases speak in the reproduction page's words (#1356). A
    source's page under catalog/books/ draws every number it prints as the bar of its row on
    Reproduced from the books, in the same colors, and names each
    example "Matches the book", "Differs, and we know why", "Multiple choice, wrong on purpose" or "Differs, reason
    not known yet", where it said Matches, Very close, Close or Differs. An example takes the last of these that one of
    its numbers is under, so a misprint no longer reads as a match, and a reason not known yet is never hidden behind
    a known one. Its button, which opens the source's cases on the reproduction page, says so: "Search the book's
    cases", where it said "Show the numbers". Behind "Search every case" the cases are listed by the same four names,
    not by tier, and a source's row counts the cases that match in every number the same way. A printed number is
    named in plain words, such as "a sum of squares" or "an F ratio", where it was named by the catalog's own word
    (anova sum sq, f regression). catalog_reproduction still returns each case's tier.
  • The reference catalog checks 16 more of Box and Draper's standard errors (#791): those worked on a known or
    supposed error standard deviation (65 for the martensite example, 2 for the polymer elasticity designs, the pure
    error 0.457 of Chapter 13), through analyze_experiment's sigma. Each was a manual check, and all 16 agree.
  • The catalog's rotatable check takes a tolerance (#790): the spread allowed on each sphere, as a share of its
    mean, for a design printed rounded. Box and Draper's Exercise 12.12 is now checked: blocks 1 and 2 are rotatable
    for the second-order model, and all three blocks, whose heptagon is printed to three decimals (a spread of 6.1e-4
    of the mean), for the third-order one at a tolerance of 1e-3.
  • A line of saddle centers is a stationary ridge of minimax form (#971): when an eigenvalue of B is flat (within
    flat_tolerance) beside curved ones of both signs and the response has no slope along it, canonical_analysis and
    stationary_point now give classification="stationary_ridge" with ridge_of="minimax", Box and Draper's Table
    11.1 (E); they gave "saddle_point". A saddle that keeps changing along its flat axis is still "saddle_point".
    Table 11.1 (E), recorded as a disagreement, now agrees, and Exercise 11.12's "(E)" is checked with
    flat_tolerance=0.05.
  • The browser app's copy on GitHub Pages sends a reader on to https://factori.al/ (#1237). A page at
    kgdunn.github.io/process-improve/app/ goes to the same page at factori.al, with its query and its # part,
    where the browser keeps no study at that address. Studies are kept in a browser's storage for one address and do
    not move with a redirect, so a browser that keeps some stays, and the page says how many, and how to take them
    along: Your studies, Download all, then drop that file into Your studies at factori.al. The copy's cached scripts
    could run with the new Python for ten minutes after a deploy; factori.al's cannot. The weekly smoke test and the
    check after a deploy now test factori.al only.
  • The browser app (factori.al) says how long a design's search takes on the reader's own device (#1298). The
    wait said before an optimal design is made, and the 5 seconds from which a search is the reader's to start, came
    from one fast machine. The comparison of designs now times each search expected to take half a second or more;
    on a device that took longer than those times, a phone or an older laptop, every later wait is scaled by how much
    longer, for the session, and says "on this device". A device as fast or faster keeps the times as they were,
    since they are the most a search took. A search that was quick on the fast machine can then be the reader's to
    start on a slow one, with its wait said.
  • Messages, docstrings and documentation use American spelling (#1232): "color", "center", "analyze",
    "optimize", "behavior", "catalog", "labeled" and so on, in the library's errors, warnings and plot labels, the
    tool descriptions an agent reads, the browser app's text and the documentation. A test that matches a message
    with a British spelling (match="not recognised", match="does not look centred") needs the American one.
    Names that a saved study, a workbook or a result holds are unchanged: result keys such as
    "standardised_coefficient", the reference catalog's data and module path
    (process_improve.experiments.reference_catalogue), and the settings key colour_map of a study.
  • The plot themes draw slim color bars, contour numbers with a halo, and no box around the journal theme's
    legend
    (#1242). Every theme's contours, heatmaps and surfaces take a color bar 12 pixels thick with its title
    along its side, where a wide one with its title on top took the plot's room; a contour's numbers are in the
    theme's ink with a halo in its paper's color, so they read on a ramp's darkest bands. The default pi_journal
    theme no longer draws a black box around the legend. The runs on a response surface (visualize_doe(..., plot_type="contour")) are drawn with a white face and a dark edge, which read on every color of the surface,
    where the dark dots were lost on its dark bands.
  • The browser app's (factori.al) figures (#1242). "Average result at each setting" draws the model's interval
    for the mean at each setting, with the other factors averaged over the runs. A chart of four lines or fewer names
    each line where it ends, beside the legend. A figure's Python code shades the settings a study's limits rule out,
    as the page does, and numbers each residual by its run's place in the run order. The lines between a surface's
    bands take the page's color, so they show on its dark bands. A figure in three dimensions takes a row of its own
    under "More charts", and is taller there. In a report, a surface with equal axes or a figure in three dimensions
    keeps a shape that suits it, rather than 720 by 340 pixels. A figure's window can save it on a dark background.
  • factori.al: designs in a two-level categorical factor are scored on the nine measures again, with their FDS curves
    and "Compare them in detail", for every aim. Since the fix for an aim with squares they were listed with runs,
    spare runs and power only.
  • The browser app's (factori.al) footer has five short links in place of six long ones. They are Open the
    app, User guide, Design catalog, Is it accurate? and Learn experimental design, then How it works and Python
    package. Each name is one to three words and stays on one line on a phone. The page of what Factorial does is
    headed "User guide", and the footer's button to it reads "Read the user guide". The catalog has one name
    everywhere: the "Studies" menu's link to it reads "Design catalog" too, in place of "Catalog of experimental
    designs".
  • "Is it accurate?" is the one way to the page on validation. The footer's link and the design catalog's door
    have that name, and the page's heading is "Is Factorial accurate?". The textbooks' answers ("Reproduced from
    the books") are reached from that page, and their way back leads to it; the footer no longer lists them.
  • The concept map's page is now "Learn experimental design", at the same address (factori.al/map). Three
    ways to learn are over the map: the chapter of Process Improvement using Data, with the book's DOI as text to
    copy; the Coursera course Experimentation for Improvement; and the course's videos on YouTube, which have no
    quizzes or course material. An address that names an idea still opens at the map. The footer no longer links
    to the book; the page for learning does. The weekly link check (tools/check_readme_links.py) requests the
    page's three links too, the video and its playlist through YouTube's oEmbed endpoint, and opens an issue when
    one stops answering.
  • Every family of designs in the catalog names the work that first published it (#1479). The Latin square,
    the randomized blocks and the split plot had none: catalog_families() gives Fisher (1925), Statistical
    Methods for Research Workers
    , with the section of each, and a family's card on the page shows it.
  • The knowledge base's lists for its first seven design types are sentences. suitable_for,
    disadvantages and the method of a can_augment_to step of the full factorial, the fractional factorial,
    and the Plackett-Burman, central composite, Box-Behnken, definitive screening and OMARS designs were labels,
    such as "Initial exploratory experiments". Each is a sentence that says when the design is used or what goes
    wrong, as for the other design types, and description["novice"] uses no symbol it does not explain. The
    catalog's page shows them on a family's card, and doe_knowledge returns them.
  • The design catalog's list (factori.al/catalog) has one short line for each design. A line names a design by
    its family and size, marks what it estimates in the color of its cell in the table, and ends in a small "Open"
    button; a card a design held three or four designs to a screen. Entries that hold the same runs are one line:
    "printed in 72 places" opens onto them, each with its source and its own way to open, where the list repeated
    the 2^3 factorial 73 times. The count says how many are different: "1,404 designs, 750 different".
  • A design's picture in the list has a run a row and a factor a column, and a key over the list says so, with
    its three colors for a low, a middle and a high setting. The picture lay across the card with nothing to say what
    it showed.
  • The design catalog (factori.al/catalog) opens on the search, and its table says what a design of each size can
    tell you.
    The page's first line says what it holds: over 1,400 experimental designs from more than 20 textbooks
    and papers. The question on the reader's field, the three doors and the Published / Generated / Both switch have
    left the top. The switch is a filter, "Where it is from", with a line on what the two kinds are; the lists by book
    and by field are links at the foot of the page; and the count reads "1,404 designs".
  • The table of designs by factors and number of experiments has one coloring. A cell's color is the most that
    one of its designs estimates: each factor's own effect, how factors act together, or curvature. It was what most
    designs of the cell estimate, or how many the cell holds, and both followed the sources the catalog happens to
    hold. The colors are three steps of batlow, the color map of the app's charts, in place of four shades of one
    blue. A row's number is ringed and has an arrow, as the button it is; the two sides are named "Factors" and
    "Number of experiments (scales with cost)"; and how to read the table is a fold under it.
  • A family's row in the catalog's filters has one number, the designs it holds. The year the family was first
    published stood beside it on some rows and not on others.
  • The knowledge base's lists for a design type are in plain words. suitable_for, disadvantages and the
    method of a can_augment_to step no longer use a symbol or an abbreviation that they do not explain: "More
    runs than BBD for same k" is "More runs than a Box-Behnken design for the same number of factors". The design
    catalog's page (factori.al/catalog) shows these lists on a family's card, to a reader who may meet the design
    for the first time (#1475).
  • A full factorial at two levels cannot detect curvature without center points. The knowledge base said it
    "cannot estimate quadratic effects without center points"; center points show that curvature is present, and do
    not estimate a quadratic effect.
  • The catalog's cards for Taguchi arrays, mixtures and supersaturated designs take their words from the
    knowledge base
    , as the cards of the factorial and response surface families do, and say which families the
    design can lead to. catalog_families() finds a family's entry by the generate_design type that makes the
    family, so a family and its design type need not share a name. A card's "Watch for" is the design's
    disadvantages, then the family's own cautions: a caution is not always a disadvantage.
  • The Learn page (factori.al/map) says what the Coursera course costs. Its card reads "Free to preview; the
    certificate is paid.", as Coursera now offers the course.
  • get_trade_off_table_entry no longer lists a defining relation of more than 1,023 words. A design of more
    than ten generators, such as 15 factors in 16 runs or 25 factors in 32 runs, gets its resolution from its
    word-length pattern, and its defining_relation and aliases are empty, as generate_design already leaves
    such a relation out of its metadata. Listing the 2^20 - 1 words of 25 factors in 32 runs, with their alias chains,
    took hours; it now takes under a second. The printed report says how many words the relation has.
  • The knowledge base's run counts for central composite and Box-Behnken designs are the ones generate_design builds, with its three center points (17 and 15 runs for three factors, not a textbook's 20 and 15), and a test holds them. The rule that prefers a Box-Behnken design compares those counts: it needs as many runs as a central composite design at four factors, and far fewer from six (#1485).
  • Factorial names a stage in a sentence with the stage's dot, and the name leads there. The page said "enter
    them in Run" with a link and no dot, "once Learn has analyzed them" in plain words, and "enter their results
    in Run" in the line under the bar, where it could be no link. Each stage a sentence names is now the dot of
    that stage, in its color, and its name as a link to it: in the page's notes, in the line under the bar, in what
    Learn and Next say, and in the Feedback dialog, which closes to show the stage. A report prints the stage's name. The note under "My measured response is a curve"
    reads: "You can paste one curve per run under the Run sheet. In the Learn step it will predict the whole curve
    at any setting, with its error band."
  • factori.al's What-if map is beside the run sheet on a wide screen, in view with the What-if row it sets, and stays in view as the runs scroll past. On a narrower screen it is under the run sheet. The rule under a run's number is drawn again when the sheet scrolls sideways.
  • factori.al's run sheet and What if are one table, in Run. Over the names, the factors and the responses in groups, and under them a row of each factor's range and each response's goal in words. Once there are results, a row of pictures for each response and the What-if row sit over the runs in the same columns, with each response's prediction in its own column. A result that misses its goal has a dagger, and the best run so far is in bold. Learn links to the What-if row (#1504).
  • factori.al's What if is one table: a small picture of what each factor does to each response, a What-if row of boxes, sliders and level buttons under the factors, and each response's prediction drawn against its goal with a word (inside, likely inside, probably outside, outside), read off its 95% prediction interval, with the 20 runs you might get on the same drawing. Two lines lead it: the best run so far, and how many goals the What-if row's settings meet. Buttons set the row to the best for every goal, the best run, or the middle of the ranges; the table of intervals and leverage is a press away (#1503).
  • factori.al says the way through for a recipe with a process variable. A limit typed as an equality of two factors, such as Zinc + Binder = 100, names the factor to leave out, and a mixture design given a process variable says to leave a component out and choose an optimal design.
  • factori.al is easier to start in. The welcome's button reads "See a worked example". On a phone the worked example's banner is one line and the tip about dotted words waits for the first scroll, so the answer is on the first screen. Under the answer, "Try other settings" goes to the What-if row. In Run, the tabs to enter or simulate results are folded when a study opens with every result in, so the run sheet comes sooner.
  • factori.al's detached What-if map floats over every stage of the study (Design, Run, Learn and Next), not over Run alone, and says under its chart what the What-if row predicts at the two factors' settings.
  • factori.al's Learn ends with the word Report and three buttons side by side: View, Save as PDF and Python notebook. Save as PDF replaces the .html download: it opens the report with the browser's print dialog over it, where "Save as PDF" writes the file. Every panel of code is headed "Show Python code for this", and Learn's own link to Feedback is gone: the bar's button is in reach on every stage.
  • factori.al's page of the books' answers is headed "Factorial matches the major textbooks". Under its count, the headline reads "printed numbers match. And where they don't, we can explain why. See below.", and says for how many the reason is not known yet while there are any.
  • factori.al's Run stage keeps three controls where it had nine: "See what the results say", "Download the run sheet (.xlsx)" with "or as .csv" beside it, and "Share this study". Share asks one question: work on the study together, encrypted, or copy a plain link instead, which says it is not encrypted and cannot be taken back. A link now always carries the results: the "with its results" box is gone. The report and the notebook are in Learn, and the study's menu still opens the report from any stage.
  • robust_regression(fit_intercept=False) fits its line through the origin (#1513). It returned the
    repeated-median slope of the line with an intercept and set the intercept to zero, so the line did not fit data
    whose intercept is not zero: for y = 0.2 x - 0.5 over x from 10 to 20 the slope was 0.2, with every residual -0.5.
    The slope is now the weighted median of y / x with weights |x|, which is the least-absolute-deviations line
    through the origin (0.169 for those data), and each bootstrap resample is refitted the same way. The slope's
    standard error, its t value and its least-squares interval rest on the sum of squares of x, as the leverage did, so
    x values that are all equal give a slope and its interval. This changes the numbers of every call with
    fit_intercept=False whose data have an intercept other than zero; a call with an intercept returns what it did.
    The robust_regression tool changes with it.
  • factori.al: the fitted response surface is one card with a switch, 2D or 3D, in place of a second chart under More charts. A figure in three dimensions now starts at the view that shows the most: a surface from its low side, and the cube of predictions turned so that no corner lies on another.
  • factori.al: under the fitted response surface, the caption no longer repeats the two factors that the axes and the two boxes already name, and the words "Draw it over" and the two boxes share one line where the card has room and take a line each, at one left edge, where it has not. A study of two factors is said to be drawn over both.
  • factori.al: the fitted response surface in three dimensions starts with its axes as its flat plot has them, the first factor from left to right and the second from front to back, where that view shows at least 80% of what the best view shows. A surface that rises toward the reader in that view keeps the view that shows the most.
  • factori.al writes units after a name in square brackets, Temperature [degC], on every axis, heading and study title, and in the Python it shows; they were in round brackets. A pasted table and a saved study are read as before, with units in either kind of bracket.
  • factori.al: each note of the walkthrough is headed by its stage as the bar shows it, with the same point, color and letters, and the note's edge is in that color. The button to the next stage is in the color of the stage it leads to. The worked example's banner now reads "using 3 factors (temperature, pressure and flow) to increase the percentage product yield from a reactor", and no longer says which process-improve computed it: the status line says that.

Deprecated

  • check_predictive_signal and count_discoveries_under_null take random_state (#1149), as
    docs/development/reproducibility.rst asks of every public function that draws: a seed or a
    numpy.random.Generator, in the place seed had, with the same default of 0, so a call gives the same
    numbers as before. Their seed= keyword is deprecated since 2.7.0 and will be removed in 3.0; it still works,
    with a DeprecationWarning. PCA.parallel_analysis and PCA.select_n_components now say in their annotations
    that they take a Generator, as they did.
  • Public names spelled the British way have American names (#1232). Each former name still works until 3.0,
    with a DeprecationWarning that names its replacement:
    • process_improve.batch.plotting.colours_per_batch_id, and its use_default_colour and colour_map: use
      colors_per_batch_id, use_default_color and color_map.
    • MultiTagPlotSettings.colour_map, also as the "colour_map" key of plot_multitags(settings=...): use
      color_map.
    • get_rgba_from_triplet(incolour=...) and generate_one_frame(animation_colour_assignment=...): use incolor
      and animation_color_assignment.
    • process_improve.chemistry.normalisation_check: use normalization_check.
    • process_improve.experiments.design_catalog.normalise_family: use normalize_family.
    • process_improve.experiments.reference_catalogue.reproduce_reference_catalogue: use
      reproduce_reference_catalog.
    • process_improve.multivariate.UncentredDataWarning: use UncenteredDataWarning. The two names are the same
      class, so a warning filter or a pytest.warns written with either name matches both.
    • The warn_on_uncentred keyword of PLS, PLSDA and PRM: use warn_on_uncentered.
    • process_improve.univariate.least_favourable_means: use least_favorable_means.
  • backend="pyoptex" is deprecated in generate_design and the optimal-design dispatchers: it raises a
    DeprecationWarning since 2.7.0 and will be removed in 3.0. The default, backend="auto", builds every
    optimal design with the built-in engines, split-plot designs included, so a call that leaves backend alone
    is unaffected.

Fixed

  • Browser app (factori.al): the balance's Python runs for a model with one factor nested in another. The code
    shown for the balance, and for the trade-off chart after it, now adds the indicator columns such a model is fitted
    on, as the analysis's code does. It raised on the nested term's name before.
  • A column whose sum passes the largest float is centered at its mean (#1149). MCUVScaler, the
    autoscaling of PLS, MBPLS and the cross-validation criteria, and TPLS took a column's mean with numpy's or
    pandas' mean, which is inf once the column's sum overflows, near 1e308. MCUVScaler then centered the column
    at 0 without a word: on the LDPE data with Y in units of 1e303, PLS and MBPLS predictions were 12% and 16% wrong,
    and TPLS refused the data as having no variation. The mean is now taken as column_sd takes the standard
    deviation, on the column divided by a power of two, and is the same as before, bit for bit, wherever no sum
    overflowed.
  • The gray color map starts at a dark page's own gray, not at black. colorscale("grayC", dark_page=True) and the
    browser app's Gray map began at #000000, darker than the page (#141517), so the lowest values stood out from it
    instead of fading into it. The map is now sampled from 6% of the way along, #131313; its light end is unchanged.
  • PLS.cross_validate refuses a number of folds that is not whole (#1114). cv=5.5, cv=5.0 and cv="5"
    were each read as 5 folds without a word; they now raise ValueError, as the rest of the family does for a
    count that is not whole. "loo", a Python or numpy integer, and PLSDA.cross_validate's class-balanced
    folds are unchanged.
  • A hosted tool call whose worker dies while it starts says so (#1130). It was reported as "worker died (likely
    exceeded memory limit)", but the memory limit applies only once the worker has started. It now raises
    ToolSafetyError saying the worker died while starting, and names a likely cause: a main script started with
    spawn (macOS, Windows) without an if __name__ == "__main__": guard.
  • TPLS converges on a component whose iteration swings (#1163). The loop of passes is not a power iteration.
    Once D is deflated, the F block's score t_f = F r / r'r grows as 1/|r| in some directions, the super weight
    swings between the blocks, and u can alternate between two states for ever. The component was then the state
    of the last pass, which differed between platforms. A component that stops at max_iter is now iterated again
    from its start, damped: each pass that turns u less in two passes than in one halves how far later passes move
    it. Damping keeps the fixed point, so the damped run converges to a solution of the same equations. A fit that
    converged before is unchanged; one that did not converge either way warns as before.
  • The Python the browser app (factori.al) shows for the coefficients marks each true value, as the figure does
    (#1242). For results simulated from a known process, the figure draws each term's true value under its estimate;
    the code drew the estimates alone. It now fits the same model to the process's results without noise, and draws
    those values the way the page does.
  • The browser app (factori.al) leaves "See it in context" out of a definition when it has no network and its
    offline copy does not hold the concept map
    (#1263). The link led to "This page needs a network".
  • The browser app (factori.al) hands over a workbook or a notebook asked for just before a new study is started,
    and says simulated only of runs it simulated
    (#1169). A workbook asked for and overtaken by a new study failed
    with an error, as the page named it after Python answered; it is named by the run sheet it holds. A notebook of
    several responses, overtaken the same way, failed or mixed the two studies; it is dropped. Confirmation runs and
    runs along the path were said to have simulated results when Python refused to simulate them; they now ask for
    their results.
  • The browser app (factori.al) keeps a design option the reader sets while the designs are being compared
    (#1355). Until the reader names a design, the page picks one when its comparison ends and puts that design's
    options in the form. A comparison that ended after the reader had set, say, 2 replicates put 1 back, and the run
    sheet was made with 1. An option the reader sets now counts as the reader's choice, as naming a design does.
  • The browser app (factori.al) keeps a factor's possible range when a design is picked, and makes the design
    with it
    (#1322). Picking a design from the comparison, as the page does itself when its comparison ends, reset
    the possible ranges and the hard-to-change ticks typed meanwhile. A possible range also did not count as a change
    to the plan, so making the run sheet could reuse a design the comparison had made without it: its runs could go
    past the range, and the study did not keep it. Both are kept now, and a typed range makes the design again.
  • The Python the browser app (factori.al) shows for a surface draws it in the study's color map (#1381). A
    fitted response surface, a 3D surface or a map of the prediction variance is drawn by visualize_doe in batlow,
    the library's own map, and the page redraws it in the study's; the code shown now does the same, so running it
    gives the figure the page shows.
  • The Python the browser app (factori.al) shows for a mixture's triangle stars the best blend, as the figure
    does
    (#1242). The figure marks the best blend with a star; the code drew the fitted response and the runs alone.
  • A weighted PLS fit, and PRM, judge their rows over the rows the fit used (#1149). PLS(sample_weight=...)
    left a row of weight 0 out of the fit, as documented ([1, 1, 0, 0, 1] is the fit to rows 0, 1 and 4), but
    took explained_variance_, the T² limit and its ellipse, the SPE limit and the score limits over every row.
    For PRM, whose robust weights set an outlier aside, one row at 1e10 made the score variances about 1e18 and every
    other row's T² 0, and a row at 1e160 raised numpy overflow warnings. Each is now taken over the rows of positive
    weight, in their weights, with Kish's effective number of rows: 0/1 weights give the fit to the rows of weight
    1, and weights scaled together give the same limits. A far row's SPE is exact, and its T² past the largest float
    is inf, without a warning. An unweighted fit is unchanged.
  • multistratum_anova gives no F test in a stratum that the terms fit exactly. Such a stratum's residual
    is rounding error only. It was divided into an F of 10^15 or more, with a p-value near 0, and on Windows with the
    lowest supported numpy it was an exact 0.0 that raised ZeroDivisionError. The residual sum of squares is now 0,
    and that stratum's F and p-value are NaN, as where the residual has no degrees of freedom.
  • A constant target no longer changes how an unscaled PRM fits the others (#1092). PRM(scale=False) gave a
    target with no spread a unit of 1 in Y's units, and the floor of its convergence test followed the largest unit.
    Beside a target in units 1e9 times smaller, the floor was a billion times too high: on 30 rows the reweighting
    stopped after 3 iterations instead of 9, with other weights and coefficients. The floor is now taken over the
    targets that vary, so the fit of the others is the same with or without the constant one, in any units. A fit
    with no constant target is unchanged.
  • model_selection searches mixture-process data without an intercept. Mixture components
    beside process factors sum to 1, so they make up the intercept, as in a Scheffe model. The search
    of a standard model still added one: on the 7 blends of a simplex-centroid design at two settings
    of a process factor T, analysis_type="model_selection" with model="main_effects" selected
    y ~ x1 + x2, with an R-squared of 0.73, and the default "interactions" model selected
    y ~ x1 + x2 + T + x1:x2 + x1:T + x2:T, for a response with an x1:x2 blending term and x1:T
    and x3:T terms. A standard model ("main_effects", "interactions", the default, or
    "quadratic") is now the mixture-process model of that order (mixture_process_model), and a
    formula without an intercept over the components, such as
    y ~ -1 + x1 + x2 + x3 + x1:x2 + x1:x3 + x2:x3 + x1:T + x2:T + x3:T, keeps its linear blending
    terms. Every linear blending term stays in and the search chooses among the others: the
    interactions and quadratic models now select y ~ -1 + x1 + x2 + x3 + x1:x2 + x1:T + x3:T
    (R-squared 0.997). A categorical process factor is coded in L - 1 columns, as
    analyze_experiment codes it beside components, so the search scores, and n_terms counts, the
    model analyze_experiment fits for the selected formula: T:catalyst was three columns where it
    fits two. Scheffe models and data without process factors are searched as before. (#1169)
  • ttest_independent_from_df and ttest_paired_from_df check their arguments with fewer than two
    groups.
    The confidence level was checked for each pair of groups, and the correction name
    only once there were comparisons to correct, so data with one group returned an empty table for
    conflevel=95 or correction="bonferroni". Both are now checked first, with the messages the
    other functions give: ValueError: conflevel must lie in (0, 1); got 95. and ValueError: correction must be one of 'holm', 'bh', or None; got 'bonferroni'. (#1169)
  • The robust_regression tool refuses an n_boot it cannot draw in time. Its limit of 1,500
    points bounded the default resamples only: an explicit n_boot=999 at 1,500 points passed the
    input contract and ran for about 26 s, past the 10 s timeout. The fit and each resample are a
    repeated median whose cost grows as the square of the number of points, so the contract now
    allows (n_boot + 1) times the number of points squared up to the work of the default at 1,500
    points (the fit and 39 resamples): at most 999 resamples up to 300 points, 89 at 1,000 and 39 at
    1,500. A larger call is refused before any worker starts, with a ToolInputInvalidError that
    says, for example, robust_regression draws at most 39 bootstrap resamples of 1,500 points as a tool; got n_boot=999. ... Pass n_boot=39 or fewer, fit a random sample of fewer points, or call process_improve.regression.robust_regression in Python. The n_boot description in the tool's
    schema gives the limit. The default resamples, and the Python function, are unchanged. (#1169)
  • OLS.prediction_interval on an unfitted model raises NotFittedError, as OLS.predict does.
    It checked with an assert, so it raised AssertionError, and under python -O, which removes
    asserts, it went on to an AttributeError for a model never fitted, and to NaN intervals without
    a word for a fit that had too few rows. It now raises sklearn's NotFittedError: OLS must be fitted before calling prediction_interval(). in both cases, however Python runs. (#1169)
  • interaction_components and yates_table refuse a response that is also named as a factor.
    interaction_components(data, "y", ["A", "y"]) split the response by its own three values without
    a word; both now raise ValueError: "The response 'y' cannot also be a factor." (#1097)
  • factori.al: a study with a two-level categorical factor and an aim with squares (curvature or the whole response)
    no longer says that every design "cannot fit this model". The comparison squared the categorical factor, whose
    square is the intercept; its designs are now listed with their runs, spare runs and power, as for a categorical
    factor of three levels or more.
  • factori.al: the number of coefficients under Runs, the runs an optimal design opens with, and the fewest runs it
    accepts now count a categorical factor as it is fitted: no square, and a factor of L levels as L - 1 columns in its
    main effect and in each interaction. A study of a raw material A or B, a concentration and a temperature read "The
    model has 10 coefficients" for the quadratic model, which has 9.
  • The design catalog files 18 records in the family whose card describes them (#1478). A word that was a
    rule by itself filed what only shared the word. Three crossed and nested classifications of Davies (1956)
    were orthogonal arrays, by the word "crossed": they are comparisons. Regular simplex designs were mixtures,
    by the word "simplex": four have no family, and the simplex-sum design is a central composite design. A
    fitted equation printed without its runs was in two families: all 23 are under "Comparison or regression".
    catalog_records() and the page (factori.al/catalog) give the new families.
  • Montgomery's supersaturated design for ten factors is its six runs. The record
    montgomery-supersaturated-12-run held the table the design is taken from, 12 runs and 11 factors. That
    table is a record of its own, montgomery-plackett-burman-12-run-sorted, and the design is the same runs as
    generate_design(..., design_type="supersaturated") makes for ten factors.
  • Three statements of the knowledge base about response surface designs were not true of the designs the
    library builds.
    A central composite design built on a full factorial has as many runs as a Box-Behnken
    design or more, not more for every number of factors: both have 27 for four. A Box-Behnken design does
    not lead to a central composite design: it has no run at a corner of the cube, so can_augment_to of
    box_behnken is empty.
    The min_runs of a mixture design gives one number: its formula is the model's terms and the centroid.
  • Two rules of factori.al's stylesheet were cancelled by a stray closing brace before each. One laid out the
    top of the design catalog, the other the card under the concept map, so each was shown with the browser's own
    layout. Both braces are gone, and a test reads the stylesheet's braces.
  • PLS.cross_validate and PLSDA.cross_validate with n_bootstrap no longer fail on a resample of one class.
    A bootstrap resample drawn from the rows of a single class, or any resample on whose rows no column of Y varies,
    has nothing for X to explain, and its fit raised NotEnoughVarianceError: for a PLS-DA of 12 rows, 6 of each
    class, about one resample in 2,000. Such a resample is drawn again, in PLS, PLSDA and PRM, which share the
    code. A seed whose resamples all varied gives the same result as before.
  • Seven records of the book in the design catalog that were filed under "Other" are in their family: a 3^3 full factorial, two mixtures, a path of steepest ascent and a one-factor-at-a-time search (comparison), and a point exchange worked by hand (optimal) (#1483).
  • Five more records of the book in the design catalog are in their family instead of "Other": a fold-over and an eight-run fraction (fractional factorial), a 2^2 factorial with a corner replaced (full factorial), and the case study's two augmented designs (split plot). The seven left in "Other" are small designs that work a calculation (#1483).
  • The knowledge base's Taguchi entry credits Box (1988) and Nair (1992) with criticizing signal-to-noise ratios, which is what they say, not the analysis of crossed arrays as such, and credits the run savings of a combined array to Shoemaker, Tsui and Wu (1991). Its 16 cited statements were checked against published sources (#1484).
  • factori.al: in a study run in blocks, runs that a model of every run suggested were added with no block, and the analysis then refused the run sheet. Runs added later are now a block of their own.
  • factori.al: a figure in three dimensions keeps the words of its axes in view in a card of any width. A long axis title takes two lines, the scene is lifted over the titles under it, and in a narrow card the letters are smaller and the upright axis has fewer numbers. The fitted surface in three dimensions has no color bar: its upright axis has the same numbers.

Security

  • factori.al serves every page with a Content-Security-Policy that names the only hosts a page may load from or send to (the site, jsDelivr and PyPI), and the app loads Plotly.js from jsDelivr only if its bytes are those of the Python plotly package's copy, checked by their SHA-384 (plotly_js_integrity in the build's manifest). The browser tests serve the app under the same policy.

Documentation

  • A Validation page. docs/validation.rst records how the package's numbers are checked
    against references that do not depend on it: the printed numbers of the reference catalog's
    sources, the designs eight other packages build (FrF2, DoE.base, rsm and daewr in R; pydoe,
    dexpy, OApackage and definitive-screening-design in Python), the values other software
    computes for the analyses, and the companion book. Each comparison names its versions, date
    and commit, its result, what it found, and what it does not show.
    scripts/design_crosscheck/ repeats the comparison of designs.
  • A user-guide page on the textbook tables of a factorial. It works Yates's algorithm and its
    reverse on Box, Hunter and Hunter's pilot plant (Table 10.5 and Appendix 10A), the three-level
    algorithm on Box and Draper's textile experiment (Table 7G.1), and the components of interaction
    on Montgomery's tool life, and shows each table beside the book's numbers. (#1097)
  • The validation page reports each package at its latest release, on the designs it built, against the
    printed source.
    The comparison of designs uses pydoe 1.7.0, and every other package was at its latest release
    when it ran. pyDOE3, which pydoe continues, has no row of its own. A request outside what a package offers, such
    as blocks, a kind of design it does not build, or rsm's and pydoe's meaning of an "orthogonal" axial distance, is
    no longer counted against it, and an orthogonal array laid out in another order counts as the same array. Of the
    eight packages, only daewr differs from the printed numbers, on its 2011 definitive screening designs. The page
    in the documentation, the page on factori.al and the "Checked" notes of the design catalog say the same.
  • The validation page is easier to find. The README links it in its top row and beside the design gallery, the
    documentation's home page has it among its buttons, and the Design catalog's row of links has "Is it accurate?".
  • pydoe's 14 slowest checks are counted. pydoe's fracfact_opt scores every generator set, up to 4.9 hours
    for 11 factors in 128 runs, so 14 checks of 10 and 11 factors had not finished in 3 minutes. Each search was run
    once, without that limit, and all 14 agree: pydoe 1.7.0 now has 3,176 checks, all as printed. The comparison
    script searches each size once and shares it between the checks of that size.
  • Fix LaTeX math rendering in a few docstrings. The raw docstrings of
    multivariate.vip, multivariate.squared_cosine,
    multivariate.observation_contributions and
    bivariate._elbow_peak.calculate_line_length had doubled backslashes
    (\\sqrt, \\frac, \\sum, \\text) in their .. math:: blocks and
    inline :math: roles. In a raw string that is two literal backslashes, which
    rendered as a LaTeX line break rather than the command, so the formulas came
    out broken. The commands now use a single backslash, matching the convention
    used in every other math block in the package.