Giter Club home page Giter Club logo

deep-learning's Introduction

Deep-Learning

Implemented Boston housing price prediction problem by Linear regression using Deep Neural network. Used Boston House price predictiondataset.

  1. Load the Boston Housing dataset using load_boston() function from sklearn.datasets module.
  2. Preprocess the data by scaling the features using StandardScaler from sklearn.preprocessing module.
  3. Split the preprocessed data into training and test sets using train_test_split() function from sklearn.model_selection module.
  4. Define a sequential model using tf.keras.Sequential() function from TensorFlow's Keras API with four dense layers having 64 units in the first layer, 128 units in second, 256 units in third and 1 unit in the output layer. Use 'relu' activation function for the first layer and no activation function for the output layer.
  5. Compile the model using compile() method with mean squared error ('mse') as the loss function and Adam optimizer with a learning rate of 0.001.
  6. Train the model using fit() method with training data, number of epochs, batch size, and a validation split of 0.1 to monitor the performance of the model on a validation set during training.
  7. Evaluate the model on the test set using evaluate() method and print the mean squared error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.