Python
Python copied to clipboard
All Algorithms implemented in Python
### Describe your change: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? -- Note:...
### Describe your change: [Sparse categorical cross entropy loss](https://www.tensorflow.org/api_docs/python/tf/keras/losses/SparseCategoricalCrossentropy) is used in cases where the true class labels are represented in a sparse matrix format (class indices, not one-hot encoded...
### Describe your change: Use a genetic algorithm to solve the travelling salesman problem (TSP) which asks the following question: "Given a list of cities and the distances between each...
### Describe your change: - [Connectionist Temporal Classification (CTC)](https://en.wikipedia.org/wiki/Connectionist_temporal_classification) loss is used in speech recognition, handwriting recognition and other sequence problems. It's used to get around not knowing the alignment...
### Describe your change: Fixes a markdown typo in the wiki (unable to edit the wiki directly in a PR so I think @Siddharth1605 added the files as new to...
### What would you like to share? [This file](https://github.com/TheAlgorithms/Python/wiki/Sorting-Algorithms#selection-sort) should be edited (I tried, but I dont think you can edit wikis on forks) --- ***current*** --- ***proposed*** --- and...
### Describe your change: Add the [Kullback-Leibler divergence](https://en.wikipedia.org/wiki/Kullback%E2%80%93Leibler_divergence) loss algorithm. It is a metric used to compare two data distributions. It has various practical use cases in data science, including...
### Describe your change: • Edited the misformatted/linked wiki entry in the Python sorting algorithms page • Modified the markdown to include the correct formatting and links • Ensured the...
### Describe your change: Add palprime (palindromic prime) number detection Algorithm. Implemented functions `is_prime` and `palindromic_prime_check` to determine whether a given number is a palprime number. A palindromic prime is...
### Describe your change: Add emirp number detection algorithm. Implemented functions `is_prime` and `emirp_check` to determine whether a given number is an emirp number. An emirp number is a prime...