baselines
a python package used for benchmarking algorithms over various datasets
Installation
pip install base2lines
Introduction
Data class :
show_datasets:
show available datasets
load_dataset :
load specific dataset (pass name as argument)
Classification class :
classification method:
parameters:
dataset in csv format or pandas dataframe with classification column at last
result:
returns benchmark for dataset with various algorithms and its f1_score
Regression Class:
regressor method:
parameters:
dataset (pandas dataframe)
resultantColumn (name of column which has the value to be predicted)
Pipeline Class:
init method:
parameters:
dataset (pandas dataframe)
show_graph method:
parameters:
pipeline_show (sklearn Pipeline object which will be inturn turned to graph)
How to use
Data Class
from baseline.Data import Data
data = Data()
dataset_names = data.show_dataset()
#name should be only from dataset_names
dataset = data.load_dataset('name')
Classification Class
from baseline.classification import Classification
classifier = Classification()
# dataset's last column should be the column to be classified
results = classifier.classification(dataset)
print(results)
Regression Class
from baseline.regression import Regression
regressors = Regression()
# also pass the resultant column
results = regressors.regressor(dataset , resultantColumn)
print(results)
Pipeline Class
from baseline.pipeline import Pipeline
graph = Pipeline(dataset)
#pipeline should only have sklearn components
graph.show_graph(pipelineToBeShown)
Metadata
Release files for base2lines 0.0.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| base2lines-0.0.16.tar.gz | 18.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| base2lines-0.0.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.8 kB
Release files / base2lines-0.0.16.tar.gz
| Download URL | base2lines-0.0.16.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1278f7331dc351aaadfed992f12e7af6632156c914632d36fc53f27e50b7d03
|
|
BLAKE2b-256 checksum How to use checksums |
e01df9d124aeb61318ec086c8a2f99ccc5f3bdebe953c589dba718041223cc44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.8
|
Release files / base2lines-0.0.16-py3-none-any.whl
| Download URL | base2lines-0.0.16-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d522539d20b633a86e2dc14c4313058e6087f56a91a99206d5755771d2ce4b40
|
|
BLAKE2b-256 checksum How to use checksums |
f813d37f9c526a6c50b3dcca69b85bc7b05eaf442eb3cfd19e5952a9b5f81c3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.8
|