A machine learning framework.
Project description
Lunax is a machine learning framework specifically designed for the processing and analysis of tabular data. The name Lunax is derived from the name of a beloved feline mascot at South China University of Technology
猸愶笍 Star it if you like it 猸愶笍
Installation
conda create -n your_env_name python=3.11
conda activate your_env_name
pip install lunax
Features
- Data loading and Data pre-processing
- EDA analysis
- Supports multi-model training and Hyperparameter tuning
- Comprehensive model evaluation and Explainable AI (XAI)
Quick Start
Data Loading and Pre-processing
from lunax.data_processing.utils import *
df_train = load_data('train.csv') # or df = load_data('train.parquet',mode='parquet')
target = 'label_column_name'
df_train = preprocess_data(df_train,target) # data pre-processing, including missing value handling, feature encoding, feature scaling
X_train, X_val, y_train, y_val = split_data(df_train, target)
Exploratory Data Analysis
from lunax.viz import numeric_eda, categoric_eda
numeric_eda([df_train,df_test],['train','test'],target=target) # numeric feature analysis
categoric_eda([df_train,df_test],['train','test'],target=target) # categorical feature analysis
Automation Machine Learning Modeling
from lunax.models import xgb_clf # or xgb_reg, lgbm_reg, lgbm_clf, cat_clf, cat_reg
from lunax.hyper_opt import OptunaTuner
tuner = OptunaTuner(n_trials=10,model_class="XGBClassifier") # Hyperparameter optimizer, n_trials is the number of optimization times
# or "XGBRegressor", "LGBMRegressor", "LGBMClassifier" , "CatClassifier", "CatRegressor"
results = tuner.optimize(X_train, y_train, X_val, y_val)
best_params = results['best_params']
model = xgb_clf(best_params)
model.fit(X_train, y_train)
Model Evaluation and Explainable AI (XAI)
model.evaluate(X_val, y_val)
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
lunaxx-0.0.6.tar.gz
(15.2 kB
view details)
File details
Details for the file lunaxx-0.0.6.tar.gz.
File metadata
- Download URL: lunaxx-0.0.6.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
389b69b6af232f7030ce46c38dc79196ad3aca940634101492d0350413bed7b6
|
|
| MD5 |
e7a0be40e94851ec34216eb29b5f64be
|
|
| BLAKE2b-256 |
4c467d9fe2d5cb672071d3e0807470c51242f9a3458ff36018c45484892fb805
|