MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / describeKernelElements

Function describeKernelElements

boston-housing/index.js:113–122  ·  view source on GitHub ↗
(kernel)

Source from the content-addressed store, hash-verified

111 * feature weight.
112 */
113export 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

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected