Skip to main content

CN | EN

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)

Metadata

Release files for lunaxx 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lunaxx 0.0.6
File Size Uploaded Provenance Actions
lunaxx-0.0.6.tar.gz 15.2 kB Without provenance Details for lunaxx-0.0.6.tar.gz

Release files / lunaxx-0.0.6.tar.gz

Download URL lunaxx-0.0.6.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
389b69b6af232f7030ce46c38dc79196ad3aca940634101492d0350413bed7b6
BLAKE2b-256 checksum
How to use checksums
4c467d9fe2d5cb672071d3e0807470c51242f9a3458ff36018c45484892fb805
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Security for lunaxx 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page