Skip to content

Commit 602b5a9

Browse files
authored
Merge pull request #76 from UBC-MDS/feature/readme_peer_fix
readme fix based on peer review
2 parents 809feb9 + 29e95e5 commit 602b5a9

File tree

1 file changed

+48
-18
lines changed

1 file changed

+48
-18
lines changed

README.md

Lines changed: 48 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,45 @@ RidgeMake is a lightweight, user-friendly regression and visualization package d
44

55
## Features
66

7-
- `get_reg_line`: Calculate slope and intercept of the regression line
8-
- `ridge_scatter`: Visualize your data points
9-
- `ridge_scatter_line`: Plot the fitted line on the chart
10-
- `ridge_get_r2`: Evaluate model performance with R² metric
7+
- `get_reg_line`: Calculate slope and intercept of the regression line
8+
- `ridge_scatter`: Visualize your data points
9+
- `ridge_scatter_line`: Plot the fitted line on the chart
10+
- `ridge_get_r2`: Evaluate model performance with R² metric
11+
12+
## Quick example
13+
14+
```python
15+
import numpy as np
16+
from ridgemake import (
17+
get_reg_line,
18+
ridge_scatter,
19+
ridge_scatter_line,
20+
ridge_get_r2
21+
)
22+
23+
# Example paired data
24+
x = np.array([1, 2, 3, 4, 5])
25+
y = np.array([2, 4, 5, 4, 6])
26+
27+
# Fit regression line
28+
slope, intercept = get_reg_line(x, y)
29+
30+
# Compute R^2
31+
r2 = ridge_get_r2(x, y, slope, intercept)
32+
print(f"Slope: {slope:.3f}, Intercept: {intercept:.3f}, R^2: {r2:.3f}")
33+
34+
# Visualize
35+
ridge_scatter(x, y)
36+
ridge_scatter_line(x, y, slope, intercept)
37+
```
38+
39+
## Performance expectations and limitations
40+
41+
RidgeMake is intended for educational use and small-to-medium sized datasets.
42+
43+
The package is designed for simple linear regression on paired numeric data and prioritizes clarity and ease of use over computational efficiency. It is suitable for classroom demonstrations, quick exploratory analysis, and small experiments.
44+
45+
RidgeMake does not support large-scale datasets, high-dimensional data, or advanced regression techniques (e.g., regularization, multivariate regression, or model diagnostics). For production-level workflows or large datasets, users should consider more specialized libraries such as scikit-learn or statsmodels.
1146

1247
## Developer setup
1348

@@ -27,18 +62,12 @@ conda activate group-24-524
2762

2863
### (3) Install the package
2964

30-
If you are developing locally:
65+
From the repo root:
3166

3267
```bash
3368
pip install -e .
3469
```
3570

36-
If you are installing from a released package (example):
37-
38-
```bash
39-
pip install ridge_remake
40-
```
41-
4271
## Running tests
4372

4473
From the repo root:
@@ -50,7 +79,9 @@ pytest -q
5079
## Building documentation locally
5180

5281
### Generate docs locally
82+
5383
From the repo root, run:
84+
5485
```bash
5586
quartodoc build
5687
```
@@ -66,6 +97,7 @@ Documentation deployment is automated via GitHub Actions on pushes to `main`.
6697
### (1) Ensure GitHub Pages is configured
6798

6899
On GitHub:
100+
69101
- Repository Settings → Pages
70102
- Set Source to GitHub Actions
71103

@@ -79,13 +111,11 @@ git push origin main
79111

80112
### (3) View the deployed site
81113

82-
After the workflow finishes, the site will be available at the repository’s GitHub Pages URL:
83-
https://ubc-mds.github.io/DSCI_524_group24/
84-
114+
After the workflow finishes, the site will be available at the repository’s GitHub Pages URL.
85115

86116
## Contributors
87117

88-
- Yue Xiang Ni
89-
- Suryash Chakravarty
90-
- Seungmyun Park
91-
- Jingyi Zha
118+
- Yue Xiang Ni
119+
- Suryash Chakravarty
120+
- Seungmyun Park
121+
- Jingyi Zha

0 commit comments

Comments
 (0)