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. python - Find input shape from onnx file - Stack Overflow

    Jun 24, 2019 · How can I find the input size of an onnx model? I would eventually like to script it from python. With tensorflow I can recover the graph definition, find input candidate nodes from it and then …

  6. 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 also know that a …

  7. How to identify the clicked shape name in VBA - Stack Overflow

    While searching on this problem, I have noticed that there is a way to identify which shape has been selected whereas I still doesn't know How to get the name of the shape I have clicked or is there a …

  8. tensorflow - raise ValueError (f"Cannot convert ' {shape}' to a shape ...

    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 this tuple …

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

    I have also tried solutions using a combination of scale_color_manual(), scale_linetype_manual(), and scale_shape_manual() (all with the same name argument that way they should end up in a single …

  10. r - Manually set shape by factor - Stack Overflow

    Plotting this you will there are factors a-e that have colours and shapes attributed to them. In my code I use scale_shape_manual to set the shapes and they are defined by sequence i.e. the order of …