(kernel)
| 111 | * feature weight. |
| 112 | */ |
| 113 | export function describeKernelElements(kernel) { |
| 114 | tf.util.assert( |
| 115 | kernel.length == 12, |
| 116 | `kernel must be a array of length 12, got ${kernel.length}`); |
| 117 | const outList = []; |
| 118 | for (let idx = 0; idx < kernel.length; idx++) { |
| 119 | outList.push({description: featureDescriptions[idx], value: kernel[idx]}); |
| 120 | } |
| 121 | return outList; |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * Compiles `model` and trains it using the train data and runs model against |