About 50 results
Open links in new tab
  1. python - What does .shape [] do in "for i in range (Y.shape [0 ...

    The shape attribute for numpy arrays returns the dimensions of the array. If Y has n rows and m columns, then Y.shape is (n,m). So Y.shape[0] is n.

  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 and 2D array …

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

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

    Jan 7, 2018 · On the other hand, x.shape is a 2-tuple which represents the shape of x, which in this case is (10, 1024). x.shape[0] gives the first element in that tuple, which is 10. Here's a demo with some …

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

    Feb 9, 2022 · from onnx import shape_inference inferred_model = shape_inference.infer_shapes(original_model) and find the shape info in …

  6. Macro to update shape color on click in PowerPoint

    Sep 6, 2024 · Toggle Shape Color For those new to PowerPoint, in the Insert tab under the Illustration group, there are Action Buttons at the bottom of the Shapes menu that can utilize (call) the following …

  7. python - shape mismatch: indexing arrays could not be broadcast ...

    Sep 9, 2017 · 14 When accessing a numpy multi-dimensional array with other multi-dimensional arrays of integer type the arrays used for the indices need to have the same shape. Numpy will happily …

  8. Powerpoint change shape outline/fill color with animation

    Nov 24, 2016 · My Powerpoint presentation contains some shapes (arrows and circles) and i'd like to use animations to change their outline and fill colors. The problem i am facing is that i want to …

  9. Fit sigmoid function ("S" shape curve) to data using Python

    Apr 17, 2019 · Fit sigmoid function ("S" shape curve) to data using Python Asked 6 years, 9 months ago Modified 1 year, 10 months ago Viewed 61k times

  10. python - Shape of list with numpy arrays - Stack Overflow

    Apr 5, 2017 · When you call numpy.shape(my_list), an array of arrays is implicitly created. For this operation to be successful, all arrays on the list must have the same shape.