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 10,002 public repositories matching this topic...
-
Updated
Oct 29, 2021 - Jupyter Notebook
-
Updated
Oct 29, 2021 - Python
Describe the issue:
Original at matplotlib/matplotlib#21298 but I get identical result from histogram2d
Reproduce the code example:
See https://github.com/matplotlib/matplotlib/issues/21298
Error message:
See https://github.com/matplotlib/matplotlib/issues/21298
NumPy/Python version information:
1.20.1 3.9.7 (default, Au
LGTM alerts .
-
Updated
Oct 19, 2019
Motivated by huggingface/transformers#12789 in Transformers, one welcoming change would be replacing assertions with proper exceptions. The only type of assertions we should keep are those used as sanity checks.
Currently, there is a total of 87 files with the assert
statements (located under datasets
and src/datasets
), so when working on this, to manage the PR s
-
Updated
Dec 22, 2020 - Python
Talking to a user recently, they were confused about how to pass divisions=
in set_index
. Specifically, they missed that the list had to have N+1 elements in it, and the N+1th element was the upper bound for the last partition.
The API docs currently link to https://docs.dask.org/en/latest/dataframe-design.html#partitions, which does describe this in words, but takes some close reading to g
-
Updated
Dec 23, 2020 - Python
-
Updated
Sep 27, 2019 - Jupyter Notebook
-
Updated
Oct 8, 2021 - Python
-
Updated
Oct 6, 2021 - Python
I believe this is undocumented behaviour.
import numba as nb
@nb.njit
def f1():
for i in nb.prange(1):
print(type(i)) # >>> int64
@nb.njit(parallel=True)
def f2():
for i in nb.prange(1):
print(type(i)) # >>> uint64
f1()
f2()
This caused a nasty bug in my own code that was hard to debug as the problem did not exist without `parallel=Tr
Bidirectional RNN
Is there a way to train a bidirectional RNN (like LSTM or GRU) on trax nowadays?
-
Updated
Jun 10, 2021 - Python
-
Updated
Feb 6, 2020
环境
1.系统环境:
2.MegEngine版本:1.6.0rc1
3.python版本:Python 3.8.10
The program stuck at net.load when I was trying to use the MegFlow. I wait for more than 10min and there is no sign of finishing it.
-
Updated
Oct 14, 2021 - Python
codebasics / py
-
Updated
Oct 22, 2021 - Jupyter Notebook
-
Updated
Oct 31, 2021 - Python
-
Updated
Oct 29, 2021 - Python
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
-
Updated
Oct 26, 2021 - Python
-
Updated
Oct 18, 2021 - C++
[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
Noting down a comment by @DanJonesOcean on Twitter: https://twitter.com/DanJonesOcean/status/1441392596362874882
In general, having more examples on each xarray page (like the one below) would be good. Then they would come up quickly in function searches:
http://xarray.pydata.org/en/stable/generated/xarray.Dataset.merge.html#xarray.Dataset.merge
Our API docs are generated by the func
Created by Travis Oliphant
Latest release 12 days ago
- Repository
- numpy/numpy
- Website
- numpy.org
- Wikipedia
- Wikipedia
Add information to this error message which will help an end-user actually figure out what is wrong:
RuntimeError: Expected from <= to to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.)
Motivation
The error message itself told me to ask for an improvement... I cannot find any useful info on thi