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

    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 dimension of …

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

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

    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 …

  5. ValueError: Arguments `target` and `output` must have the same …

    May 13, 2024 · 3 Your labels have a shape of (16,), while your model's output has a shape of (None,3). Probably the issue is that your labels are not one-hot encoded. They should have …

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

  7. Padding doesn't affect <shape> in an XML Layout - Stack Overflow

    Aug 16, 2009 · 123 I am trying to set padding in a <shape> declared within an XML file/layout. But whatever I set, nothing changes related to padding. If I modify any other properties, I see the …

  8. excel - Make shape stick to chart when moved - Stack Overflow

    Aug 10, 2016 · 0 I tried grouping the shape to the chart but then again, i have to select the chart and the shapes to make them movable. Isn't there any easier way to make any shape added …

  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. Numpy Typing with specific shape and datatype - Stack Overflow

    Feb 14, 2022 · Currently, shape type information is reflected in ndarray.shape. However, most numpy functions that change the dimension or size of an array, however, don't necessarily …