dnn_from_scratch_py | project provides the python code | Machine Learning library

 by   theflofly Python Version: Current License: No License

kandi X-RAY | dnn_from_scratch_py Summary

kandi X-RAY | dnn_from_scratch_py Summary

dnn_from_scratch_py is a Python library typically used in Telecommunications, Media, Advertising, Marketing, Artificial Intelligence, Machine Learning, Deep Learning, Tensorflow, Neural Network applications. dnn_from_scratch_py has no bugs, it has no vulnerabilities, it has build file available and it has low support. You can download it from GitHub.

This project provides the python code that supports this blog post (if you are a beginner, you should read it). The goal is to make a neural network from scratch using numpy, then the same one using TensorFlow. As a toy example, we try to predict the price of car using online data. download_lbc_cars_data.py downloads data from leboncoin.fr, which is a website of classified ads. The data retrieved are about BMW Serie 1 (only one model of car). For each BMW Serie 1 we save an input with the number of km, fuel, age and the price. The data are saved into car_features.csv. These data are then normalized by normalize_lbc_cars_data.py to produce normalized_car_features.csv. normalized_car_features.csv is used as input by dnn_from_scratch.py which is the neural network using numpy and dnn_from_scratch_tensorflow.py which is the neural network using TensorFlow. predict.py is used to transform the data back and forth from the normalized to the human readeable version. For instance to predict a price, the user will input the raw car attributes. predict.py will convert the raw data to the normalized version and return them. The neural network output is also given to predict.py so that the user obtains a readable price and not a normalized one. Overall results are pretty good knowing that the price is impacted by more than three attributes.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              dnn_from_scratch_py has a low active ecosystem.
              It has 30 star(s) with 11 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 1 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of dnn_from_scratch_py is current.

            kandi-Quality Quality

              dnn_from_scratch_py has 0 bugs and 0 code smells.

            kandi-Security Security

              dnn_from_scratch_py has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              dnn_from_scratch_py code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              dnn_from_scratch_py does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              dnn_from_scratch_py releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              dnn_from_scratch_py saves you 128 person hours of effort in developing the same functionality from scratch.
              It has 322 lines of code, 17 functions and 6 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed dnn_from_scratch_py and discovered the below as its top functions. This is intended to give you an instant insight into dnn_from_scratch_py implemented functionality, and help decide if they suit your requirements.
            • Check the gradients
            • Compute the gradient
            • Compute the numerical gradient of the objective function
            • Forward forward computation
            • Gradient of the cost function
            • Compute the cost function
            • Set the weights
            • Predict price
            • Return the output of the given price
            • Calculate input
            • Gradient of the cost function
            • Function to tanh
            • Print a summary of the loss function
            • Calculate the r2
            • Forward the network
            • Predict new features
            • Gradient of the gradients
            • Calculate the input matrix
            • Return the output of a price
            Get all kandi verified functions for this library.

            dnn_from_scratch_py Key Features

            No Key Features are available at this moment for dnn_from_scratch_py.

            dnn_from_scratch_py Examples and Code Snippets

            No Code Snippets are available at this moment for dnn_from_scratch_py.

            Community Discussions

            QUESTION

            TensorFlow weights increasing when using the full dataset for the gradient descent
            Asked 2017-Mar-27 at 08:56

            I wrote an article explaining in depth how a neural network works from scratch.

            To illustrate the blog post, I wrote the neural network in python using numpy and I wrote a version using TensorFlow. I uploaded the code on Github to illustrate this question but this is not a clean version.

            The goal of the network is to predict the price of a car based of three of its features (km, type of fuel, age) this is a toy example that I created from scratch.

            I retrieved data from the leboncoin.fr, my dataset is composed of around 9k cars (only BMW serie 1). I normalized the data so that the price is between [0, 1], the type of fuel is binary encoded and the age and number of kms are normalized using the mean and standard deviation.

            The neural network architecture is really simple and I am using only three car attributes, nonetheless the results of my non tensorflow network are pretty good. The validation test set gives:

            ...

            ANSWER

            Answered 2017-Mar-27 at 08:56

            The problem isn't the Optimizer, it's your loss. It should return the mean loss, not the sum. If you're doing an L2 regression, for instance, it should look like this:

            Source https://stackoverflow.com/questions/43027109

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install dnn_from_scratch_py

            You can download it from GitHub.
            You can use dnn_from_scratch_py like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/theflofly/dnn_from_scratch_py.git

          • CLI

            gh repo clone theflofly/dnn_from_scratch_py

          • sshUrl

            git@github.com:theflofly/dnn_from_scratch_py.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link