@@ -6,24 +6,56 @@ Changes
66v0.4.0
77------
88
9+ Incompatible changes:
10+
11+ * :class: `EvalFactor ` does not take an ``eval_env `` argument anymore.
12+
13+ * The :func: `design_matrix_builders ` function and the
14+ :meth: `factor_protocol.memorize_passes_needed ` method now require an
15+ ``eval_env `` as an additional argument.
16+
17+ * The :class: `DesignInfo ` constructor's arguments have totally
18+ changed. In addition to the changes needed to support the new
19+ features below, we no longer support "shim" DesignInfo objects that
20+ with non-trivial terms. This was only included in the first place to
21+ provide a compatibility hook for competing formula libraries; four
22+ years later, no such libraries have shown up. If one does, we can
23+ re-add it, but I'm not going to bother maintaining it in the mean
24+ time.
25+
26+ Other changes:
27+
928* Formulas (more precisely, :class: `EvalFactor ` objects) now only
1029 keep a reference to the variables required from their environment
1130 instead of the whole environment when the formula was defined.
1231
13- * Incompatible change: :class: `EvalFactor ` does not take an
14- ``eval_env `` argument anymore.
15-
16- * Incompatible change: the :func: `design_matrix_builders ` function and
17- the :meth: `EvalFactor.memorize_passes_needed ` method now
18- requires an ``eval_env `` as an additional argument.
32+ * :class: `DesignInfo ` has new attributes
33+ :attr: `DesignInfo.factor_infos ` and :attr: `DesignInfo.term_codings `
34+ which provide detailed metadata about how each factor and term is
35+ encoded.
36+
37+ * As a result of the above changes, the split between
38+ :class: `DesignInfo ` and :class: `DesignMatrixBuilder ` is no longer
39+ necessary; :class: `DesignMatrixBuiler ` has been eliminated. So for
40+ example, :func: `design_matrix_builders ` now returns a list of
41+ :class: `DesignInfo ` objects, and you can now pass
42+ :class: `DesignInfo ` objects directly to any function for building
43+ design matrices. For compatibility, :class: `DesignInfo ` continues to
44+ provide ``.builder `` and ``.design_info `` attributes, so that old
45+ code should continue to work; however, these attributes are
46+ deprecated.
47+
48+ * Ensured that attempting to pickle most Patsy objects raises an
49+ error. This has never been supported, and the interesting cases
50+ failed in any case, but now we're taking a more systematic
51+ approach. (Soon we will add real, supported pickling support.)
1952
2053v0.3.0
2154------
2255
2356.. image :: https://zenodo.org/badge/doi/10.5281/zenodo.11444.svg
2457 :target: http://dx.doi.org/10.5281/zenodo.11444
2558
26- |
2759* New stateful transforms for computing natural and cylic cubic
2860 splines with constraints, and tensor spline bases with
2961 constraints. (Thanks to `@broessli <https://github.com/broessli >`_
0 commit comments