Skip to content
#

numpy

Here are 5,344 public repositories matching this topic...

eric-wieser
eric-wieser commented Apr 15, 2020

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

try:
    something_which_throws_typeError
except TypeError as e:
    raise ValueEr
eugeneh101
eugeneh101 commented Apr 24, 2020

If you join Dask DataFrame on a categorical column, then the outputted Dask DataFrame column is still category dtype. However, the moment you .compute() the outputted Dask DataFrame, then the column is the wrong dtype, not categorical.

Tested on Dask 2.14.0 and Pandas 1.0.3
This example where the category type looks like a float, so after .compute(), the dtype is float.

import dask.d
vpapaioannou
vpapaioannou commented Jun 4, 2019

Describe the bug
I try to run tensorboardX/examples/demo_graph.py for jupyter notebook (launched by anaconda navigator) and I get the error seen at Additional context.

I just copy paste the code to notebook from Github.

Minimal runnable code to reproduce the behavior
class SimpleModel(nn.Module):
def init(self):
super(SimpleModel, self).init()

toslunar
toslunar commented Nov 8, 2019

Sphinx (2.2.1 or master) produces the following two kinds of warnings in my environment.

duplicate object description

I think cross refs to such object is ambiguous.

autosummary: stub file not found

There are

  • chainer.dataset.Converter base class and
  • chainer.dataset.converter decorator.

Therefore the filesystem has to allow to store `chainer.dataset.Conver

numba
stuartarchibald
stuartarchibald commented Apr 8, 2020

Feature request

It'd be useful to have the amount of memory available on a machine added to the numba -s output. This is useful to know for cases where e.g. swapping might be occurring.

This is a good first issue, work involves:

  1. Find a way to get the total available memory using Python standard libraries or NumPy.
  2. Print the information in 1. in this section: https://github.com
felipeboffnunes
felipeboffnunes commented Apr 24, 2020

Description

Trax is a library for deep learning that focuses on sequence models and reinforcement learning. It combines performance with code clarity and maintained documentation and tests.
...

Sorry to bother, I'll be brief. I don't think the "maintained documentation" part of the statement is true (yet?). I like the work and I respect every project that goes deep down on neural network

tort-dla-psa
tort-dla-psa commented Nov 1, 2019

In numpy we have this:

>>>np.unravel_index(0, [1,32,32,1])
(0, 0, 0, 0)

>>>np.unravel_index([0,1,2], [1,32,32,1])
(array([0, 0, 0]), array([0, 0, 0]), array([0, 1, 2]), array([0, 0, 0]))

But in xtensor we can only use unravel with one index. Also we'll get by this not an xarray of
dimensions, but this:

"xt::get_strides_t<std::vector<int, std::allocator>>"

Why is it

人工智能学习路线图,整理近200个实战案例与项目,免费提供配套教材,零基础入门,就业实战!包括:Python,数学,机器学习,数据分析,深度学习,计算机视觉,自然语言处理,PyTorch tensorflow machine-learning,deep-learning data-analysis data-mining mathematics data-science artificial-intelligence python tensorflow tensorflow2 caffe keras pytorch algorithm numpy pandas matplotlib seaborn nlp cv等热门领域

  • Updated Feb 6, 2020
jsmidt
jsmidt commented May 2, 2020

Problem Description

The function description documentation for alphalens.performance.factor_alpha_beta says "Compute the alpha (excess returns), alpha t-stat (alpha significance), and beta (market exposure) of a factor. "

The return documentation says "A list containing the alpha, beta, a t-stat(alpha) for the given factor and forward returns."

I am assuming "a t-stat" means "and t-sta

LePingKYXK
LePingKYXK commented Mar 17, 2020

在基础篇 NumPy 的安装这一则内容中的表述并不太准确,如下:
基础篇 NumPy 的安装

对于 Windows 用户而言,直接在 cmd 或者 power shell 中输入 pip install numpy 命令后,安装的并不是完整版的 NumPy.
没有 mkl 支持的 NumPy 没法生成窗函数(至少是这个,别的函数应该也有不支持的)。

建议 Windows 用户从 [Unofficial Windows Binaries for Python Extension Packages](http://www.lfd.uc

Improve this page

Add a description, image, and links to the numpy topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the numpy topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.