Skip to content

Commit

Permalink
fixed test_batch_vs_single.py to change allowed error from 0.001 to 0…
Browse files Browse the repository at this point in the history
….0012 when comparing GPU to CPU predictions. Got rid of old_readem.md. Updated README.md.
  • Loading branch information
ryanemenecker committed Nov 4, 2024
1 parent 6a535e6 commit 409d5db
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1,105 deletions.
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pip install metapredict

To check the installation has worked run:
```bash
metapredict-predict-disorder --help
metapredict-predict-disorder --help
```
from the command line; this should yield help info on the `metapredict-predict-disorder` command.

Expand All @@ -47,7 +47,7 @@ As of at least PyTorch 2.2.2 on macOS, there are binary incompatibilities betwee
If you are on an older version of CUDA, a torch version that *does not have the correct CUDA version* will be installed. This can cause a segfault when running metapredict. To fix this, you need to install torch for your specific CUDA version. For example, to install PyTorch on Linux using pip with a CUDA version of 12.1, you would run:

```bash
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
pip install torch --index-url https://download.pytorch.org/whl/cu121
```

To figure out which version of CUDA you currently have (assuming you have a CUDA-enabled GPU that is set up correctly), you need to run:
Expand All @@ -64,19 +64,20 @@ Please see the [PyTorch install instructions](https://pytorch.org/get-started/lo
The current stable version of **metapredict** is available through GitHub or the Python Package Index (PyPI).

To install from PyPI, run:

pip install metapredict
```bash
pip install metapredict
```

You can also install the current development version from

pip install git+https://git@github.com/idptools/metapredict

```bash
pip install git+https://git@github.com/idptools/metapredict
```
To clone the GitHub repository and gain the ability to modify a local copy of the code, run

git clone https://github.com/idptools/metapredict.git
cd metapredict
pip install -e .
```bash
git clone https://github.com/idptools/metapredict.git
cd metapredict
pip install -e .
```
Note you will need the -e flag to ensure the `cython` code compiles correctly, but this also means the installed version is linked to the local version of the code.

This will install **metapredict** locally. If you modify the source code in the local repository, be sure to re-install with `pip`.
Expand Down
2 changes: 1 addition & 1 deletion metapredict/tests/test_batch_vs_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def score_compare(s1, s2):
"""

return np.allclose(np.array(s1), np.array(s2), atol=1e-3)
return np.allclose(np.array(s1), np.array(s2), atol=0.0012)



Expand Down
Loading

0 comments on commit 409d5db

Please sign in to comment.