Commit b420d7f
committed
Massive refactoring of build.py to merge DesignMatrixBuilder into DesignInfo
Notable changes:
- DesignInfo now exposes lots more metadata about how exactly different
factors and terms are coded.
- In fact, it exposes enough more metadata that you can now reconstruct
a design matrix entirely from a DesignInfo, so DesignMatrixBuilder
becomes redundant and is removed in favor of DesignInfo.
- DesignInfo's constructor is very different; in particular, removed the
option of specifying terms as strings, which was only useful for
interoperability with competing formula libraries. Four years later, no
such competitors have appeared, so I can't be bothered to keep maintaining
this. Will re-add later if someone actually wants to use it.
This versions works and passes tests, but a bunch more tests need to be
added.
This fixes #61, and sets us up to implemented pickling support (#26, #67).1 parent 1139e3a commit b420d7f
File tree
7 files changed
+760
-515
lines changed- doc
- patsy
7 files changed
+760
-515
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
108 | 129 | | |
109 | 130 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
113 | 137 | | |
114 | 138 | | |
115 | 139 | | |
| |||
120 | 144 | | |
121 | 145 | | |
122 | 146 | | |
| 147 | + | |
| 148 | + | |
123 | 149 | | |
124 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
125 | 155 | | |
126 | 156 | | |
127 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments