About 20,700,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. Pandas Dataframe ValueError: Shape of passed values is (X, ), …

    Pandas Dataframe ValueError: Shape of passed values is (X, ), indices imply (X, Y) Asked 11 years, 9 months ago Modified 7 years, 5 months ago Viewed 60k times

  4. Manually scale color, shape, and linetype of multiple geoms ggplot2

    Although it will throw up warning for using linetype in geom_point and shape in geom_line, it will not work if these arguments were removed. But unfortunately, option 2 does not work on the …

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

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

  7. python - ValueError: could not broadcast input array from shape ...

    May 15, 2017 · ValueError: could not broadcast input array from shape (224,224,3) into shape (224) But the following will work, albeit with different results than (presumably) intended:

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

  9. Combine legends for color and shape into a single legend

    I'm creating a plot in ggplot from a 2 x 2 study design and would like to use 2 colors and 2 symbols to classify my 4 different treatment combinations. Currently I have 2 legends, one for …

  10. Unable to allocate array with shape and data type

    Aug 15, 2019 · I'm facing an issue with allocating huge arrays in numpy on Ubuntu 18 while not facing the same issue on MacOS. I am trying to allocate memory for a numpy array with shape …