Skip to content

Commit

Permalink
Added basic docs
Browse files Browse the repository at this point in the history
Using sphinx.
  • Loading branch information
sidchaini committed Feb 7, 2024
1 parent fc6945b commit 4103966
Show file tree
Hide file tree
Showing 37 changed files with 5,295 additions and 0 deletions.
Binary file modified distclassipy/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file modified distclassipy/__pycache__/classifier.cpython-312.pyc
Binary file not shown.
Binary file modified distclassipy/__pycache__/distances.cpython-312.pyc
Binary file not shown.
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
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)
Binary file added docs/_build/doctrees/classifier.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/distances.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file added docs/_build/doctrees/index.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: af7b37c052b5b5b8f96e36de84367bad
tags: 645f666f9bcd5a90fca523b33c5a78b7
7 changes: 7 additions & 0 deletions docs/_build/html/_sources/classifier.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
DistanceMetricClassifier module
===============================

.. automodule:: distclassipy.classifier
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/_build/html/_sources/distances.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Distance module
===============

.. automodule:: distclassipy.distances
:members:
:undoc-members:
:show-inheritance:
63 changes: 63 additions & 0 deletions docs/_build/html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
.. DistClassiPy documentation master file, created by
sphinx-quickstart on Wed Feb 7 16:42:22 2024.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to DistClassiPy's documentation!
========================================

DistClassiPy is a Python package for a distance-based classifier which can use several different distance metrics.

Installation
------------

To install DistClassiPy, run the following command:

.. code-block:: bash
pip install distclassipy
Usage
-----

Here's a quick example to get you started with DistClassiPy:

.. code-block:: python
import distclassipy as dcpy
clf = dcpy.DistanceMetricClassifier()
# Add your data and labels
clf.fit(data, labels)
# Predict new instances
predictions = clf.predict(new_data)
Features
--------

- Multiple distance metrics support
- Easy integration with existing data processing pipelines
- Efficient and scalable for large datasets

Contact
-------

For any queries, please reach out to Siddharth Chaini at [email protected].



Indices and tables
------------------

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

API Documentation
-----------------

.. toctree::
:maxdepth: 2
:caption: API Reference

classifier
distances
Loading

0 comments on commit 4103966

Please sign in to comment.