bestree
Under construction.
Developed by CodingLive from ProtDos (c) 2022
##Installation
pip install bestree
Requirements
-
Python (>= 3.8)
-
NumPy (>= 1.17.3)
-
ScikitLearn
-
Pandas
Usage
All best features
from bestree import best_all
from sklearn.tree import DecisionTreeClassifier
from sklearn.datasets import make_blobs # To create random X and y data
X, y = make_blobs(n_samples=100, n_features=2, centers=3, random_state=0)
criterion, max_depths, split, state = best_all(X, y)
clf = DecisionTreeClassifier(max_depth=max_depths, criterion=criterion, min_samples_split=split, random_state=state)
# your script
Choosing the best criterion
from bestree import best_criterion #For pandas objects
from bestree import best_criterion_norm #For other objects
from sklearn.tree import DecisionTreeClassifier
from sklearn.datasets import make_blobs # To create random X and y data
X, y = make_blobs(n_samples=100, n_features=2, centers=3, random_state=0)
criterion = best_criterion_norm(X, y)
print(criterion)
clf = DecisionTreeClassifier(criterion=criterion)
# your script
Choosing the best max_depth value
from bestree import best_depth
from sklearn.tree import DecisionTreeClassifier
from sklearn.datasets import make_blobs # To create random X and y data
X, y = make_blobs(n_samples=100, n_features=2, centers=3, random_state=0)
max_depth = best_depth(X, y, criterion="gini")
clf = DecisionTreeClassifier(max_depth=max_depth)
# your script
Choosing the best splitter
from bestree import best_splitter
from sklearn.tree import DecisionTreeClassifier
from sklearn.datasets import make_blobs # To create random X and y data
X, y = make_blobs(n_samples=100, n_features=2, centers=3, random_state=0)
max_depths = 3
criterion = "gini"
split = best_splitter(X, y, max_depths, criterion=criterion)
clf = DecisionTreeClassifier(min_samples_split=split)
# your script
Choosing the best state
from bestree import best_state
from sklearn.tree import DecisionTreeClassifier
from sklearn.datasets import make_blobs # To create random X and y data
X, y = make_blobs(n_samples=100, n_features=2, centers=3, random_state=0)
max_depths = 3
criterion = "gini"
state = best_state(X, y, max_depths, criterion=criterion)
clf = DecisionTreeClassifier(random_state=state)
# your script
Help & Support
Communication:
-
Mail: rootcode@duck.com
-
Website: https://protdos.com
-
Discord: https://discord.gg/Xtk4XbwW4Z
-
Reddit: https://reddit.com/u/ProtDos
-
Twitter: https://twitter.com/ProtDos
Conclusion
Thanks for everybody that supported me (nobody)
Metadata
Release files for bestree 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bestree-0.1.0.tar.gz | 3.9 kB | Without provenance | Details for bestree-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bestree-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bestree-0.1.0-py3-none-any.whl |
Total release size: 7.9 kB
Release files / bestree-0.1.0.tar.gz
| Download URL | bestree-0.1.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1a2b8659c2c3dd3bdbfa6f423b15f78e099a38f315d180843cdcba4be123f73
|
|
BLAKE2b-256 checksum How to use checksums |
db8d0bd8e3d8cfd672d328b8012f80bb41a4181b2e77bc843275806e3e2cfbae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Release files / bestree-0.1.0-py3-none-any.whl
| Download URL | bestree-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9203011a2beadfca728e68811d0a35c5f0f9064643abbe929ab501c020f4c586
|
|
BLAKE2b-256 checksum How to use checksums |
f5a25b52dbd3075ad0da113dd0e73c2153e142637e12b8dcf75a8b54ca40abf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Security for bestree 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.