Python – Numpy array shape and reshaping arrays




[ad_1]

Code and step-by-step instructions available at Open Source Options http://opensourceoptions.com/python/numpy_004_shape-reshape.html

Use the numpy functions shape and reshape to retrieve and change array dimensions
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=opensourceoptions&utm_content=description-only

Source


[ad_2]

Comment List

  • Open Source Options
    December 24, 2020

    sir i copied your code i got error in most of the place and i remove most of the errors only got error in fit model line.
    error: ValueError: Error when checking input: expected dense_29_input to have shape (13,) but got array with shape (3,)
    can you tell me how to remove that here is link of my code
    https://colab.research.google.com/drive/11YzIH-GKaGGN4BND9RuR9ZgypeKpA4NO

  • Open Source Options
    December 24, 2020

    nice explanation for shape and reshape….Thanks for this video

  • Open Source Options
    December 24, 2020

    great video! Thanks.

  • Open Source Options
    December 24, 2020

    I'd like to see reshape(1, -1) trick

Write a comment