About 2,480,000 results
Open links in new tab
  1. 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 …

  2. python - What does -1 mean in numpy reshape? - Stack Overflow

    Sep 9, 2013 · This answer contains a lot of examples but doesn't lay out what -1 does in plain English. When reshaping an array, the new shape must contain the same number of elements …

  3. python - x.shape [0] vs x [0].shape in NumPy - Stack Overflow

    Jan 7, 2018 · 2 x[0].shape gives you the length of the first row. x.shape[0] gives you the first component of the dimensions of 'x', 1024 rows by 10 columns.

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

  5. I want to know what it means (height,width)=img.shape [:2]

    Feb 1, 2021 · It depends on what type the 'img' object is. What are you using? I'm assuming opencv ? Then the shape of the object holds a tuple (rows, columns, channels). …

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

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

    Jan 9, 2014 · 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 …

  8. How to customize marker colors and shapes in scatter plot?

    Dec 7, 2017 · I have a data set with 9 columns. 7 features are used for feature selection and one of them for the classification. I used tsne library for feature selection in order to see how much …

  9. numpy - Shape of array python - Stack Overflow

    Mar 27, 2013 · Shape of array python Asked 12 years, 2 months ago Modified 12 years, 2 months ago Viewed 74k times

  10. r - Custom shape in ggplot (geom_point) - Stack Overflow

    Feb 21, 2019 · Custom shape in ggplot (geom_point) Asked 6 years, 3 months ago Modified 6 years, 3 months ago Viewed 11k times