Skip to main content

Xander - A package to train Classification, Regression, and Image Classification models.

Project description

Xander-AI

Xander-AI is a Python package designed to handle classification, regression, text, and image-related tasks with minimal setup and maximum efficiency.

Installation

pip install xander-ai

Usage

General Instructions

  • Supported Tasks: regression, classification, text, and image.
  • Target Column (target_col):
    • Required for regression, classification, and text tasks.
    • Not required for the image task.
  • Hyperparameters:
    • Accepts a dictionary where the key epochs is used to define the number of training epochs.

Task-Specific Details

Image Task

  • Dataset Format:
    • Provide a .zip file containing a folder.
    • Inside the folder:
      • Subfolders represent class labels.
      • Images within subfolders correspond to their class.
Example Directory Structure:
dataset.zip
│
├── class_1/
│   ├── image1.jpg
│   ├── image2.jpg
│   └── ...
│
├── class_2/
│   ├── image1.jpg
│   ├── image2.jpg
│   └── ...
│
└── class_n/
    ├── image1.jpg
    ├── image2.jpg
    └── ...
Example Code for Image Task:
from xander_ai import Xander

# Hyperparameters for training
hyperparameters = {
    "epochs": 10,
}

# Initialize the Xander model for image task
xander = Xander(
    dataset_path='path_to_your_dataset.zip',  # Provide path to zip file
    model_name="v1",  # You can change the model name as required
    hyperparameters=hyperparameters,  # Provide hyperparameters
    task="image"  # Specify task as 'image'
)

# Train the model
xander.train()

Regression Task

  • Dataset Format:
    • The dataset should have a target column specified using target_col.
    • Ensure that the dataset is in a .csv or .xlsx format.
Example Code for Regression Task:
from xander_ai import Xander

# Hyperparameters for training
hyperparameters = {
    "epochs": 20,
}

# Initialize the Xander model for regression task
xander = Xander(
    dataset_path='path_to_your_dataset.csv',  # Provide path to your dataset
    model_name="v1",  # Model version or name
    hyperparameters=hyperparameters,  # Hyperparameters dictionary
    target_col="target",  # Name of the target column
    task="regression"  # Specify task as 'regression'
)

# Train the model
xander.train()

Classification Task

  • Dataset Format:
    • The dataset should have a target column specified using target_col.
    • The dataset should be in a .csv or .xlsx format.
Example Code for Classification Task:
from xander_ai import Xander

# Hyperparameters for training
hyperparameters = {
    "epochs": 15,
}

# Initialize the Xander model for classification task
xander = Xander(
    dataset_path='path_to_your_dataset.csv',  # Provide path to your dataset
    model_name="v1",  # Model version or name
    hyperparameters=hyperparameters,  # Hyperparameters dictionary
    target_col="target",  # Name of the target column
    task="classification"  # Specify task as 'classification'
)

# Train the model
xander.train()

Text Task

  • Dataset Format:
    • The dataset should have a target column specified using target_col.
    • The dataset should be in a .csv or .xlsx format.
Example Code for Text Task:
from xander_ai import Xander

# Hyperparameters for training
hyperparameters = {
    "epochs": 25,
}

# Initialize the Xander model for text task
xander = Xander(
    dataset_path='path_to_your_text_dataset.csv',  # Provide path to your dataset
    model_name="v1",  # Model version or name
    hyperparameters=hyperparameters,  # Hyperparameters dictionary
    target_col="text_target",  # Name of the target column
    task="text"  # Specify task as 'text'
)

# Train the model
xander.train()

License

MIT License

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

xander_ai-0.2.0.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xander_ai-0.2.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

Details for the file xander_ai-0.2.0.tar.gz.

File metadata

  • Download URL: xander_ai-0.2.0.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for xander_ai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6bc6f518a8870b8bde858a002e73580e17a6759e5616bed3b4b390c4cf4deb5e
MD5 b15b3e02b109a9f2f2ea5619cc18bd2e
BLAKE2b-256 73564767ba7a7b30137b2c5597c59a577f8de24bea9950cb0dd0e26e56a00ad0

See more details on using hashes here.

File details

Details for the file xander_ai-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: xander_ai-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 31.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for xander_ai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d61fbaad562e727b852a912d65d9fb389ad03af7dee2191d95afacc06d135b6
MD5 a41905a220700963f37c4d8a30255257
BLAKE2b-256 83f6fc16f1cdd71114b6b887e92fde117d6c3217256691aad1a92ad62f5872ee

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