a python package to benchmarks algorithms against various datasets
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
base2lines-0.0.16.tar.gz
(18.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file base2lines-0.0.16.tar.gz.
File metadata
- Download URL: base2lines-0.0.16.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1278f7331dc351aaadfed992f12e7af6632156c914632d36fc53f27e50b7d03
|
|
| MD5 |
71233d76a5769a514122cb272c63e6f9
|
|
| BLAKE2b-256 |
e01df9d124aeb61318ec086c8a2f99ccc5f3bdebe953c589dba718041223cc44
|
File details
Details for the file base2lines-0.0.16-py3-none-any.whl.
File metadata
- Download URL: base2lines-0.0.16-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d522539d20b633a86e2dc14c4313058e6087f56a91a99206d5755771d2ce4b40
|
|
| MD5 |
edb763f5ad09575d5388f0e6cc14f49c
|
|
| BLAKE2b-256 |
f813d37f9c526a6c50b3dcca69b85bc7b05eaf442eb3cfd19e5952a9b5f81c3c
|