GPT-3 talks Tensorflow

  1. Image recognition
  2. Natural language processing
  3. Model training
  4. Model deployment
  5. Automated course generation
  6. Sales prediction
  7. Customer segmentation
  8. Object detection
  9. Pattern recognition
  10. Anomaly detection
  1. Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems
  2. Deep Learning with Python
  3. TensorFlow for Deep Learning: From Fundamentals to Frontiers
  1. Read the documentation.
  2. Complete a tutorial.
  3. Experiment with the platform.
  4. Find a problem to solve.
  5. Build a model.
const housingPrices = tf.data.csv(
'[<https://storage.googleapis.com/tfjs-examples/multivariate-linear-regression/data.csv>](<https://storage.googleapis.com/tfjs-examples/multivariate-linear-regression/data.csv>)',
{
columnConfigs: {
price: {
isLabel: true
},
sqft_living: {
isContinuous: true
},
bedrooms: {
isContinuous: true
},
bathrooms: {
isContinuous: true
},
floors: {
isContinuous: true
},
waterfront: {
isContinuous: true
},
view: {
isContinuous: true
},
condition: {
isContinuous: true
},
grade: {
isContinuous: true
},
sqft_above: {
isContinuous: true
},
sqft_basement: {
isContinuous: true
},
yr_built: {
isContinuous: true
},
yr_renovated: {
isContinuous: true
},
lat: {
isContinuous: true
},
long: {
isContinuous: true
},
sqft_living15: {
isContinuous: true
},
sqft_lot15: {
isContinuous: true
}
}
}
);
const model = tf.sequential();
model.add(tf.layers.dense({
units: 1,
inputShape: [housingPrices.shape[1] - 1]
}));
model.compile({
loss: 'meanSquaredError',
optimizer: 'sgd'
});
model.fit(housingPrices, {
epochs: 100,
callbacks: {
onEpochEnd: (epoch, log) => console.log(`Epoch ${epoch}: loss = ${log.loss}`)
}
});
model.predict(tf.tensor2d([[
16000, 3, 2, 2, 1, 0, 0, 5, 7, 1945, 1991, 47.7210, -122.319, 1340, 5650
]])).print();

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Derek Martin

Derek Martin

Full stack developer focusing on AI, GPT-3, Ethereum, and d’Apps. American citizen who embraces messiness. Hopefully less immature than yesterday