Skip to content

Commit

Permalink
Merge pull request #26 from zalgo3/fix-broken-codes
Browse files Browse the repository at this point in the history
fix broken codes
  • Loading branch information
zalgo3 authored Nov 7, 2024
2 parents 867b0da + bbd2653 commit a4d7abe
Show file tree
Hide file tree
Showing 6 changed files with 187 additions and 6,906 deletions.
27 changes: 18 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,44 @@ Note that FISTA also requires $f$ to be convex.

- Documentation: https://zalgo3.github.io/zfista/

## Requirements
### Requirements
- Python 3.9 or later

## Install
```sh
### Install
```Shell
pip install zfista
```

## Quickstart
### Quickstart
```python
from zfista import minimize_proximal_gradient
help(minimize_proximal_gradient)
```

## Examples
## For developers

### Installation
```Shell
pip install -e .
```

### Examples
You can run some examples on jupyter notebooks.
```Shell
pip install -e ".[examples]"
jupyter notebook
```

## Testing
### Testing
You can run all tests by
```Shell
python -m unittest discover
pip install tox
tox
```

## Benchmark
### Benchmark
You can run the benchmark by
```Shell
pip install -U joblib matplotlib pandas SciencePlots tqdm
pip install -e ".[bench]"
python runtests.py
```
1 change: 1 addition & 0 deletions benchmarks/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import scienceplots # noqa: F401
from joblib import Parallel, delayed
from mpl_toolkits.mplot3d import Axes3D
from tqdm.auto import tqdm
Expand Down
Loading

0 comments on commit a4d7abe

Please sign in to comment.