Skip to main content

Flexible classifier pipeline that can be used to train and evaluate classification models on various datasets. The pipeline is designed to be versatile and easily adaptable to different datasets and classification tasks

Project description

Flexible Classifier Pipeline

This repository contains a flexible classifier pipeline that can be used to train and evaluate classification models on various datasets. The pipeline is designed to be versatile and easily adaptable to different datasets and classification tasks.

Overview

  1. Data Preprocessing: The pipeline preprocesses the input data, handling missing values, scaling numerical features and encoding categorical features as necessary.
  2. Classification Model: The function employs a neural network featuring multiple hidden layers, batch normalization, and dropout regularization as components within the pipeline.
  3. Validation: The pipeline utilizes validation data to assess the model's performance on the provided dataset. This process aids in evaluating the model's generalization capabilities and mitigating overfitting.

Usage

  1. Prepare Your Data: Ensure that your data is in a suitable format for classification tasks.
  2. Import the Pipeline: Import function process_data which contains preprocessing steps and the classification model.
  3. Train and Evaluate the Model: Pass your data to the pipeline's function along with the target variable (i.e., the label to be predicted).
  4. Interpret the Results: The pipeline will determine the validation accuracy of the model. Use this metric to assess the performance of the model on your dataset.
  5. Use generated pipeline for predictions: Function will return generated pipeline.

Example Usage

You can pass path to dataset with column name to classify.

from flexible_classifier import classifier

pipeline = classifier.process_data('data.csv', 'class')

Or pandas DataFrame.

import pandas as pd
from flexible_classifier import classifier

df1 = pd.read_csv('train.csv')
df2 = pd.read_csv('test.csv')
df = pd.concat([df1, df2])

classifier.process_data(df, 'class')

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

flexible_classifier-0.0.21.tar.gz (1.0 MB view details)

Uploaded Source

File details

Details for the file flexible_classifier-0.0.21.tar.gz.

File metadata

  • Download URL: flexible_classifier-0.0.21.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for flexible_classifier-0.0.21.tar.gz
Algorithm Hash digest
SHA256 7a2a96f07b4d4448d8ae90aacb0305602c642eb026d34ca6e5c12875dec60668
MD5 4469e21b5285f27ae9fab5ce5b941cec
BLAKE2b-256 057b15259c6ead284709d6867b524b242ae9925544511e9b6e69a5868d093481

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