Giter Site home page Giter Site logo

cgfs93 / neural_network_charity_analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 11.4 MB

Preprocessing Data for a Neural Network Model. Compile, Train, and Evaluate the Model. Optimize the Model. A Written Report on the Neural Network Model

Jupyter Notebook 100.00%

neural_network_charity_analysis's Introduction

Neural_Network_Charity_Analysis

Analysis Overview

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

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

Resources

Data Source: charity_data.csv

Software: Python, Anaconda Navigator, Conda, Jupyter Notebook.

Results

Data Preprocessing

  • The columns EIN and NAME are identification information and have been removed from the input data.
  • The column IS_SUCCESSFUL contains binary data refering to weither or not the charity donation was used effectively. This variable is then considered as the target for our deep learning neural network.
  • The following columns APPLICATION_TYPE, AFFILIATION, CLASSIFICATION, USE_CASE, ORGANIZATION, STATUS, INCOME_AMT, SPECIAL_CONSIDERATIONS, ASK_AMT are the features for our model. Encoding of the categorical variables, spliting into training and testing datasets and standardization have been applied to the features.

Compiling, Training, and Evaluating the Model

  • This deep-learning neural network model is made of two hidden layers with 80 and 30 neurons respectively.
    The input data has 43 features and 25,724 samples.
    The output layer is made of a unique neuron as it is a binary classification.
    To speed up the training process,we are using the activation function ReLU for the hidden layers. As our output is a binary classification, Sigmoid on the output layer.
    For the compilation, the optimizer is adam and the loss function is binary_crossentropy.
  • The model accuracy is under 75%. This is not a satisfying performance to help predict the outcome of the charity donations.
  • To increase the performance of the model, we applied bucketing to the feature ASK_AMT and organized the different values by intervals.
    We increased the number of neurons on one of the hidden layers, then we used a model with three hidden layers.
    We also tried a different activation function (tanh) but none of these steps helped improve the model's performance.

Summary

The deep learning neural network model did not reach the target of 75% accuracy. Considering that this target level is pretty average we could say that the model is not outperforming.
Since we are in a binary classification situation, we could use a supervised machine learning as the Random Forest Classifier to combine a multitude of decision trees to generate a classified output.

neural_network_charity_analysis's People

Contributors

cgfs93 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.