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

    Aug 8, 2014 · 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 …

  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. arrays - what does numpy ndarray shape do? - Stack Overflow

    Nov 30, 2017 · 82 yourarray.shape or np.shape() or np.ma.shape() returns the shape of your ndarray as a tuple; And you can get the (number of) dimensions of your array using …

  4. tensorflow placeholder - understanding `shape= [None,`

    You can think of a placeholder in TensorFlow as an operation specifying the shape and type of data that will be fed into the graph.placeholder X defines that an unspecified number of rows of …

  5. 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 …

  6. Set markers for individual points on a line - Stack Overflow

    May 11, 2023 · I have used Matplotlib to plot lines on a figure. Now I would now like to set the style, specifically the marker, for individual points on the line. How do I do this? To clarify my …

  7. How do I get the row count of a Pandas DataFrame?

    Apr 11, 2013 · There's one good reason why to use shape in interactive work, instead of len (df): Trying out different filtering, I often need to know how many items remain. With shape I can …

  8. python - Numpy array dimensions - Stack Overflow

    Jun 17, 2010 · A piece of advice: your "dimensions" are called the shape, in NumPy. What NumPy calls the dimension is 2, in your case (ndim). It's useful to know the usual NumPy …

  9. OpenCV NoneType object has no attribute shape - Stack Overflow

    Oct 3, 2016 · The Python AttributeError: 'NoneType' object has no attribute 'shape' occurs after passing an incorrect path to cv2.imread () because the path of image/video file is wrong or the …

  10. How to merge color, line style and shape legends in ggplot

    May 10, 2016 · It is often appropriate to have redundant shape/color group definitions. In many scientific publications, color is the most visually effective way to distinguish groups, but you …