Metadata-Version: 2.4
Name: regression-model-ibrahim
Version: 0.1.0
Summary: A simple linear regression model
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Dynamic: description
Dynamic: description-content-type
Dynamic: license-file
Dynamic: summary

# Simple Linear Regression

A lightweight Python package that implements simple linear regression without external dependencies.

## Features

- Train a linear regression model using `fit()`.
- Predict values using `predict()`.
- Estimate the slope and intercept of the best-fit line.

## Installation

```bash
pip install regression-model-ibrahim
```

## Usage

```python
from regression_model import SimpleLinearRegression

model = SimpleLinearRegression()

# Training data
X = [1, 2, 3]
y = [2, 4, 6]

# Train the model
model.fit(X, y)

# Make predictions
predictions = model.predict([4, 5])

print(predictions)
# [8.0, 10.0]
```

## How it works

The model learns the slope and intercept of the least-squares regression line:

\[
\hat{y} = b_0 + b_1x
\]

- `fit(X, y)`: estimates the model parameters.
- `predict(X)`: predicts outputs for new input values.

## License

MIT
