A FastAPI-based package for implementing Candidate Elimination, Find-S, and Hypothesis Testing algorithms
Project description
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):
pip install skilearn
Install from source:
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
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:
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 algorithmPOST /api/candidate-elimination: Apply Candidate Elimination algorithmPOST /api/hypothesis-testing: Perform statistical hypothesis testing
Development
Install with development dependencies:
pip install -e ".[dev]"
Run tests:
pytest
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
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
File details
Details for the file skilearn-0.1.0.tar.gz.
File metadata
- Download URL: skilearn-0.1.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33d24460ca31efc636e30ebccb551e41551897a6b27621ba3cee8afd46a0d439
|
|
| MD5 |
24b0f2e2424e4d4230196b288d2754eb
|
|
| BLAKE2b-256 |
b0799b22df3ca0b14bca62c5db4959fe0380edc47854e694edc48b84d9b05120
|
File details
Details for the file skilearn-0.1.0-py3-none-any.whl.
File metadata
- Download URL: skilearn-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2a7acaff3f6e207406a46ec66141881612c627b314dfb9eda1e4bc39bf80f85
|
|
| MD5 |
06e30eccdd6dd539277069ed91bb1dfc
|
|
| BLAKE2b-256 |
c7a24b9c5bace5a63f18bbcf7c5a7480466b3b884c9c6aef5aca4d0f6922d944
|