Skip to main content

CountEst is a module containing the implementation of count-based estimators, i.e., supervised learning algorithms that make predictions based on the frequency or count of specific events, categories, or values within a dataset.

Project description

CountEst

CountEst is a Python module containing the implementation of count-based estimators, i.e., supervised learning algorithms that make predictions based on the frequency or count of specific events, categories, or values within a dataset. These estimators operate under the assumption that the distribution of counts or frequencies provides valuable information for making predictions or inferences. The classifier is inspired by "Vastu Moolak Ganit" as described in a recent Indian philosophy Madhyasth Darshan by Late Shri A Nagraj.

Currently, we have implemented count-based classifier for categorical data. It operates by learning the distribution of category counts (i.e. the number of occurrences or frequency of each distinct category within a specific feature) within each class during the training phase. It then predicts class probabilities for unseen data based on the observed counts of categories within each feature, employing a voting mechanism to handle ties.

Installation

The package can be installed using pip:

pip install CountEst

Dependencies

The installation dependency requirements are:

  • Python (>= 3.9)
  • NumPy (>= 1.5)
  • Pandas (>= 1.1.5)
  • Scikit-Learn (>=0.20.0)

These dependencies are automatically installed using the pip commands above.

Examples

Here we show an example using the CategoricalCBC (i.e. count-based classifier for categorical data):

from CountEst.classifiers import CategoricalCBC
import numpy as np

X = np.random.choice(range(0,10),(100,6))
y = np.random.choice([0, 1], size=100)

estimator = CategoricalCBC()
estimator.fit(X, y)

print(estimator.predict([3, 6, 7, 2, 3, 4]))

Changelog

See the changelog for a history of notable changes to CountEst.

Development

This project is currently in its early stages. We're actively building and shaping it, and we welcome contributions from everyone, regardless of experience level. If you're interested in getting involved, we encourage you to explore the project and see where you can contribute! For specific contribution guidelines, visit our GitHub page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CountEst-0.1.3.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

CountEst-0.1.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file CountEst-0.1.3.tar.gz.

File metadata

  • Download URL: CountEst-0.1.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for CountEst-0.1.3.tar.gz
Algorithm Hash digest
SHA256 92292094f4d7629f68a67c2d53f99cfcd7420f4df07210f5ef6709051c10b81b
MD5 86c0e7fff343e67f6d1b125587662554
BLAKE2b-256 5e3de4d45b931e3a56acbbdc2745586009e86954dda94de74b5a51edff28ddd3

See more details on using hashes here.

File details

Details for the file CountEst-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: CountEst-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for CountEst-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 032cf13673b1bea7e79efc8fa2be504a07ec9ae4d6585777d951ef31625d8606
MD5 0417f56bb27172a02192107b7e252711
BLAKE2b-256 3f3bbefd1b81779948389aa48669420e24e53a237738f93e9ad88a1f179f8d2a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page