Xander AI CLI for training AI models
Project description
Xander AI CLI
Xander AI CLI is a command-line tool for training AI models with ease. It allows you to train classification, regression, text, and image models using a simple command.
Installation
Install Xander AI CLI from PyPI using:
pip install xander-cli
Image Task
- Dataset Format:
- Provide a
.zipfile containing a folder. - Inside the folder:
- Subfolders represent class labels.
- Images within subfolders correspond to their class.
- Provide a
Example Directory Structure:
dataset.zip
│
├── class_1/
│ ├── image1.jpg
│ ├── image2.jpg
│ └── ...
│
├── class_2/
│ ├── image1.jpg
│ ├── image2.jpg
│ └── ...
│
└── class_n/
├── image1.jpg
├── image2.jpg
└── ...
Usage
Train a Model
To train a regression/classification/text model, use the following command:
xander-cli train <task> <dataset_path> <model_name> <epochs> [--target_col <target_column>]
Arguments
| Argument | Description | Example |
|---|---|---|
<task> |
Type of task: classification, regression, text, or image |
classification |
<dataset_path> |
Path to your dataset file (CSV format) | data.csv |
--target_col |
Name of the target column in your dataset (not requiredfor image) | label |
<model_name> |
Name to save your trained model | my_model |
<epochs> |
Number of epochs for training | 50 |
Example Usage for tabular tasks
xander-cli train classification data.csv my_model 50 --target_col label
Example Usage for image tasks
xander-cli train image images.zip my_image_model 20
This command will train a classification model using data.csv, with label as the target column, and train it for 50 epochs.
Author
Xander Co.
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 Distributions
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 xander_cli-0.1-py3-none-any.whl.
File metadata
- Download URL: xander_cli-0.1-py3-none-any.whl
- Upload date:
- Size: 33.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6029aa40635d8d727a104b8de7b8ef39f680dce1f3a071d05c97a44a71f4016
|
|
| MD5 |
581efbfa7de95e46b0e00bc4c9403a7e
|
|
| BLAKE2b-256 |
de999f388bedc15b918529e6bea1ce0ff38100cdcdb1781de41b8c861b89a7c9
|