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, andimage. - Target Column (
target_col):- Required for
regression,classification, andtexttasks. - Not required for the
imagetask.
- Required for
- Hyperparameters:
- Accepts a dictionary where the key
epochsis used to define the number of training epochs.
- Accepts a dictionary where the key
Task-Specific Details
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
└── ...
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
.csvor.xlsxformat.
- The dataset should have a target column specified using
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
.csvor.xlsxformat.
- The dataset should have a target column specified using
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
.csvor.xlsxformat.
- The dataset should have a target column specified using
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
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
xander_ai-0.1.0.tar.gz
(23.9 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
xander_ai-0.1.0-py3-none-any.whl
(31.5 kB
view details)
File details
Details for the file xander_ai-0.1.0.tar.gz.
File metadata
- Download URL: xander_ai-0.1.0.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d3f56859d6fe4a29d2ce1c2a1ed5266c8ca25338ffb4800cc4ef00fcdf9960c
|
|
| MD5 |
98d9dfe7f89d59246c0585d2763b6335
|
|
| BLAKE2b-256 |
02af619f43f59cb22b361d8a0422766222ee09be7cd4aabb43b596df02e3cd9d
|
File details
Details for the file xander_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: xander_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 31.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 |
b95d8059b7e044d661b8fa81a5f8d8552edcfa65c5ccee79ddda8eb417625e0a
|
|
| MD5 |
f208a0fc261b7818e82c18f073705386
|
|
| BLAKE2b-256 |
67234a92d71e6e5374eb963d4079d0394e8567978a5e55999a2c573a017d127e
|