Go to file
ELNS 140b79b4b2 Adding Linear Discriminant Analysis (#1592)
* Adding new file to the machine_learning directory

* Adding initial documentation

* importing modules

* Adding Normal_gen function

* Adding Y_gen function

* Adding mean_calc function

* Adding prob_calc function

* Adding var_calc function

* Adding predict function

* Adding accuracy function

* Adding main function

* Renaming LDA file

* Adding requested changes

* Renaming some of functions

* Refactoring str.format() statements to f-string

* Removing unnecessary list objects inside two functions

* changing code style in some lines

* Fixing y_generator function

* Refactoring 'predict_y_values' function by using list comprehensions

* Changing code style in import statements

* Refactoring CLI code block

* fixup! Format Python code with psf/black push

* No lines longer than 88 characters
2019-11-26 12:57:53 +01:00
.github || true (#1572) 2019-11-14 18:22:23 -08:00
arithmetic_analysis Addition of Secant Method (#876) 2019-10-28 19:27:00 +01:00
backtracking Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
blockchain Add Topological Sort (#1302) 2019-10-18 08:13:58 +02:00
boolean_algebra Tabs --> spaces in quine_mc_cluskey.py (#1426) 2019-11-21 22:21:40 +08:00
ciphers Implemented simple keyword cipher (#1589) 2019-11-23 16:52:32 +01:00
compression Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
conversions psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
data_structures Update singly_linked_list.py (#1593) 2019-11-26 06:45:28 +01:00
digital_image_processing Tabs --> spaces in quine_mc_cluskey.py (#1426) 2019-11-21 22:21:40 +08:00
divide_and_conquer psf/black code formatting (#1421) 2019-10-22 19:13:48 +02:00
dynamic_programming Fractional knapsack (#1524) 2019-11-22 22:55:19 +08:00
file_transfer GitHub Action formats our code with psf/black (#1569) 2019-11-14 19:59:43 +01:00
fuzzy_logic Remove code with side effects from main (#1577) 2019-11-17 19:38:48 +01:00
graphs Improve bellman_ford.py (#1575) 2019-11-19 13:52:55 -08:00
hashes psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
images Add Travis_CI_tests_are_failing.md (#1499) 2019-10-28 13:38:08 +01:00
linear_algebra Update README.md (#1588) 2019-11-23 04:06:52 +01:00
machine_learning Adding Linear Discriminant Analysis (#1592) 2019-11-26 12:57:53 +01:00
maths GitHub Action formats our code with psf/black (#1569) 2019-11-14 19:59:43 +01:00
matrix psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
networking_flow psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
neural_network Remove code with side effects from main (#1577) 2019-11-17 19:38:48 +01:00
other Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
project_euler Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
scripts minor changes in format of DIRECTORY.md (#1461) 2019-10-25 19:33:24 +02:00
searches Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
sorts recursive quick sort (#1536) 2019-10-31 19:49:25 +01:00
strings Reverse Words (#1581) 2019-11-18 12:47:26 +01:00
traversals psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
web_programming added current stock price (#1590) 2019-11-23 13:54:06 +01:00
.coveragerc Add pytest-cov (#1578) 2019-11-17 19:37:58 +01:00
.gitignore Update .gitignore to remove __pycache__/ (#1127) 2019-08-17 00:46:33 +02:00
.travis.yml Add pytest-cov (#1578) 2019-11-17 19:37:58 +01:00
CONTRIBUTING.md Readability of CONTRIBUTING.md (#1422) 2019-10-23 04:07:50 +08:00
DIRECTORY.md Adding Linear Discriminant Analysis (#1592) 2019-11-26 12:57:53 +01:00
LICENSE.md Create CONTRIBUTING.md (#864) 2019-06-02 12:14:18 +08:00
README.md Readability of CONTRIBUTING.md (#1422) 2019-10-23 04:07:50 +08:00
requirements.txt Add pytest-cov (#1578) 2019-11-17 19:37:58 +01:00
Travis_CI_tests_are_failing.md Add Travis_CI_tests_are_failing.md (#1499) 2019-10-28 13:38:08 +01:00

The Algorithms - Python

Donate  Build Status  LGTM  Gitter chat  contributions welcome   

All algorithms implemented in Python (for education)

These implementations are for learning purposes. They may be less efficient than the implementations in the Python standard library.

Contribution Guidelines

Read our Contribution Guidelines before you contribute.

Community Channel

We're on Gitter! Please join us.

List of Algorithms

See our directory.

Open in Gitpod