-
Generates a random sample from a given (possible weighted) 1-D array.
NumPy docs: https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.choice.html
-
Suppose I'm working with a randomly chosen PDB file:
```
import urllib.request
pdb_id = "5O3U"
local_path = f"/tmp/{pdb_id}.cif.gz"
urllib.request.urlretrieve(f"https://files.rcsb.org/download/…
-
### What did you do?
Hey everyone,
I have an application that uses pillow to encode numpy arrays as jpegs, however I am seeing a strange behavior regarding the memory usage of that application.
…
-
# Summary
`add_with_ids` fails on GPU but works after moving the index to the CPU, is this expected? Thank you in advance!
# Platform
OS: `nvidia/cuda:12.1.1-devel-ubuntu22.04`
Faiss v…
-
Here's a comparison of the JAX and numpy versions of `argsort` on a CPU:
```Python
import numpy as np
import jax.numpy as jnp
from jax import config, random
config.update('jax_platform_name', '…
-
### What happened?
Hi !
Iam using Xarray since quite some time and recently I started using fresh NC files from https://cds.climate.copernicus.eu/ (up to now, using NC4 files that I have from qu…
-
### Description
I want to save the executable file generated by jax.jit in the main process and execute this executable file in another process. However, I have found that the performance of the exec…
-
Cross posting from https://github.com/jax-ml/jax/issues/24929
```
import opt_einsum
import numpy as np
formula = 'a,c,d,db,ab,cb,ac,cd,ad,b->dbc'
arrays = [np.random.rand(*(2,)*len(key)) fo…
-
## Description
I need to use the init_score to provide a prior model but I'm seeing some behaviour I don't understand.
**Setup**
- build a cv model with 20 trees
- build a second cv model with 80 …
-
in some parts of the code (BSR), we use the deprecated `numpy.random.{choice, seed, etc.}` where we should be using random number generator objects. (See https://numpy.org/doc/stable/reference/random/…