Catalog PyPI
PACKAGE EXPLORERView in registry

aimlexp

PyPI

Quick CLI reference, runner, and exporter for AIML and Machine Learning lab experiments

aiaimlclilab-experimentsmachine-learningreferencescikit-learn
Versions collected1
Direct dependencies5From release 0.1.0
Last observed21 Oct, 11:20 UTC

README

Version 0.1.0 documentation

aimlexp - AIML & Machine Learning Lab Experiments CLI

PyPI version License: MIT Python 3.7+

A fast, lightweight CLI reference tool, runner, and exporter for Machine Learning and AI laboratory practical experiments. Easily view, export, or run clean, self-contained Python programs directly from your terminal using either mlexp or aimlexp.


🚀 Installation

From PyPI:

# Lightweight CLI (zero dependencies)
pip install aimlexp

# Optional: Install with all ML lab libraries (numpy, scikit-learn, etc.)
pip install "aimlexp[lab]"

Local / Editable Mode (for development):

git clone https://github.com/example/aimlexp.git
cd aimlexp
pip install -e .

⚡ Quick Usage

Both mlexp and aimlexp commands are available interchangeably:

1. View Experiment Catalog (--list or -l):

mlexp --list
# or
aimlexp --list

(Running mlexp without arguments also shows the catalog)

2. View Code for Any Experiment:

You can access experiments by number, canonical key, or common aliases:

# By experiment number
mlexp 4
mlexp 04

# By algorithm alias
mlexp knn
mlexp dt
mlexp svm
mlexp nb
mlexp slr
mlexp poly
mlexp kmeans
mlexp pca
mlexp lda
mlexp apriori

3. Save Code Directly to a File (-o / --output):

Save any experiment into a standalone script to work on during lab:

mlexp knn -o knn_lab.py
python knn_lab.py

4. Execute Experiment Immediately (-r / --run):

Run the experiment in Python right from your command line:

mlexp knn -r
mlexp dt --run

5. View Metadata & Overview (-i / --info):

Inspect experiment summary and aliases without printing all code:

mlexp 4 --info

📚 Complete Experiments Catalog

#TitleKeyPrimary AliasesDescription
01Rule-Based COVID Symptom Screeningrule_based_covid1, rule, covid, symptom, expert_systemRule-based symptom checking with conditional logic
02Dataset Import, Encoding & Outliersdataset_encoding_outliers2, encoding, outliers, preprocessing, iqrMedian imputation, categorical encoding, and IQR outlier clipping
03Train-Test Split, Scaling & Samplingtrain_test_scaling_sampling3, split, scaling, sampling, standard_scalerTrain/test partitioning, standard scaling, and row sampling
04K-Nearest Neighbors (KNN) Classifierknn_classifier4, knn, k_nearest_neighborsK-Nearest Neighbors (k=5) classifier on scaled Iris data
05Decision Tree Classifierdecision_tree_classifier5, dt, tree, decision_treeDecisionTreeClassifier with feature threshold rules
06Support Vector Machine (SVM) Classifiersvm_classifier6, svm, svc, support_vector_machineLinear Support Vector Classifier (SVC) with accuracy score
07Naive Bayes Classifiernaive_bayes_classifier7, nb, bayes, gaussian_nbGaussian Naive Bayes probabilistic classification
08Simple Linear Regressionsimple_linear_regression8, slr, linear_regressionSingle-feature regression with slope, intercept & 2D scatter plot
09Multiple Linear Regressionmultiple_linear_regression9, mlr, multiple_regressionMulti-feature price prediction with 3D projection scatter
10Polynomial Regressionpolynomial_regression10, poly, polynomialDegree-2 curved polynomial regression fitting
11Logistic Regression Classifierlogistic_regression11, logistic, log_reg, logitMulticlass Logistic Regression classification on Iris
12Association Rule Learningassociation_rule_learning12, apriori, association, market_basketApriori algorithm discovering frequent itemsets, confidence & lift
13K-Means Clusteringkmeans_clustering13, kmeans, clusteringK-Means 2D clustering with marked centroid visualization
14Hierarchical Clusteringhierarchical_clustering14, hierarchical, agglomerativeAgglomerative hierarchical clustering dendrogram/scatter
15Principal Component Analysis (PCA)principal_component_analysis15, pca, dimensionality_reduction4D to 2D feature reduction maximizing variance
16Linear Discriminant Analysis (LDA)linear_discriminant_analysis16, lda, discriminant_analysisSupervised dimensionality reduction maximizing class separability

📦 Building and Uploading to PyPI

Step 1: Install Build Tools

pip install --upgrade build twine

Step 2: Build Source Distribution and Wheel

From the repository root directory:

python -m build

This generates:

  • dist/mlexp-0.1.0-py3-none-any.whl
  • dist/mlexp-0.1.0.tar.gz

Step 3: Verify the Package Artifacts

python -m twine check dist/*

Step 4: Upload to PyPI

python -m twine upload --repository testpypi dist/*

Option B: Upload to Production PyPI:

python -m twine upload dist/*

Enter your PyPI API token (__token__ as username and your token as password) when prompted.

Once uploaded, anyone can install and use it immediately:

pip install mlexp
mlexp --list

📄 License

This project is licensed under the MIT License.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.013 Oct 20265

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:20 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:132afe51e644c2a335068bc05b2d5737f2f93da976c8f18246a75059452896a2