Skip to main content

Internal system processing utility library

Project description

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())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sklearnk-0.5.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sklearnk-0.5.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file sklearnk-0.5.0.tar.gz.

File metadata

  • Download URL: sklearnk-0.5.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for sklearnk-0.5.0.tar.gz
Algorithm Hash digest
SHA256 74e252e24269f4938f8fd9598896b6bb3cac36c2e3c2dca32f275bd83829dfc7
MD5 a43e9aa126025ce42d5e4ac976e88ec6
BLAKE2b-256 6853be2ea0d2ce15f9e8687c116fa896417f351c8c21de025d0fcdf923e98300

See more details on using hashes here.

File details

Details for the file sklearnk-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: sklearnk-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for sklearnk-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 816704e37e34a2042851fd3651c69430584190ad250c90b09667d72fa7383e8d
MD5 005a91ef8d38c19ff2f58a17758f8874
BLAKE2b-256 bc643f5e1b7814fb7cc8cdf88797a0b30946d053f56f198ac7023c751e6da6ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page