This repository provides examples for building a simple multilayer perceptron (MLP) regression model with PyTorch. You can run the code either as a Jupyter notebook or directly from a Python script.
mlp_regression.ipynb– step-by-step notebook that loads data, trains a small MLP, and visualizes the results.mlp_regression.py– equivalent Python script you can execute from the command line.mlp_classification_exercises.ipynb– solutions for several classification problems using an MLP.
Install the dependencies and execute the notebook or script:
pip install torch matplotlib scikit-learn pandas
# run as script
python mlp_regression.pyThis project is released under the MIT License.