Metadata-Version: 2.4
Name: kanishk
Version: 0.1.0
Summary: An AutoML-lite wrapper designed for data scientists and analysts.
Author-email: Kanishk <your.email@example.com>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: pandas
Requires-Dist: numpy
Requires-Dist: scikit-learn
Requires-Dist: xgboost
Requires-Dist: joblib

# Kanishk

**Kanishk** is a powerful, production-ready AutoML wrapper library designed to automate the messy engineering of machine learning.

Just pass in your raw features and a target variable. Kanishk automatically detects task types, builds leak-proof Scikit-Learn Preprocessing Pipelines (handling imputation, scaling, and one-hot encoding), automatically selects the best model, tunes hyperparameters, and provides deep insights like Feature Importance.

## Installation

```bash
pip install kanishk
```
*(Once published to PyPI)*

## Quick Start

Transform your data science workflow with just a few lines of code:

```python
import pandas as pd
from kanishk import KanishkTrainer, KanishkPredictor

# 1. Load your dataset
data = pd.read_csv('your_dataset.csv')
X = data.drop(columns=['target'])
y = data['target']

# 2. Initialize and Train (The Auto Mode Magic!)
# Kanishk will find the best model for your data and tune its hyperparameters automatically.
trainer = KanishkTrainer(model_name='auto', tune=True)
trained_pipeline = trainer.train(X, y)

# 3. Get Deep Insights
# See the underlying logic automatically:
print(trainer.get_feature_importances())

# 4. Save the model
trainer.save_model('my_model.joblib')

# 5. Predict on new data
predictor = KanishkPredictor('my_model.joblib')
predictions = predictor.predict(X.head())
print(predictions)
```

## Advanced Features

- **Auto Model Selection (`model_name='auto'`):** Automatically evaluates top models (Random Forest, XGBoost, Log/Linear Regression, SVM) using Cross-Validation and picks the highest performer.
- **Hyperparameter Tuning (`tune=True`):** Wraps the pipeline in a robust `RandomizedSearchCV` to find the most optimal model parameters for your dataset.
- **Feature Importances:** Easily extract and sort feature importances from the leak-proof pipeline to understand what drives your model's decisions.
- **Automated Task Detection:** Automatically detects if your problem is Classification or Regression.
- **Robust Preprocessing:** Automatically routes numerical and categorical columns to appropriate imputation and scaling/encoding pipelines using Scikit-Learn `ColumnTransformer`.
- **Zero Data Leakage:** Built purely on Scikit-Learn `Pipeline`, ensuring state is only learned on the training set.
