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,875 public repositories matching this topic...
-
Updated
Mar 19, 2021 - Jupyter Notebook
-
Updated
Feb 18, 2021 - Python
Typing code example:
import datetime
import numpy as np
d = np.datetime64(datetime.date(2021, 3, 17))
Run mypy on file
untitled.py:3: error: No overload variant of "datetime64" matches argument type "date" [call-overload]
untitled.py:3: note: Possible overload variant:
untitled.py:3: note: def datetime64(self, Union[None, datetime64, Union[str, bytes]
-
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
Hello,
It seems when a cached file is saved from calling dataset.map
for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
-
Updated
Mar 21, 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 21, 2021 - Python
-
Updated
Mar 20, 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 19, 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
Feb 27, 2021 - Jupyter Notebook
-
Updated
Mar 9, 2021 - Jupyter Notebook
Created by Travis Oliphant
Latest release about 1 month ago
- Repository
- numpy/numpy
- Website
- numpy.org
- Wikipedia
- Wikipedia
According to
https://github.com/pytorch/pytorch/blob/64847c7f0b3559c6edc40f001619b80c7dc68ef7/c10/util/Exception.h#L479
all usages of AT_ERROR("msg") should be replace with
TORCH_CHECK(false, "msg")
There are currently 29 instances of AT_ERROR being used in c10 codebase: