From 75baf720ad45a1a1a97650705682812c14b0f1e7 Mon Sep 17 00:00:00 2001 From: Kumar Nityan Suman Date: Sat, 2 Mar 2024 20:39:45 +0000 Subject: [PATCH] Cleanup --- .circleci/config.yml | 26 ----- .editorconfig | 21 ---- .github/FUNDING.yml | 13 --- .github/workflows/build.yml | 43 ------- .github/workflows/codeql-analysis.yml | 54 --------- .github/workflows/docs.yml | 35 ------ .travis.yml | 34 ------ AUTHORS.md | 11 +- CONTRIBUTING.md | 18 +-- HISTORY.md | 4 + LICENSE | 21 +--- Makefile | 88 -------------- build-conda-package.sh | 42 ------- docs/Makefile | 20 ---- docs/authors.rst | 1 - docs/conf.py | 162 -------------------------- docs/contributing.rst | 1 - docs/history.rst | 1 - docs/index.rst | 20 ---- docs/installation.rst | 51 -------- docs/make.bat | 36 ------ docs/readme.rst | 1 - docs/usage.rst | 122 ------------------- lazypredict/__init__.py | 6 - requirements_dev.txt | 9 -- setup.py | 2 - 26 files changed, 22 insertions(+), 820 deletions(-) delete mode 100644 .circleci/config.yml delete mode 100644 .editorconfig delete mode 100644 .github/FUNDING.yml delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/codeql-analysis.yml delete mode 100644 .github/workflows/docs.yml delete mode 100644 .travis.yml delete mode 100644 Makefile delete mode 100644 build-conda-package.sh delete mode 100644 docs/Makefile delete mode 100644 docs/authors.rst delete mode 100644 docs/conf.py delete mode 100644 docs/contributing.rst delete mode 100644 docs/history.rst delete mode 100644 docs/index.rst delete mode 100644 docs/installation.rst delete mode 100644 docs/make.bat delete mode 100644 docs/readme.rst delete mode 100644 docs/usage.rst delete mode 100644 requirements_dev.txt diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 6554e1f..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Use the latest 2.1 version of CircleCI pipeline process engine. -# See: https://circleci.com/docs/2.0/configuration-reference -version: 2.1 - -# Define a job to be invoked later in a workflow. -# See: https://circleci.com/docs/2.0/configuration-reference/#jobs -jobs: - say-hello: - # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. - # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor - docker: - - image: cimg/base:stable - # Add steps to the job - # See: https://circleci.com/docs/2.0/configuration-reference/#steps - steps: - - checkout - - run: - name: "Say hello" - command: "echo Hello, World!" - -# Invoke jobs via workflows -# See: https://circleci.com/docs/2.0/configuration-reference/#workflows -workflows: - say-hello-workflow: - jobs: - - say-hello diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index d4a2c44..0000000 --- a/.editorconfig +++ /dev/null @@ -1,21 +0,0 @@ -# http://editorconfig.org - -root = true - -[*] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true -insert_final_newline = true -charset = utf-8 -end_of_line = lf - -[*.bat] -indent_style = tab -end_of_line = crlf - -[LICENSE] -insert_final_newline = false - -[Makefile] -indent_style = tab diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 3d034a2..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,13 +0,0 @@ -# These are supported funding model platforms - -github: [shankarpandala] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 03e1d4b..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,43 +0,0 @@ -on: - push: - branches: - - master - pull_request: - branches: - - master - -name: build -jobs: - py-check: - runs-on: ${{ matrix.config.os }} - name: ${{ matrix.config.os }} (${{ matrix.config.py }}) - strategy: - fail-fast: false - matrix: - config: - # - { os: windows-latest, py: "3.7" } - # - { os: macOS-latest, py: "3.7" } - - { os: ubuntu-latest, py: "3.6" } - - { os: ubuntu-latest, py: "3.7" } - - { os: ubuntu-latest, py: "3.8" } - - { os: ubuntu-latest, py: "3.9" } - - { os: ubuntu-latest, py: "3.10" } - - env: - SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk - steps: - - name: CHECKOUT CODE - uses: actions/checkout@v2 - - name: SETUP PYTHON - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.config.py }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install --user --no-cache-dir Cython - pip install --user -r requirements.txt - pip install --user -r requirements_dev.txt - - name: PKG-TEST - run: | - python -m unittest discover tests/ diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 53a2b0d..0000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: [dev, ] - pull_request: - # The branches below must be a subset of the branches above - branches: [dev] - schedule: - - cron: '0 3 * * 1' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - # We must fetch at least the immediate parents so that if this is - # a pull request then we can checkout the head. - fetch-depth: 2 - - # If this run was triggered by a pull request event, then checkout - # the head of the pull request instead of the merge commit. - - run: git checkout HEAD^2 - if: ${{ github.event_name == 'pull_request' }} - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - # Override language selection by uncommenting this and choosing your languages - # with: - # languages: go, javascript, csharp, python, cpp, java - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - # ℹ️ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index accd81b..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: "Pull Request Docs Check" -on: -- pull_request - -jobs: - docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: ammaraskar/sphinx-action@master - with: - docs-folder: "docs/" - - - uses: actions/upload-artifact@v1 - with: - name: DocumentationHTML - path: docs/_build/html/ - - - name: Commit documentation changes - run: | - git clone https://github.com/your_git/repository.git --branch gh-pages --single-branch gh-pages - cp -r docs/_build/html/* gh-pages/ - cd gh-pages - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add . - git commit -m "Update documentation" -a || true - # The above command will fail if no changes were present, so we ignore - # the return code. - - name: Push changes - uses: ad-m/github-push-action@master - with: - branch: gh-pages - directory: gh-pages - github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 63c91c8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -os: - - linux - - osx - - windows - -dist: - - bionic - - focal - - Jammy - -jobs: - allow_failures: - - os: osx - - os: windows - -language: python -python: -- 3.8 -- 3.9 -- 3.10 - -install: pip install -U tox-travis -script: tox -deploy: - provider: pypi - distributions: sdist bdist_wheel - skip_existing: true - user: __token__ - password: - secure: lDbbKlxoBx1Q2FHlTAETm1J/p3UDzTXkWlkStmJ4f4+URVpg+mIYS24qIljTkPY01ViRA4gt9XRS8D4l4OjAP6hpJZNGhUCAEvnVJk7g2xSCiRWLwy+UjuSjCCE9P1ZeYBxJ1qNA1RsBFso6fSSP0taMyPnGMxBIUUKTCfnicqbJYoMJulxhYDzWFzKtMSEhrmpStPEJ0YHufbmmhIxbMiQ8HRAL6RefoVx4rTMk+n+wseHRr69iIvvFRyK6ocwndiXbu/uiiGyQoEw0y3KwIBv55O+VSJzI+DHoDefDjUv4ol/CZ02LQEZAhpWLDHYBrCNFWmvii3wtxDO1h4Lpe4QAUptJxT/6jGDn0+gN2rD1yCvP9g/w/Xy/aFU/McLqi/vNXU/8UOtQ+qSSm5PMCdaasRu6rk0//6bo9Fir4v7Ww5AycWznDagR6pcyrRNQar4mVzwbx0PKzDmLYqnuaNcnRVxDVcv/j571l6oZUJL/ry+HYir+fbnvkPGwDBbwRpp8BlyJ6JWtdVvX2Fe81UTXB9NMFAHqLiOsmV5TVOAeGhlicfbv+OqGLb+aeulWSuiENUPQ51YGZdaEdOZYvg3y+zWx62QUORxbF2mqK8CpPyDqT7owDjjtgHyVnjnuPR5YG+i/3ruAGRpB678UNz1bghDTSMgyXf+9ylqHEWg= - on: - tags: true - repo: shankarpandala/lazypredict - python: 3.9 diff --git a/AUTHORS.md b/AUTHORS.md index 22935ac..3de4a71 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -2,10 +2,9 @@ title: Credits --- -# Development Lead +# Maintaines +- Kumar Nityan Suman \<\> -- Shankar Rao Pandala \<\> - -# Contributors - -- Breno Batista da Silva \<\> +# Inspired Work From +- Shankar Rao Pandala \<\> +- Breno Batista da Silva \<\> diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3b36a51..06849ee 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,7 +11,7 @@ You can contribute in many ways: ## Report Bugs -Report bugs at . +Report bugs at . If you are reporting a bug, please include: @@ -40,7 +40,7 @@ posts, articles, and such. ## Submit Feedback The best way to send feedback is to file an issue at -. +. If you are proposing a feature: @@ -52,15 +52,15 @@ If you are proposing a feature: # Get Started! -Ready to contribute? Here\'s how to set up [lazypredict]{.title-ref} for +Ready to contribute? Here\'s how to set up [lazypredict-nightly]{.title-ref} for local development. -1. Fork the [lazypredict]{.title-ref} repo on GitHub. +1. Fork the [lazypredict-nightly]{.title-ref} repo on GitHub. 2. Clone your fork locally: ``` shell - $ git clone git@github.com:your_name_here/lazypredict.git + $ git clone git@github.com:your_name_here/lazypredict-nightly.git ``` 3. Install your local copy into a virtualenv. Assuming you have @@ -68,8 +68,8 @@ local development. local development: ``` shell - $ mkvirtualenv lazypredict - $ cd lazypredict/ + $ mkvirtualenv lazypredict-nightly + $ cd lazypredict-nightly/ $ python setup.py develop $ pip install -r requirements_dev.txt ``` @@ -87,7 +87,7 @@ local development. tox: ``` shell - $ flake8 lazypredict tests + $ flake8 lazypredict-nightly tests $ python setup.py test or pytest $ tox ``` @@ -114,7 +114,7 @@ Before you submit a pull request, check that it meets these guidelines: the feature to the list in README.rst. 3. The pull request should work for Python 2.7, 3.5, 3.6, 3.7 and 3.8, and for PyPy. Check - and + and make sure that the tests pass for all supported Python versions. # Tips diff --git a/HISTORY.md b/HISTORY.md index f6bf4b4..ec1fb0b 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,10 @@ title: History --- +# 0.3.0 + +- Fixed OneHotEncoder Bug + # 0.2.11 (2022-02-06) - Updated the default version to 3.9 diff --git a/LICENSE b/LICENSE index b5feebb..68a39fc 100644 --- a/LICENSE +++ b/LICENSE @@ -1,22 +1,9 @@ MIT License -Copyright (c) 2020, Shankar Rao Pandala +Copyright 2024 Lazy Predict Nightly Developers and Contributors -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/Makefile b/Makefile deleted file mode 100644 index bc2260f..0000000 --- a/Makefile +++ /dev/null @@ -1,88 +0,0 @@ -.PHONY: clean clean-test clean-pyc clean-build docs help -.DEFAULT_GOAL := help - -define BROWSER_PYSCRIPT -import os, webbrowser, sys - -try: - from urllib import pathname2url -except: - from urllib.request import pathname2url - -webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1]))) -endef -export BROWSER_PYSCRIPT - -define PRINT_HELP_PYSCRIPT -import re, sys - -for line in sys.stdin: - match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line) - if match: - target, help = match.groups() - print("%-20s %s" % (target, help)) -endef -export PRINT_HELP_PYSCRIPT - -BROWSER := python -c "$$BROWSER_PYSCRIPT" - -help: - @python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST) - -clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts - -clean-build: ## remove build artifacts - rm -fr build/ - rm -fr dist/ - rm -fr .eggs/ - find . -name '*.egg-info' -exec rm -fr {} + - find . -name '*.egg' -exec rm -f {} + - -clean-pyc: ## remove Python file artifacts - find . -name '*.pyc' -exec rm -f {} + - find . -name '*.pyo' -exec rm -f {} + - find . -name '*~' -exec rm -f {} + - find . -name '__pycache__' -exec rm -fr {} + - -clean-test: ## remove test and coverage artifacts - rm -fr .tox/ - rm -f .coverage - rm -fr htmlcov/ - rm -fr .pytest_cache - -lint: ## check style with flake8 - flake8 lazypredict tests - -test: ## run tests quickly with the default Python - pytest - -test-all: ## run tests on every Python version with tox - tox - -coverage: ## check code coverage quickly with the default Python - coverage run --source lazypredict -m pytest - coverage report -m - coverage html - $(BROWSER) htmlcov/index.html - -docs: ## generate Sphinx HTML documentation, including API docs - rm -f docs/lazypredict.rst - rm -f docs/modules.rst - sphinx-apidoc -o docs lazypredict/ - $(MAKE) -C docs clean - $(MAKE) -C docs html - $(BROWSER) docs/_build/html/index.html - -servedocs: docs ## compile the docs watching for changes - watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D . - -release: dist ## package and upload a release - twine upload dist/* - -dist: clean ## builds source and wheel package - python setup.py sdist - python setup.py bdist_wheel - ls -l dist - -install: clean ## install the package to the active Python's site-packages - python setup.py install diff --git a/build-conda-package.sh b/build-conda-package.sh deleted file mode 100644 index 884e35d..0000000 --- a/build-conda-package.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -# change the package name to the existing PyPi package you would like to build and adjust the Python versions -pkg='lazypredict' -array=( 3.7 3.8 ) - -echo "Building conda package ..." -cd ~ -conda skeleton pypi $pkg -cd $pkg -wget https://raw.githubusercontent.com/AnacondaRecipes/conda-feedstock/master/recipe/build.sh -wget https://raw.githubusercontent.com/AnacondaRecipes/conda-feedstock/master/recipe/bld.bat -cd ~ - -# building conda packages -for i in "${array[@]}" -do - conda-build --python $i $pkg -done - -# convert package to other platforms -cd ~ -platforms=( osx-64 linux-32 linux-64 win-32 win-64 ) -find $HOME/conda-bld/linux-64/ -name *.tar.bz2 | while read file -do - echo $file - #conda convert --platform all $file -o $HOME/conda-bld/ - for platform in "${platforms[@]}" - do - conda convert --platform $platform $file -o $HOME/conda-bld/ - done - -done - -# upload packages to conda -find $HOME/conda-bld/ -name *.tar.bz2 | while read file -do - echo $file - anaconda upload $file -done - -echo "Building conda package done!" \ No newline at end of file diff --git a/docs/Makefile b/docs/Makefile deleted file mode 100644 index 779d14b..0000000 --- a/docs/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# Minimal makefile for Sphinx documentation -# - -# You can set these variables from the command line. -SPHINXOPTS = -SPHINXBUILD = python -msphinx -SPHINXPROJ = lazypredict -SOURCEDIR = . -BUILDDIR = _build - -# Put it first so that "make" without argument is like "make help". -help: - @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) - -.PHONY: help Makefile - -# Catch-all target: route all unknown targets to Sphinx using the new -# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). -%: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/authors.rst b/docs/authors.rst deleted file mode 100644 index cf16fc4..0000000 --- a/docs/authors.rst +++ /dev/null @@ -1 +0,0 @@ -.. mdinclude:: ../AUTHORS.md diff --git a/docs/conf.py b/docs/conf.py deleted file mode 100644 index 57980ff..0000000 --- a/docs/conf.py +++ /dev/null @@ -1,162 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# -# lazypredict documentation build configuration file, created by -# sphinx-quickstart on Fri Jun 9 13:47:02 2017. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -# If extensions (or modules to document with autodoc) are in another -# directory, add these directories to sys.path here. If the directory is -# relative to the documentation root, use os.path.abspath to make it -# absolute, like shown here. -# -import os -import sys - -sys.path.insert(0, os.path.abspath("..")) -# sys.path.insert(0, os.path.abspath('..\lazypredict')) -# print(sys.path) -import lazypredict - -# -- General configuration --------------------------------------------- - -# If your documentation needs a minimal Sphinx version, state it here. -# -# needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ["_templates"] - -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# -# source_suffix = ['.rst', '.md'] -source_suffix = ".rst" - -# The master toctree document. -master_doc = "index" - -# General information about the project. -project = u"Lazy Predict" -copyright = u"2022, Shankar Rao Pandala" -author = u"Shankar Rao Pandala" - -# The version info for the project you're documenting, acts as replacement -# for |version| and |release|, also used in various other places throughout -# the built documents. -# -# The short X.Y version. -version = lazypredict.__version__ -# The full version, including alpha/beta/rc tags. -release = lazypredict.__version__ - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = None - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This patterns also effect to html_static_path and html_extra_path -exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = "sphinx" - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = False - - -# -- Options for HTML output ------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = "default" - -# Theme options are theme-specific and customize the look and feel of a -# theme further. For a list of options available for each theme, see the -# documentation. -# -# html_theme_options = {} - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ["_static"] - - -# -- Options for HTMLHelp output --------------------------------------- - -# Output file base name for HTML help builder. -htmlhelp_basename = "lazypredictdoc" - - -# -- Options for LaTeX output ------------------------------------------ - -latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, author, documentclass -# [howto, manual, or own class]). -latex_documents = [ - ( - master_doc, - "lazypredict.tex", - u"Lazy Predict Documentation", - u"Shankar Rao Pandala", - "manual", - ), -] - - -# -- Options for manual page output ------------------------------------ - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [(master_doc, "lazypredict", u"Lazy Predict Documentation", [author], 1)] - - -# -- Options for Texinfo output ---------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - ( - master_doc, - "lazypredict", - u"Lazy Predict Documentation", - author, - "lazypredict", - "One line description of project.", - "Miscellaneous", - ), -] diff --git a/docs/contributing.rst b/docs/contributing.rst deleted file mode 100644 index 4fc5016..0000000 --- a/docs/contributing.rst +++ /dev/null @@ -1 +0,0 @@ -.. mdinclude:: ../CONTRIBUTING.md diff --git a/docs/history.rst b/docs/history.rst deleted file mode 100644 index d26e5be..0000000 --- a/docs/history.rst +++ /dev/null @@ -1 +0,0 @@ -.. mdinclude:: ../HISTORY.md diff --git a/docs/index.rst b/docs/index.rst deleted file mode 100644 index 4f520cf..0000000 --- a/docs/index.rst +++ /dev/null @@ -1,20 +0,0 @@ -Welcome to Lazy Predict's documentation! -====================================== - -.. toctree:: - :maxdepth: 2 - :caption: Contents: - - readme - installation - usage - modules - contributing - authors - history - -Indices and tables -================== -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/docs/installation.rst b/docs/installation.rst deleted file mode 100644 index 170c8df..0000000 --- a/docs/installation.rst +++ /dev/null @@ -1,51 +0,0 @@ -.. highlight:: shell - -============ -Installation -============ - - -Stable release --------------- - -To install Lazy Predict, run this command in your terminal: - -.. code-block:: console - - $ pip install lazypredict - -This is the preferred method to install Lazy Predict, as it will always install the most recent stable release. - -If you don't have `pip`_ installed, this `Python installation guide`_ can guide -you through the process. - -.. _pip: https://pip.pypa.io -.. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/ - - -From sources ------------- - -The sources for Lazy Predict can be downloaded from the `Github repo`_. - -You can either clone the public repository: - -.. code-block:: console - - $ git clone git://github.com/shankarpandala/lazypredict - -Or download the `tarball`_: - -.. code-block:: console - - $ curl -OJL https://github.com/shankarpandala/lazypredict/tarball/master - -Once you have a copy of the source, you can install it with: - -.. code-block:: console - - $ python setup.py install - - -.. _Github repo: https://github.com/shankarpandala/lazypredict -.. _tarball: https://github.com/shankarpandala/lazypredict/tarball/master diff --git a/docs/make.bat b/docs/make.bat deleted file mode 100644 index bcd7014..0000000 --- a/docs/make.bat +++ /dev/null @@ -1,36 +0,0 @@ -@ECHO OFF - -pushd %~dp0 - -REM Command file for Sphinx documentation - -if "%SPHINXBUILD%" == "" ( - set SPHINXBUILD=python -msphinx -) -set SOURCEDIR=. -set BUILDDIR=_build -set SPHINXPROJ=lazypredict - -if "%1" == "" goto help - -%SPHINXBUILD% >NUL 2>NUL -if errorlevel 9009 ( - echo. - echo.The Sphinx module was not found. Make sure you have Sphinx installed, - echo.then set the SPHINXBUILD environment variable to point to the full - echo.path of the 'sphinx-build' executable. Alternatively you may add the - echo.Sphinx directory to PATH. - echo. - echo.If you don't have Sphinx installed, grab it from - echo.http://sphinx-doc.org/ - exit /b 1 -) - -%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% -goto end - -:help -%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% - -:end -popd diff --git a/docs/readme.rst b/docs/readme.rst deleted file mode 100644 index 97d4958..0000000 --- a/docs/readme.rst +++ /dev/null @@ -1 +0,0 @@ -.. mdinclude:: ../README.md diff --git a/docs/usage.rst b/docs/usage.rst deleted file mode 100644 index f0c4561..0000000 --- a/docs/usage.rst +++ /dev/null @@ -1,122 +0,0 @@ -===== -Usage -===== - -To use Lazy Predict in a project:: - - import lazypredict - -============== -Classification -============== - -Example :: - - from lazypredict.Supervised import LazyClassifier - from sklearn.datasets import load_breast_cancer - from sklearn.model_selection import train_test_split - data = load_breast_cancer() - X = data.data - y= data.target - X_train, X_test, y_train, y_test = train_test_split(X, y,test_size=.5,random_state =123) - clf = LazyClassifier(verbose=0,ignore_warnings=True, custom_metric=None) - models,predictions = clf.fit(X_train, X_test, y_train, y_test) - models - - - | Model | Accuracy | Balanced Accuracy | ROC AUC | F1 Score | Time Taken | - |:-------------------------------|-----------:|--------------------:|----------:|-----------:|-------------:| - | LinearSVC | 0.989474 | 0.987544 | 0.987544 | 0.989462 | 0.0150008 | - | SGDClassifier | 0.989474 | 0.987544 | 0.987544 | 0.989462 | 0.0109992 | - | MLPClassifier | 0.985965 | 0.986904 | 0.986904 | 0.985994 | 0.426 | - | Perceptron | 0.985965 | 0.984797 | 0.984797 | 0.985965 | 0.0120046 | - | LogisticRegression | 0.985965 | 0.98269 | 0.98269 | 0.985934 | 0.0200036 | - | LogisticRegressionCV | 0.985965 | 0.98269 | 0.98269 | 0.985934 | 0.262997 | - | SVC | 0.982456 | 0.979942 | 0.979942 | 0.982437 | 0.0140011 | - | CalibratedClassifierCV | 0.982456 | 0.975728 | 0.975728 | 0.982357 | 0.0350015 | - | PassiveAggressiveClassifier | 0.975439 | 0.974448 | 0.974448 | 0.975464 | 0.0130005 | - | LabelPropagation | 0.975439 | 0.974448 | 0.974448 | 0.975464 | 0.0429988 | - | LabelSpreading | 0.975439 | 0.974448 | 0.974448 | 0.975464 | 0.0310006 | - | RandomForestClassifier | 0.97193 | 0.969594 | 0.969594 | 0.97193 | 0.033 | - | GradientBoostingClassifier | 0.97193 | 0.967486 | 0.967486 | 0.971869 | 0.166998 | - | QuadraticDiscriminantAnalysis | 0.964912 | 0.966206 | 0.966206 | 0.965052 | 0.0119994 | - | HistGradientBoostingClassifier | 0.968421 | 0.964739 | 0.964739 | 0.968387 | 0.682003 | - | RidgeClassifierCV | 0.97193 | 0.963272 | 0.963272 | 0.971736 | 0.0130029 | - | RidgeClassifier | 0.968421 | 0.960525 | 0.960525 | 0.968242 | 0.0119977 | - | AdaBoostClassifier | 0.961404 | 0.959245 | 0.959245 | 0.961444 | 0.204998 | - | ExtraTreesClassifier | 0.961404 | 0.957138 | 0.957138 | 0.961362 | 0.0270066 | - | KNeighborsClassifier | 0.961404 | 0.95503 | 0.95503 | 0.961276 | 0.0560005 | - | BaggingClassifier | 0.947368 | 0.954577 | 0.954577 | 0.947882 | 0.0559971 | - | BernoulliNB | 0.950877 | 0.951003 | 0.951003 | 0.951072 | 0.0169988 | - | LinearDiscriminantAnalysis | 0.961404 | 0.950816 | 0.950816 | 0.961089 | 0.0199995 | - | GaussianNB | 0.954386 | 0.949536 | 0.949536 | 0.954337 | 0.0139935 | - | NuSVC | 0.954386 | 0.943215 | 0.943215 | 0.954014 | 0.019989 | - | DecisionTreeClassifier | 0.936842 | 0.933693 | 0.933693 | 0.936971 | 0.0170023 | - | NearestCentroid | 0.947368 | 0.933506 | 0.933506 | 0.946801 | 0.0160074 | - | ExtraTreeClassifier | 0.922807 | 0.912168 | 0.912168 | 0.922462 | 0.0109999 | - | CheckingClassifier | 0.361404 | 0.5 | 0.5 | 0.191879 | 0.0170043 | - | DummyClassifier | 0.512281 | 0.489598 | 0.489598 | 0.518924 | 0.0119965 | - -========== -Regression -========== - -Example :: - - from lazypredict.Supervised import LazyRegressor - from sklearn import datasets - from sklearn.utils import shuffle - import numpy as np - boston = datasets.load_boston() - X, y = shuffle(boston.data, boston.target, random_state=13) - X = X.astype(np.float32) - offset = int(X.shape[0] * 0.9) - X_train, y_train = X[:offset], y[:offset] - X_test, y_test = X[offset:], y[offset:] - reg = LazyRegressor(verbose=0,ignore_warnings=False, custom_metric=None ) - models,predictions = reg.fit(X_train, X_test, y_train, y_test) - - - | Model | R-Squared | RMSE | Time Taken | - |:------------------------------|------------:|---------:|-------------:| - | SVR | 0.877199 | 2.62054 | 0.0330021 | - | RandomForestRegressor | 0.874429 | 2.64993 | 0.0659981 | - | ExtraTreesRegressor | 0.867566 | 2.72138 | 0.0570002 | - | AdaBoostRegressor | 0.865851 | 2.73895 | 0.144999 | - | NuSVR | 0.863712 | 2.7607 | 0.0340044 | - | GradientBoostingRegressor | 0.858693 | 2.81107 | 0.13 | - | KNeighborsRegressor | 0.826307 | 3.1166 | 0.0179954 | - | HistGradientBoostingRegressor | 0.810479 | 3.25551 | 0.820995 | - | BaggingRegressor | 0.800056 | 3.34383 | 0.0579946 | - | MLPRegressor | 0.750536 | 3.73503 | 0.725997 | - | HuberRegressor | 0.736973 | 3.83522 | 0.0370018 | - | LinearSVR | 0.71914 | 3.9631 | 0.0179989 | - | RidgeCV | 0.718402 | 3.9683 | 0.018003 | - | BayesianRidge | 0.718102 | 3.97041 | 0.0159984 | - | Ridge | 0.71765 | 3.9736 | 0.0149941 | - | LinearRegression | 0.71753 | 3.97444 | 0.0190051 | - | TransformedTargetRegressor | 0.71753 | 3.97444 | 0.012001 | - | LassoCV | 0.717337 | 3.9758 | 0.0960066 | - | ElasticNetCV | 0.717104 | 3.97744 | 0.0860076 | - | LassoLarsCV | 0.717045 | 3.97786 | 0.0490005 | - | LassoLarsIC | 0.716636 | 3.98073 | 0.0210001 | - | LarsCV | 0.715031 | 3.99199 | 0.0450008 | - | Lars | 0.715031 | 3.99199 | 0.0269964 | - | SGDRegressor | 0.714362 | 3.99667 | 0.0210009 | - | RANSACRegressor | 0.707849 | 4.04198 | 0.111998 | - | ElasticNet | 0.690408 | 4.16088 | 0.0190012 | - | Lasso | 0.662141 | 4.34668 | 0.0180018 | - | OrthogonalMatchingPursuitCV | 0.591632 | 4.77877 | 0.0180008 | - | ExtraTreeRegressor | 0.583314 | 4.82719 | 0.0129974 | - | PassiveAggressiveRegressor | 0.556668 | 4.97914 | 0.0150032 | - | GaussianProcessRegressor | 0.428298 | 5.65425 | 0.0580051 | - | OrthogonalMatchingPursuit | 0.379295 | 5.89159 | 0.0180039 | - | DecisionTreeRegressor | 0.318767 | 6.17217 | 0.0230272 | - | DummyRegressor | -0.0215752 | 7.55832 | 0.0140116 | - | LassoLars | -0.0215752 | 7.55832 | 0.0180008 | - | KernelRidge | -8.24669 | 22.7396 | 0.0309792 | - - -.. warning:: - Regression and Classification are replaced with LazyRegressor and LazyClassifier. - Regression and Classification classes will be removed in next release \ No newline at end of file diff --git a/lazypredict/__init__.py b/lazypredict/__init__.py index ce94e0a..40a96af 100644 --- a/lazypredict/__init__.py +++ b/lazypredict/__init__.py @@ -1,7 +1 @@ # -*- coding: utf-8 -*- - -"""Top-level package for Lazy Predict.""" - -__author__ = """Shankar Rao Pandala""" -__email__ = "shankar.pandala@live.com" -__version__ = '0.2.12' diff --git a/requirements_dev.txt b/requirements_dev.txt deleted file mode 100644 index 45bd550..0000000 --- a/requirements_dev.txt +++ /dev/null @@ -1,9 +0,0 @@ -click -scikit-learn -pandas -tqdm -joblib -lightgbm -xgboost -pytest -myst-parser \ No newline at end of file diff --git a/setup.py b/setup.py index 4d29583..acefd26 100644 --- a/setup.py +++ b/setup.py @@ -48,10 +48,8 @@ include_package_data=True, keywords=["lazypredict", "lazypredict-nightly"], name="lazypredict-nightly", - packages=find_packages(include=["lazypredict", "lazypredict.*"]), setup_requires=setup_requirements, test_suite="tests", - tests_require=test_requirements, url="https://github.com/nityansuman/lazypredict-nightly", version='0.3.0', zip_safe=False