Coder Social home page Coder Social logo

artificial-neural-network_tabular-dataset_pytorch's Introduction

Artificial-Neural-Network_tabular-dataset_PyTorch

Artificial Neural Network with tabular dataset_PyTorch. In this exercise I'll combine continuous and categorical data

to perform a regression. The goal is to estimate the cost of a New York City cab ride from several inputs.

The inspiration behind this code along is a recent Kaggle competition.

#Tabular Dataset

Here I avae done with tabular data (spreadsheets, SQL tables, etc.) with

columns of values that may or may not be relevant. As it happens, neural networks can learn to make connections we probably wouldn't have developed on our own. However, to do this we have to

handle categorical values separately from continuous ones,

The Kaggle competition provides a dataset with about 55 million records.

The data contains only the pickup date & time, the latitude & longitude

(GPS coordinates) of the pickup and dropoff locations, and the number of passengers.

It is up to the contest participant to extract any further information

WorkFlow>

-Calculte the distance traveled

-Add a datetime column and derive useful statistics

-Separate categorical from continuous columns

-Categorify

-Convert numpy arrays to tensors

-Convert continuous variables to a tensor

-Convert labels to a tensor

-Set an embedding size

-Define a TabularModel

-Define loss function & optimizer

-Perform train/test splits

-Train the model

-Plot the loss function

-Validate the model

-Finally observed the first 50 predicted values.

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.