semvec/pypi-packages huggingface dataset:
skilearn 0.1.0
A FastAPI-based package for implementing Candidate Elimination, Find-S, and Hypothesis Testing algorithms
License: MIT
Requires Python: >=3.8
Keywords: machine-learning, candidate-elimination, find-s, hypothesis-testing, fastapi

# Skilearn - Machine Learning Algorithms Package

A FastAPI-based Python package implementing fundamental machine learning algorithms including Candidate Elimination, Find-S, and Hypothesis Testing.

## Installation

Install from PyPI (when published):
```bash
pip install skilearn
```

Install from source:
```bash
git clone https://github.com/yourusername/skilearn.git
cd skilearn
pip install -e .
```

## Features

- **Candidate Elimination Algorithm**: Find the version space of hypotheses consistent with training data
- **Find-S Algorithm**: Find the most specific hypothesis consistent with positive examples
- **Hypothesis Testing**: Statistical hypothesis testing utilities

## Usage

### Import the algorithms

```python
from skilearn import CandidateElimination, FindS, HypothesisTesting
import pandas as pd

# Load your data
df = pd.read_csv('your_data.csv')

# Use Find-S algorithm
find_s = FindS()
result = find_s.fit(df[['feature1', 'feature2']], df['label'])
print(f"Hypothesis: {result}")

# Use Candidate Elimination
ce = CandidateElimination()
version_space = ce.fit(df[['feature1', 'feature2']], df['label'])
print(f"Version Space Size: {len(version_space)}")
```

### FastAPI Server

Run the FastAPI server:
```bash
uvicorn skilearn.api:app --reload
```

Then access the interactive API documentation at:
- Swagger UI: `http://localhost:8000/docs`
- ReDoc: `http://localhost:8000/redoc`

## API Endpoints

- `POST /api/find-s`: Apply Find-S algorithm
- `POST /api/candidate-elimination`: Apply Candidate Elimination algorithm
- `POST /api/hypothesis-testing`: Perform statistical hypothesis testing

## Development

Install with development dependencies:
```bash
pip install -e ".[dev]"
```

Run tests:
```bash
pytest
```

## License

MIT License