The Wayback Machine - https://web.archive.org/web/20210120204919/https://github.com/topics/python
Skip to content
#

Python

python logo

Python is a dynamically typed programming language designed by Guido van Rossum. Much like the programming language Ruby, Python was designed to be easily read by programmers. Because of its large following and many libraries, Python can be implemented and used to do anything from webpages to scientific research.

Here are 185,405 public repositories matching this topic...

akamaus
akamaus commented Nov 19, 2020

🐛 Bug

I stumbled upon excessive CPU usage for my training code running on GPU. After some investigations I found the culprit.
It basically was

x = torch.eye(256).to('cuda') 

To Reproduce

This is quick and loads single CPU core.

%%timeit
    torch.eye(181)
6.43 µs ± 218 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

This is 3 times slowe

ogrisel
ogrisel commented Nov 13, 2020

Most functions in scipy.linalg functions (e.g. svd, qr, eig, eigh, pinv, pinv2 ...) have a default kwarg check_finite=True that we typically leave to the default value in scikit-learn.

As we already validate the input data for most estimators in scikit-learn, this check is redundant and can cause significant overhead, especially at predict / transform time. We should probably a

scrapy
superset
amyshangshang
amyshangshang commented Jan 15, 2021

Screenshot

attached

Description

  1. click one dashboard
  2. in the dashboard page, the table on the left part has the name and count attributes. next to the name attribute, the sorting label was placed too far away from its text.

<img width="1402" alt="Screen Shot 2021-01-15 at 2 35 11 AM" src="https://user-images.githubusercontent.com/4502866/104715562-930f1d80-56db-11eb-8cb1-b2

jreback
jreback commented Jan 16, 2021

example here: https://github.com/pandas-dev/pandas/pull/37367/files#diff-69c698518ca64a05f8b137ff9bb5445ce9fd21139b396e9b0d4ce7338b2a3984R132

we should just ban this with a precommit style rule (and import things directly). the doc-strings also should be updated to do the import once.

grep -r pd.api.types ~/pandas-dev/pandas
/home/jreback/pandas-dev/pandas/_libs/lib.pyx:    >>> pd.api.
bmw
bmw commented May 14, 2020

In all of our current uses of os.umask or filesystem.umask, we always temporarily set it to a different value and then restore it using a try/finally block. I expect this pattern to continue.

Because of that, why don't we create a simple function in certbot.util that can be used as a context manager to set umask to a value and restore it to its previous value when exiting the with blo

Created by Guido van Rossum

Released February 20, 1991

Organization
python
Website
www.python.org
Wikipedia
Wikipedia

Related Topics

language ruby
You can’t perform that action at this time.