Skip to main content

MLP

A Python package for Jupyter Notebook integration and Machine Learning program execution.

Overview

MLP provides seamless access to 18 Machine Learning practical programs and a shared dataset directly inside Jupyter Notebook cells. Programs are inserted directly into the next cell for inspection and manual execution without automatic execution.


Installation

Core Package (Lightweight)

To install MLP with only core Jupyter/IPython dependencies:

pip install mlp-jupyter

Full Machine Learning Dependencies

To install MLP along with all dependencies required to execute the machine learning algorithms (numpy, pandas, scikit-learn, matplotlib, seaborn, mlxtend, openpyxl):

pip install "mlp-jupyter[all]"

Development Installation

To install for local development and testing:

pip install -e ".[dev]"

Python Version Compatibility

  • Supported Python versions: Python 3.8+ (including 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.14).

Jupyter Notebook Setup

  1. Launch your Jupyter environment:
    jupyter notebook
    # or
    jupyter lab
    
  2. Open a new or existing Python notebook.
  3. Import the package:
    import MLP
    

(Note: The PyPI distribution name is mlp-jupyter, while the Python import name is strictly MLP).


Public API Reference

1. MLP.list()

Displays all 18 available programs in Part A and Part B order:

import MLP

MLP.list()

Output:

AVAILABLE MLP

PART A
DV-A   Data Visualization
AP-A   Apriori Algorithm
KNN-A  K-Nearest Neighbors
LR-A   Linear Regression
NB-A   Naive Bayes
DT-A   Decision Tree
RF-A   Random Forest
MM-A   Multiple Regression

PART B
CEB-B  Data Interfaces
DP-B   Data Preprocessing
DDD-B  Data Exploration
FPG-B  Frequent Pattern Growth
SV-B   Support Vector Machine
R-B    Regression
KM-B   K-Means Clustering
AC-B   Agglomerative Clustering
DBC-B  DBSCAN
NN-B   Neural Network

2. MLP.get(program_id)

Inserts the complete, unaltered source code of the specified program into the next notebook cell:

MLP.get("LR-A")
  • Accepts identifiers with or without .py extension (e.g. "LR-A" or "LR-A.py").
  • Uses set_next_input(replace=False) to create a new cell below the current one.
  • Preserves all indentation, comments, and structure.
  • Never executes automatically; the inserted cell is ready for manual review and execution.

3. MLP.info(program_id)

Displays metadata for any program:

MLP.info("LR-A")

Output:

Program ID:          LR-A
Program filename:    LR-A.py
Program description: Linear Regression
Part:                Part A
Program number:      4

4. MLP.dataset(copy_to=None)

Retrieves the absolute path to the bundled common_dataset.csv, or optionally copies it locally:

# Get absolute path to the bundled dataset
path = MLP.dataset()
print(path)

# Copy the dataset into your current working directory
local_copy = MLP.dataset(copy_to=".")

# Or copy to a specific folder or file path
custom_copy = MLP.dataset(copy_to="data/common_dataset.csv")

The original package dataset remains untouched.


Complete Program Catalog

Part Program ID Filename Description Program Number
Part A DV-A DV-A.py Data Visualization 1
Part A AP-A AP-A.py Apriori Algorithm 2
Part A KNN-A KNN-A.py K-Nearest Neighbors 3
Part A LR-A LR-A.py Linear Regression 4
Part A NB-A NB-A.py Naive Bayes 5
Part A DT-A DT-A.py Decision Tree 6
Part A RF-A RF-A.py Random Forest 7
Part A MM-A MM-A.py Multiple Regression 8
Part B CEB-B CEB-B.py Data Interfaces 9
Part B DP-B DP-B.py Data Preprocessing 10
Part B DDD-B DDD-B.py Data Exploration 11
Part B FPG-B FPG-B.py Frequent Pattern Growth 12
Part B SV-B SV-B.py Support Vector Machine 13
Part B R-B R-B.py Regression 14
Part B KM-B KM-B.py K-Means Clustering 15
Part B AC-B AC-B.py Agglomerative Clustering 16
Part B DBC-B DBC-B.py DBSCAN 17
Part B NN-B NN-B.py Neural Network 18

Troubleshooting

Notice: MLP.get(...) requires an active IPython or Jupyter Notebook environment

  • Cause: MLP.get() was called from a standard headless script or standard terminal instead of Jupyter.
  • Resolution: Run MLP.get() from inside a Jupyter Notebook cell or interactive IPython shell.

ModuleNotFoundError: No module named 'pandas' (or sklearn, matplotlib)

  • Cause: The specific ML program requires third-party packages that are not yet installed in your environment.
  • Resolution: Install the complete dependency bundle using:
    pip install "mlp-jupyter[all]"
    

common_dataset.csv not found in DV-A

  • Cause: Running DV-A from a directory without the dataset.
  • Resolution: Simply enter common_dataset.csv when prompted by DV-A; it automatically resolves to the bundled dataset via MLP.dataset(). Alternatively, provide the full path or copy it locally with MLP.dataset(copy_to=".").

License

This project is licensed under the MIT License. See LICENSE for details.

Metadata

Release files for mlp-jupyter 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlp-jupyter 0.1.0
File Size Uploaded Provenance Actions
mlp_jupyter-0.1.0.tar.gz 19.4 kB Without provenance Details for mlp_jupyter-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mlp-jupyter 0.1.0
File Interpreter ABI Platform Actions
mlp_jupyter-0.1.0-py3-none-any.whl Python 3 none any Details for mlp_jupyter-0.1.0-py3-none-any.whl

Total release size: 40.9 kB

Release files / mlp_jupyter-0.1.0.tar.gz

Download URL mlp_jupyter-0.1.0.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e218db93aca19209a84beeb34417b4393bf50c8c29a894be467e94041d68a66b
BLAKE2b-256 checksum
How to use checksums
ec51aa6ed5485877d6dc20256428ba8a3859fac4d082613a576254c9ec7e9e9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / mlp_jupyter-0.1.0-py3-none-any.whl

Download URL mlp_jupyter-0.1.0-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
041b382bf465825eadc7d4a8a6f787014b75804e0a265070a37587286255ba8d
BLAKE2b-256 checksum
How to use checksums
9881bf1f71b92a98c2d752b5031f06681b0e914ac851a69f80d26b2feaede617
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for mlp-jupyter 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page