Installation

This guide will help you install lostml and set up your development environment.

Prerequisites

lostml requires:

  • Python 3.7+ - lostml is compatible with Python 3.7 and above

  • NumPy - For numerical computations (automatically installed)

Installation Methods

Method 2: Install Dependencies Manually

If you prefer to install dependencies manually:

pip install numpy

Then you can import lostml directly if it’s in your Python path.

Verifying Installation

To verify that lostml is installed correctly, try importing it:

import lostml
from lostml import LinearRegression
from lostml.neighbors import KNN

print("lostml installed successfully!")

If you see no errors, you’re all set!

Development Setup

For contributing to lostml or running tests:

  1. Clone the repository:

    git clone https://github.com/yourusername/lostml.git
    cd lostml
    
  2. Install in editable mode:

    pip install -e .
    
  3. Install development dependencies:

    pip install pytest
    
  4. Run tests:

    pytest
    

Troubleshooting

Import Error: No module named ‘lostml’

Make sure you’ve installed the package using pip install -e . from the repository root.

NumPy not found

Install NumPy: pip install numpy

Permission errors on installation

Use pip install --user -e . to install in user space, or use a virtual environment.