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

Function linearRegressionModel

boston-housing/index.js:55–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 * @returns {tf.Sequential} The linear regression model.
54 */
55export function linearRegressionModel() {
56 const model = tf.sequential();
57 model.add(tf.layers.dense({inputShape: [bostonData.numFeatures], units: 1}));
58
59 model.summary();
60 return model;
61};
62
63/**
64 * Builds and returns Multi Layer Perceptron Regression Model

Callers 1

setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected