Giter VIP home page Giter VIP logo

yshshrm / data-structures-and-algorithms-hacktoberfest18 Goto Github PK

View Code? Open in Web Editor NEW
203.0 203.0 1.1K 11.44 MB

List of data structures and algorithms. Feel free to contribute under Hacktoberfest '18!

C++ 32.37% Python 8.86% Dart 0.11% C 22.85% Nim 0.04% JavaScript 4.59% Haskell 1.12% Java 23.16% C# 2.43% Kotlin 1.85% R 0.01% Rust 0.30% Clojure 0.08% Erlang 0.16% Go 0.89% PHP 0.59% Ruby 0.27% Scala 0.04% Racket 0.08% Swift 0.19%
algorithms data-structures hacktoberfest hacktoberfest2018

data-structures-and-algorithms-hacktoberfest18's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

data-structures-and-algorithms-hacktoberfest18's Issues

Add sorting algorithms

Contributing Guidelines

  • The repository is structured language-wise i.e. algorithms in a certain language go in a specific folder.
  • The naming convention to be followed is algo_name.language_extention i.e. the overall path should be language/algo_name.language_extention
  • It is your choice to include only the function or the entire program for the algorithm.
  • If the folder for your language does not exist, create a new one.
  • Don't be afraid to make a PR!

How to make PR

  1. Fork Repo on Web Page
  2. Make your changes on your forked repo
  3. Make Pull Request to master

Pull requests here won’t count toward Hacktoberfest.

Hi there,

Thank you for your interest in Hacktoberfest and in helping others make their first contributions to open source.

While we agree that it's important to help others, this repository does not do this in a way that is in line with the Hacktoberfest values. Please read the part that talks about high-quality contributions to understand why we are reaching out and taking action. Due to this, we've added this repository to the list of excluded repositories which means pull requests here will not count toward Hacktoberfest 2020.

This is not a DigitalOcean decision, it's one that is inspired by the community of maintainers and contributors who all agree that quality is more important than quantity when it comes to engagement in the Open Source community. The values remind us to shift the focus from contributions to repositories that encourage folks to quickly create and gain a pull request to contributions that will help people level-up their skills and contribute to open-source projects that are in need of help.

If you feel that this repository is an effective learning resource, we encourage you to keep running it since a core part of the aim for Hacktoberfest is to encourage new folks to get involved with open-source.

However, if you are interested in having contributions to this repo count toward Hacktoberfest we encourage you to take a look at this list of Hacktoberfest issues for inspiration and make the necessary changes to focus on enabling people to make meaningful contributions to open source projects.

If you have any questions about this or participating in Hacktoberfest, please contact our team via email [email protected] or join our community Discord server.

Happy Hacking,
The Hacktoberfest Team

Hacktoberfest is presented by DigitalOcean, Intel and DEV.

Add data structure in language of your choice

Contributing Guidelines

  • The repository is structured language-wise i.e. data structures in a certain language go in a specific folder.
  • The naming convention to be followed is ds_name.language_extention i.e. the overall path should be language/ds_name.language_extention
  • It is your choice to include only the function or the entire program for the algorithm.
  • If the folder for your language does not exist, create a new one.
  • Don't be afraid to make a PR!

How to make PR

  1. Fork Repo on Web Page
  2. Make your changes to your forked repo
  3. Make Pull Request to master

Add algorithm in language of your choice

Contributing Guidelines

  • The repository is structured language-wise i.e. algorithms in a certain language go in a specific folder.
  • The naming convention to be followed is algo_name.language_extention i.e. the overall path should be language/algo_name.language_extention
  • It is your choice to include only the function or the entire program for the algorithm.
  • If the folder for your language does not exist, create a new one.
  • Don't be afraid to make a PR!

How to make PR

  1. Fork Repo on Web Page
  2. Make your changes on your forked repo
  3. Make Pull Request to master

Add searching algorithms

Contributing Guidelines

  • The repository is structured language-wise i.e. algorithms in a certain language go in a specific folder.
  • The naming convention to be followed is algo_name.language_extention i.e. the overall path should be language/algo_name.language_extention
  • It is your choice to include only the function or the entire program for the algorithm.
  • If the folder for your language does not exist, create a new one.
  • Don't be afraid to make a PR!

How to make PR

  • Fork Repo on Web Page
  • Make your changes on your forked repo
  • Make Pull Request to master

Segregation in each language

We can create sub-folders in each language. It will make this task less confusing.
For starters, we can separate the codes into 'algorithms' and 'data structures'.

[Potential NAN bug] Loss may become NAN during training

Hello~

Thank you very much for sharing the code!

I try to use my own data set ( with the same shape as mnist) in code. After some iterations, it is found that the training loss became NAN. After carefully checking the code, I found that the following code may trigger NAN in loss:

In /python/algorithms/Classification Algorithms/MNIST Digit cassification using CNN.py: line 245

cross_entropy = tf.reduce_mean(-tf.reduce_sum(y_ * tf.log(y), reduction_indices=[1]))

If y contains 0 (output of softmax ), the result of tf.log(y) is inf because log(0) is illegal . And this may cause the result of loss to become NAN.

It could be fixed by making the following changes:

cross_entropy = tf.reduce_mean(-tf.reduce_sum(y_ * tf.log(y + 1e-8), reduction_indices=[1]))

or

cross_entropy = tf.reduce_mean(-tf.reduce_sum(y_ * tf.log(tf.clip_by_value(y,1e-8,1.0)), reduction_indices=[1]))

The same problem was also found at line 645:

cross_entropy = tf.reduce_mean(-tf.reduce_sum(y_ * tf.log(y_CNN), reduction_indices=[1]))

Hope to hear from you ~

Thanks in advance! : )

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.