Turn a list of STAC items into a 4D xarray DataArray (dims: time, band, y, x), including reprojection to a common grid. The array is a lazy Dask array, so loading and processing the data in parallel—locally or on a cluster—is just a compute() call away. For more information and...
make_arrayis whether integers/floats/rationals should be stored as Python integers/etc., or as JAX arrays. Instances can be called with key-value pairs of symbol-value, as in the above example. Instances have a.sympy()method that translates the module back into a PyTree of SymPy expression...
Equipped with suitable functions to turn RDKit atom objects and RDKit bond objects into informative feature vectors, we swiftly move on to define a function which turns a list of SMILES strings and an associated list of labels (such as pKi values) into a list of Pytorch Geometric graph ...
At a low level, a ContourSet is represented as a list of PathCollections (the.collectionsattribute), with one such PathCollection per contour level value; the individual paths in the PathCollection are the connected components of that contour level. But we could instead "lift" things up one le...
{'eos_token_id': 151645, 'pad_token_id': 151643, 'recompute_log_prob': False, 'do_sample': False, 'validate': True} (WorkerDict pid=49813) /usr/local/python/lib/python3.10/site-packages/sglang/srt/utils.py:888: UserWarning: The given NumPy array is not writable, and PyTorch does...
rooarglist ‑ pyunittests-bindings-pyroot-pythonizations-pyroot-roofit-rooarglist pyunittests-bindings-pyroot-pythonizations-pyroot-roofit-roocmdarg ‑ pyunittests-bindings-pyroot-pythonizations-pyroot-roofit-roocmdarg pyunittests-bindings-pyroot-pythonizations-pyroot-roofit-roodatahist-numpy ‑ ...
name.to_list() # find substrate to evader transforms: sub_to_evader_transforms = efflux_mmpa_index[(efflux_mmpa_index['compound_structure_B'].isin(efflux_evaders_om_corrected.SMILES)) & (efflux_mmpa_index['compound_structure_A'].isin(efflux_substrates_om_corrected.SMILES))] len(sub_to_...
array(list(map(float, line[-300:])), dtype=np.float) # [300] vocab[line[0]] = vector vocab['<unk>'] = np.random.rand(dimension) print(f'[!] load word embedding from {path}') with open(exist_, 'wb') as f: pickle.dump(vocab, f) return vocab def sent2glove(vocab, sent)...
Neighbourhood methods in StellarGraph class (neighbors, in_nodes, out_nodes) now return a list of neighbours instead of a set. This addresses #653. This means multi-edges are no longer collapsed into one in the return value. There will be an implicit change in behaviour for explorer classes...