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 197,268 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

sh-biswas
sh-biswas commented Mar 9, 2021

It appears that the docs for Logistic Regression differ based on solvers and penalties. The "penalty" parameter states that "The ‘newton-cg’, ‘sag’ and ‘lbfgs’ solvers support only l2 penalties," while the "solver" parameter states that "‘newton-cg’, ‘lbfgs’, ‘sag’ and ‘saga’ handle L2 or no penalty" (attaching some screenshots). This was actually a little unclear to me, as I wasn't sure if the n

scrapy
Gallaecio
Gallaecio commented Apr 5, 2021

@apalala reported this issue when a site sends some invalid images, and suggested a fix for the spider middleware:

        image_stream = self.get_images(response, request, info, item=item)
        while True:
            try:
                path, image, buf = next(image_stream)
            except StopIteration:
                break
            except Exception:
                co
superset
kristw
kristw commented Apr 1, 2021

Expected results

A big number chart is added to a dashboard with "time grain" override.
The tooltip of the big number chart in the dashboard should show the data point with respect to the selected "time grain" in dashboard.
For example,

  • When select week, the tooltip should show start date -- end date, e.g. 2021-04-19 -- 2021-04-23.
  • When select day, the tooltip should show `dat
fastapi
tiangolo
tiangolo commented Jun 12, 2020

First check

  • I added a very descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the FastAPI documentation, with the integrated search.
  • I already searched in Google "How to X in FastAPI" and didn't find any information.
  • I already read and followed all the tutorial in the docs and didn't find an answ
MarcoGorelli
MarcoGorelli commented Apr 1, 2021

fillna has a different return type according to whether inplace is True or False. We could overload it to provide a better typing experience

See pandas-dev/pandas#40197 for a very similar issue

Task here is:

  1. read through #40197, make sure you understand it
  2. try doing the same for fillna
  3. check it works. See the above PR for an example, but it sho

Created by Guido van Rossum

Released February 20, 1991

Organization
python
Website
www.python.org
Wikipedia
Wikipedia

Related Topics

language ruby