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 9,956 public repositories matching this topic...
-
Updated
Oct 19, 2021 - Jupyter Notebook
-
Updated
May 13, 2021 - Python
LGTM alerts .
I notice that there are still a fair number LGTM alerts, many of which look pretty simple. I wonder if they would be a good source of issues for the next NumPy sprint?
-
Updated
Oct 19, 2019
-
Updated
Oct 25, 2021 - Python
-
Updated
Dec 22, 2020 - Python
-
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
-
Updated
Oct 14, 2021 - Python
codebasics / py
-
Updated
Oct 22, 2021 - Jupyter Notebook
-
Updated
Oct 25, 2021 - Python
-
Updated
Oct 25, 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 25, 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
Describe the bug
Failed to execute Series.drop_duplicates
.
In [75]: a = md.DataFrame(np.random.rand(10, 2), columns=['a', 'b'], chunk_size=2)
In [76]: a['a'].drop_duplicates().execute()
Created by Travis Oliphant
Latest release 6 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