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 8,384 public repositories matching this topic...
-
Updated
Apr 15, 2021 - Jupyter Notebook
-
Updated
May 13, 2021 - Python
Picking up from #15731, there are many places in numpy where we do something like:
try:
something_which_throws_typeError
except TypeError:
raise ValueError("a clearer explanation of what went wrong")
It would produce a marginally clearer error if we could change these to use traceback chaining. Our two options are either:
- The inner error provides valuable infor
-
Updated
Oct 19, 2019
-
Updated
Dec 22, 2020 - Python
I just ran into an issue when trying to use to_csv
with distributed workers that don't share a file system. I shouldn't have been surprised that writing to a local file system from a distributed worker doesn't work. It shouldn't work. But the error I got was just a File Not Found
error. That brought me to:dask/dask#2656 (comment) - which was the answer.
It's normal to have many map()
calls, and some of them can take a few minutes,
it would be nice to have a description on the progress bar.
Alternative solution:
Print the description before/after the map()
call.
-
Updated
Dec 23, 2020 - Python
-
Updated
Sep 27, 2019 - Jupyter Notebook
-
Updated
May 7, 2021 - Python
-
Updated
Apr 5, 2021 - Python
In numba/stencils/stencil.py, there are various places (like line 552, "if isinstance(kernel_size[i][0], int):") where we check for "int" in relation to neighborhoods. I ran across a case where I was creating a neighborhood tuple by extracting values from a Numpy array. This causes a problem because those Numpy values will not match in these isinstance int checks. I worked around it by conver
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
May 12, 2021 - Python
-
Updated
May 18, 2021 - Python
- What's your use case?
[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
May 18, 2021 - C++
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
May 13, 2021 - Jupyter Notebook
Implements {DataFrame,Series}.empty
-
Updated
May 18, 2021 - Rust
Created by Travis Oliphant
Latest release 9 days ago
- Repository
- numpy/numpy
- Website
- numpy.org
- Wikipedia
- Wikipedia
There are some common misuse patterns in TorchScript that we should issue clear error messages for instead of generating generic error that doesn't capture root cause of error.
Here are a few examples:
nn.Module
inside TorchScript. This currently errors out because TorchScript would attempt to compile__init__()
method of module, which usually contains a call