NumPy

NumPy is an open source library for the Python programming language, adding support for large, multidimensional arrays, and matrices, along with a large collection of high-level mathematical functions to operate on these arrays.
Here are 7,910 public repositories matching this topic...
-
Updated
Mar 19, 2021 - Jupyter Notebook
-
Updated
Feb 18, 2021 - Python
nditer.close (documentation) takes no arguments, the foreign function implements it also takes only the self
parameter:
However, this foreign function is declared with the ml_flag `METH
-
Updated
Oct 19, 2019
-
Updated
Dec 22, 2020 - Python
it would be handy to have a passthrough parameter to dd.concat - currently the union_categoricals call is parameter-free:
dtype = "category"
if left is not None and right is not None:
dtype = union_categoricals(
[left.astype("category").values, right.astype("category").values]
).dtype
This can be made more fle
-
Updated
Sep 27, 2019 - Jupyter Notebook
-
Updated
Dec 23, 2020 - Python
-
Updated
Feb 9, 2021 - Python
This happens after a map
operation when num_proc
is set to >1
. I tested this by cleaning up the json before running the map
op on the dataset so it's unlikely it's coming from an earlier concatenation.
Example result:
"citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE
-
Updated
Mar 23, 2021 - Python
(Noticed whilst reviewing #6695)
From the docs for numba.cuda.atomic.compare_and_swap
:
class compare_and_swap(ary, old, val)
Conditionally assign val to the first element of an 1D array ary if the current value matches old.
Returns the current value as if it is loaded atomically.
It seem
Bidirectional RNN
Is there a way to train a bidirectional RNN (like LSTM or GRU) on trax nowadays?
-
Updated
Feb 17, 2021 - Python
-
Updated
Feb 6, 2020
-
Updated
Mar 25, 2021 - Python
-
Updated
Mar 26, 2021 - Python
-
Updated
Mar 20, 2021 - Python
[Error Message] Improve error message in SentencepieceTokenizer when arguments are not expected.
Description
While using tokenizers.create with the model and vocab file for a custom corpus, the code throws an error and is not able to generate the BERT vocab file
Error Message
ValueError: Mismatch vocabulary! All special tokens specified must be control tokens in the sentencepiece vocabulary.
To Reproduce
from gluonnlp.data import tokenizers
tokenizers.create('spm', model_p
-
Updated
Mar 25, 2021 - C++
Implements {DataFrame,Series}.empty
hi,
if possible, please add these indicators as well:
TDI (Traders Dynamic Index)
chandelier exit
pivot points
BOP (balance of power)
CTM (Chande trend meter)
Coppock Curve
Correlation Coefficient
PMO (DecisionPoint Price Momentum Oscillator)
Ulcer Index
most of them except TDI are available on stockcharts.com
thanks
codebasics / py
-
Updated
Mar 26, 2021 - Jupyter Notebook
-
Updated
Mar 9, 2021 - Jupyter Notebook
Created by Travis Oliphant
Latest release about 2 months ago
- Repository
- numpy/numpy
- Website
- numpy.org
- Wikipedia
- Wikipedia
I stumbled upon excessive CPU usage for my training code running on GPU. After some investigations I found the culprit.
It basically was
To Reproduce
This is quick and loads single CPU core.
This is 3 times slowe