|
2 | 2 |
|
3 | 3 | - Breaking change: The semantics of passing a named list to `keras_model()` have changed. |
4 | 4 |
|
5 | | - Previously, `keras_model()` would `unname()` supplied `inputs` and `outputs`. |
6 | | - Then, if a named list was passed to subsequent |
7 | | - `fit()`/`evaluate()`/`call()`/`predict()` invocations, |
8 | | - matching of `x` and `y` was done to the model's `tensor$name`'s. |
| 5 | + Previously, `keras_model()` would `unname()` supplied `inputs` and `outputs`. |
| 6 | + Then, if a named list was passed to subsequent |
| 7 | + `fit()`/`evaluate()`/`call()`/`predict()` invocations, |
| 8 | + matching of `x` and `y` was done to the model's `tensor$name`'s. |
9 | 9 | Now, matching is done to `names()` of `inputs` and/or `outputs`. |
10 | 10 | Call `unname()` on `inputs` and `outputs` to restore the old behavior, e.g.: |
11 | 11 | ```keras_model(unname(inputs), unname(outputs))``` |
12 | 12 |
|
13 | | - `keras_model()` can now accept a named list for multi-input and/or multi-output |
| 13 | + `keras_model()` can now accept a named list for multi-input and/or multi-output |
14 | 14 | models. (Requires Tensorflow >= 2.4). The named list is converted to a `dict` in python. |
15 | | - |
| 15 | + |
16 | 16 | If `inputs` is a named list: |
17 | | - - `call()`, `fit()`, `evaluate()`, and `predict()` methods can also |
18 | | - accept a named list for `x`, with names matching to the |
| 17 | + - `call()`, `fit()`, `evaluate()`, and `predict()` methods can also |
| 18 | + accept a named list for `x`, with names matching to the |
19 | 19 | names of `inputs` when the model was constructed. |
20 | 20 | Positional matching of `x` is still also supported (requires python 3.7+). |
21 | | - |
| 21 | + |
22 | 22 | If `outputs` is a named list: |
23 | 23 | - `fit()` and `evaluate()` methods can *only* |
24 | | - accept a named list for `y`, with names matching to the |
| 24 | + accept a named list for `y`, with names matching to the |
25 | 25 | names of `outputs` when the model was constructed. |
26 | | - |
| 26 | + |
| 27 | +- `keras_model_custom()` is soft deprecated. Please define custom models by |
| 28 | + subclassing `keras$Model` directly using `%py_class%` or `R6::R6Class()`. |
| 29 | + |
27 | 30 | - Fixed warning issued by `k_random_binomial()`. |
28 | 31 | - Fixed error raised when `k_random_binomial()` was passed a non-floating dtype. |
29 | 32 | - Added `k_random_bernouli()` as an alias for `k_random_binomial()`. |
|
0 commit comments