Skip to main content

this module is used to find out best parameters of desision tree. Markdown Logo

#Bianary_classification

##Aim The module aims to create a library that will help users to build trees that can help classify binary classes easily. But, it is essential to note that this module should be used after the process (cleaning, transformation, and reduction) of the data.

##Advantages 1.)Autopruneing the tree no need to hyperparameter tuneing 2.)very easy to use. 3.) Brier score to evaluate to find out best paraameter as is that it is focused on the positive class, which for imbalanced classification is the minority class. A perfect classifier has a Brier score of 0.0.

##Limitation 1.) Preprocessing must requires. 2.) do not shows good perfformance for high dimentional data ,feature reduction before use this module is adviceable. 3.)little time consumeing.

##code example :

import bianary_decision_parameter
from bianary_decision_parameter import 
from sklearn import preprocessing
from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split
Load breast_cancer dataset
split it into train and test set
da=load_breast_cancer()
X1=da.data
y1=da.target
scaled_X_1 = preprocessing.scale(X1)
X_train1, X_test1, y_train1, y_test1 = train_test_split(scaled_X_1, y1,test_size=0.3)
p2=bianary_decision_parameter('auto',X_train1,y_train1, X_test1, y_test1,1,1)
p3=bianary_decision_parameter('sqrt',X_train1,y_train1, X_test1, y_test1,1,10) 
p4=bianary_decision_parameter('log2',X_train1,y_train1, X_test1, y_test1,1,10)

p2.parameter()

	accuracy_score  missclassification 	specificity 	Recall 	precision 	depth 	ccp_alpha 	max_features
     0 	        0.912281 	0.087719 	0.912281 	0.83871 	0.912281 	2 	0.004307 	auto

Explanation

p2=bianary_decision_parameter('auto',X_train1,y_train1, X_test1, y_test1,1,1) Feature_selection = 'auto' \n class_weight = 0_class ,1_class

Release files for bianary-decision-parameter 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bianary-decision-parameter 0.2
File Size Uploaded
bianary_decision_parameter-0.2.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bianary-decision-parameter 0.2
File Interpreter ABI Platform
bianary_decision_parameter-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / bianary_decision_parameter-0.2.tar.gz

Download URL bianary_decision_parameter-0.2.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bd5cac7fa7062fa265f02b155b431732309ba56c48bc78ada8a8f0e85d8ac0e6
BLAKE2b-256 checksum
How to use checksums
77a507724d39d97b2ef0051ac87fdf88c50b9e1aef105195d8edcfb6358d5787
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

Release files / bianary_decision_parameter-0.2-py3-none-any.whl

Download URL bianary_decision_parameter-0.2-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c3ed241d126140d79f22e1313510dab3b749c67fd95c30cb500ca6b3fd87515
BLAKE2b-256 checksum
How to use checksums
7341cc654b1e79f4787807b42e9798f4c433e00f50f36cddaf742a932335b8a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

1 release file

0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page