nesterov.py: Implementation of the Nesterov Accelerated Gradient algorithm.modelutils.py: Contains the code for the Extreme Learning Machine (ELM) model.cholesky.pyandbackfwd.py: Provide the code for solving the closed-form solution using Cholesky decomposition and forward/backward substitution.
Make sure Python 3.11 is installed. If not, download it from the official website or use a package manager (e.g., brew install python@3.11 on macOS).
To create and use a virtual environment:
-
Create a new virtual environment:
python3.11 -m venv .venv
-
Activate the environment:
- On macOS/Linux:
source .venv/bin/activate - On Windows:
.venv\Scripts\activate
- On macOS/Linux:
-
Install required packages (replace
requirements.txtwith your dependencies file if available):pip install -r requirements.txt
With the environment activated, you can use Jupyter to run the notebooks nesterov.ipynb and cholesky.ipynb:
pip install jupyter
jupyter notebookThen, open the notebooks in your browser and execute the cells as needed.