Skip to main content

NeuroBCL (Neuro Bucket Classifier) is percentile based numeric feature normalizer that works to convert target bucket of numeric feature to its approximate bounds (Given multi-level features)

Project description

NeuroBCL

NeuroBCL (Neuro Bucket Classifier) is a Python package for finding ranges for numeric features normalized with percentile distribution, the basic idea is to divide the range of the feature into buckets and then classify the data into these buckets.

Installation

[Coming Soon] Install the neurobcl package with pip:

$ pip install neurobcl

Or install the latest package directly from github

$ pip install git+https://github.com/searchX/neurobcl

Example Usage

A simple example of using the package is as follows:

Index classifier on our sample data below:

from neurobcl.main import train_from_dictionary
classifier = train_from_dictionary([
        {"color": "red", "size": "small", "price": 100},
        {"color": "blue", "size": "small", "price": 200},
        {"color": "red", "size": "large", "price": 300},
        {"color": "blue", "size": "large", "price": 400},
    ], ["color", "size"], ["price"])
  1. Minimum price that should be greater than for it to be in bucket 1 atleast
classifier.get("price", 1, '>')
# Output: 100
  1. This is the price that will be the limit of all items that can exist until bucket 4
classifier.get("price", 4, '<')
# Output: 400
  1. Use filter, to get the items that are in bucket 1 and color blue
classifier.get("price", 1, '>', filters={"color": "blue"})
# Output: 200

Please look into official docs for more information - https://searchx.github.io/neurobcl/

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

NeuroBCL-0.1.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

NeuroBCL-0.1.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file NeuroBCL-0.1.1.tar.gz.

File metadata

  • Download URL: NeuroBCL-0.1.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.2 CPython/3.10.12

File hashes

Hashes for NeuroBCL-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6f7b99ceff6c1dc3296450d76190f89e7629781b9c05f9178d9fe6dd6805321a
MD5 30fdf04b3c63dd3465509b624dff488a
BLAKE2b-256 95a7341e980c9e6540498a0419737c4c88f5c27c4516eaea0ddd5506a35a8927

See more details on using hashes here.

File details

Details for the file NeuroBCL-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: NeuroBCL-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.2 CPython/3.10.12

File hashes

Hashes for NeuroBCL-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dce918ac6181eb12b050d754c76d60e77be2b7a6296f8f33acba094d421f50d6
MD5 3f8875c3af5057bfee1f8eddd1d25ff1
BLAKE2b-256 6d951f84d13d54b409ec28d6d855fc865eb1177b63f26e898b8439a8d9ebdcc9

See more details on using hashes here.

Supported by

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