sklearnk
Collection of AI & ML lab programs.
Installation
pip install sklearnk
Usage
This package provides 15 AI/ML programs. Each program can be used in two ways:
1. Get Source Code as Text
import sklearnk
# Returns the full source code as a string
code = sklearnk.program1()
print(code)
2. Execute the Program
import sklearnk
# Executes the program directly
sklearnk.program1_run()
Program List
- program1 / program1_run: Tic Tac Toe
- program2 / program2_run: Alpha Beta Pruning
- program3 / program3_run: 8 Puzzle (A* Algorithm)
- program4 / program4_run: Hill Climbing
- program5 / program5_run: Logistic Regression
- program6 / program6_run: Naive Bayes
- program7 / program7_run: K-Nearest Neighbors
- program8 / program8_run: K-Means Clustering
- program9 / program9_run: Logistic Regression (sklearn)
- program10 / program10_run: Naive Bayes (sklearn)
- program11 / program11_run: KNN (sklearn)
- program12 / program12_run: K-Means (sklearn)
- program13 / program13_run: Logistic Regression (User Input)
- program14 / program14_run: Naive Bayes (User Input)
- program15 / program15_run: KNN (User Input)
Examples
import sklearnk
# Example 1: View source code
source = sklearnk.program3()
print(source)
# Example 2: Run the A* algorithm
sklearnk.program3_run()
# Example 3: Get KNN source and save to file
with open('knn.py', 'w') as f:
f.write(sklearnk.program7())
Metadata
Release files for sklearnk 0.5.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sklearnk-0.5.7.tar.gz | 9.1 kB | Without provenance | Details for sklearnk-0.5.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sklearnk-0.5.7-py3-none-any.whl | Python 3 | none | any | Details for sklearnk-0.5.7-py3-none-any.whl |
Total release size: 24.0 kB
Release files / sklearnk-0.5.7.tar.gz
| Download URL | sklearnk-0.5.7.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3ab6ecf76ea6b9a83c04def32f7748b3bd674c4b14c884c3a0e942a78f44225
|
|
BLAKE2b-256 checksum How to use checksums |
d914c65d4f0ddd261302da483739eab09db53164b8e709c4bd83899180a93ae9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / sklearnk-0.5.7-py3-none-any.whl
| Download URL | sklearnk-0.5.7-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34a0bab5050906e58b120c81ee55d096c5e72e108719ec5be7245aada88ad90a
|
|
BLAKE2b-256 checksum How to use checksums |
1419ce461328775ecaab352e4e2412130d682f932f92c96fe74d336ed60774cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for sklearnk 0.5.7
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.