About 21,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. 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 …

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

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

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

  6. What does shape[0] and shape[1] do in python? - Stack Overflow

    Jul 21, 2018 · In python shape [0] returns the dimension but in this code it is returning total number of set. Please can someone tell me work of shape [0] and shape [1]? Code: m_train = …

  7. 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, 10 months ago Modified 7 years, 6 months ago Viewed 60k times

  8. How to extract layer shape and type from ONNX / PyTorch?

    Feb 9, 2022 · The gist for python is found here Reproducing the gist from 3: from onnx import shape_inference inferred_model = shape_inference.infer_shapes(original_model) and find the …

  9. python - ValueError: shape mismatch: objects cannot be broadcast …

    ValueError: shape mismatch: objects cannot be broadcast to a single shape It computes the first two (I am running several thousand of these tests in a loop) and then dies.

  10. raise ValueError(f"Cannot convert '{shape}' to a shape.") ValueError ...

    Feb 27, 2024 · shape: A shape tuple (integers), not including the batch size. For instance, shape= (32,) indicates that the expected input will be batches of 32-dimensional vectors. Elements of …