About 9,810,000 results
Open links in new tab
  1. What does .shape [] do in "for i in range (Y.shape [0])"?

    shape is a tuple that gives you an indication of the number of dimensions in the array. So in your case, since the index value of Y.shape[0] is 0, your are working along the first dimension of …

  2. Difference between numpy.array shape (R, 1) and (R,)

    Shape n, expresses the shape of a 1D array with n items, and n, 1 the shape of a n-row x 1-column array. (R,) and (R,1) just add (useless) parentheses but still express respectively 1D …

  3. android - How to set shape's opacity? - Stack Overflow

    Jun 4, 2015 · I already know how to set the opacity of the background image but I need to set the opacity of my shape object. In my Android app, I have it like this: and I want to make this black …

  4. r - How would one add a new shape, with both outline color and …

    Jun 27, 2025 · Donuts (hollow circles) are also intriguing. What would it take to build one of these shapes and incorporate it fully into ggplot's machinery so that "it just works" whenever a user …

  5. numpy: "size" vs. "shape" in function arguments? - Stack Overflow

    Oct 22, 2018 · Shape (in the numpy context) seems to me the better option for an argument name. The actual relation between the two is size = np.prod(shape) so the distinction should …

  6. Visio Master Shape Unable to Edit Data Graphic - Stack Overflow

    Feb 28, 2025 · Background I want to create a reusable shape in Visio (Visio 365 Desktop) with certain data attached. I created a custom Stencil in "My Shapes", right clicked it and selected …

  7. python - Keras Dense layer Output Shape - Stack Overflow

    For example, output shape of Dense layer is based on units defined in the layer where as output shape of Conv layer depends on filters. Another thing to remember is, by default, last …

  8. python - AttributeError: 'list' object has no attribute 'shape ...

    May 31, 2020 · AttributeError: 'list' object has no attribute 'shape'? Asked 5 years, 4 months ago Modified 4 years, 5 months ago Viewed 10k times

  9. python - 'list' object has no attribute 'shape' - Stack Overflow

    Jan 9, 2014 · 8 list object in python does not have 'shape' attribute because 'shape' implies that all the columns (or rows) have equal length along certain dimension. Let's say list variable a has …

  10. Keras input explanation: input_shape, units, batch_size, dim, etc

    Jun 25, 2017 · For any Keras layer (Layer class), can someone explain how to understand the difference between input_shape, units, dim, etc.? For example the doc says units specify the …