Coder Social home page Coder Social logo

neural_network_charity_analysis's Introduction

Neural_Network_Charity_Analysis

Analysis Overview

The purpose of this project is to analyze and classify the success of charitable donations by using deep-learning neural networks with the TensorFlow platform in Python. The following methods were used for the analysis:

  • preprocessing the data for the neural network model
  • compile, train, and evaluate the model
  • optimize the model

Results

Data Preprocessing

  • The 'EIN' and 'NAME' columns were removed from the input data
  • Since the column 'IS_SUCCESSFUL' contains binary data determining whether or not the charity donation was used effectively, the variable is considered the target for our deep learning neural network.
  • 'APPLICATION_TYPE, AFFILIATION, CLASSIFICATION, USE_CASE, ORGANIZATION, STATUS, INCOME_AMT, SPECIAL_CONSIDERATIONS, ASK_AMT' are all columns that are features for our model.
  • Encoding of the categorical variables, splitting into training and testing datasets and standardizations have been applied to the features.

Compiling, Training, and Evaluating the Model

  • This deep-learning neural network model consists of two hidden layers with 80 and 30 neurons.
  • The input data has 43 features and 25,724 samples.
  • The output layer is made of a unique neuron since it is a vinary classification.
  • The 'ReLU' activation function for the was used to speed up the training process for the hidden layers. As our output is a binary classification, Sigmoid is used on the output layer.
  • For the compilation, the optimizer is 'adam' and the loss functionis 'binary_crossentropy'.
  • The model accurary is under 75% which is not a satisfying performance to help predict the outcome of charitable donations.
  • To increase the performance of this model, bucketing was applied to the feature 'ASK_AMT' and the different values were organized by intervals.
  • The number of neurons on one of the hidden layers were increased, and a model with three hidden layers was used.
  • A different activation function 'tanh' was also used, but none of these steps improved performance

Summary

The deep learning neural network model was not able to achieve the target of 75% accuracy. We could use a supervised macine learning model such as the Random Forest Classifier to combine multiple decision trees to generate a classified output and evaluate its performance against our deep learning model.

neural_network_charity_analysis's People

Contributors

stevenyouv avatar

Watchers

 avatar

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.