“Python numpy expin_dims Funktion Beispiel” Code-Antworten

Python numpy expin_dims Funktion Beispiel

# welcome to softhunt.net
# import numpy
import numpy as np

# using Numpy.expand_dims() function
softhunt = np.array([[1, 2], [7, 8]])
print(softhunt.shape)

softhunt = np.expand_dims(softhunt, axis = 1)
print(softhunt.shape)
Outrageous Ostrich

Python numpy expin_dims Funktion Beispiel

# welcome to softhunt.net
# import numpy
import numpy as np

# using Numpy.expand_dims() function
softhunt = np.array([1, 2])
print(softhunt.shape)

softhunt = np.expand_dims(softhunt, axis = 0)
print(softhunt.shape)
Outrageous Ostrich

Ähnliche Antworten wie “Python numpy expin_dims Funktion Beispiel”

Fragen ähnlich wie “Python numpy expin_dims Funktion Beispiel”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen