Machine Learning Numpy
1. how to create array using numpy :
import numpy as np
#ad array
a=np.array([10,20,30]) // int,float ,String // array should be homoginous
#2 d array 3*3
b=np.array([
[1,2,12],
[12,12,12],
[12,34,5]
])
#3*3*3
c=np.array([
[[1,2,3],[4,5,6],[7,8,9]],
[[4,5,6],[8,6,7],[5,6,7]],
[[8,8,8],[9,9,9],[9,98,8]]
])
print(a)
print(b)
print(c)
#Arrange Function :
a = np.arange(10,20) //start value and end value
print(a)
[10........................19]
a=np.arnage(10,20,2)
import numpy as np
#ad array
a=np.array([10,20,30]) // int,float ,String // array should be homoginous
#2 d array 3*3
b=np.array([
[1,2,12],
[12,12,12],
[12,34,5]
])
#3*3*3
c=np.array([
[[1,2,3],[4,5,6],[7,8,9]],
[[4,5,6],[8,6,7],[5,6,7]],
[[8,8,8],[9,9,9],[9,98,8]]
])
print(a)
print(b)
print(c)
#Arrange Function :
a = np.arange(10,20) //start value and end value
print(a)
[10........................19]
a=np.arnage(10,20,2)
In the beginning, I would like to thank you much about this great post. Its very useful and helpful for anyone looking for tips. I like your writing style and I hope you will keep doing this good working.
ReplyDeleteData Science Course in Chennai
Data Science Training in Chennai
Blue Prism Training Chennai
AWS Training in Chennai
Digital Marketing Course in Chennai
Data Science Training in Porur
Data Science Training in Adyar
Data Science Training in Velachery
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
ReplyDeleteMicrosoft Azure Training in Electronic City
good job management oracle training in chennai
ReplyDeleteThis post is so interactive and informative.keep update more information...
ReplyDeleteGreat post. keep sharing such a worthy information.
It become an attractive part of a blog when author uses indirect speech while writing a blog. It shows your creative mind as well as make your written essay different from others.
Microsoft Azure Training in Electronic City Bangalore
AWS Training in Electronic City Bangalore
Devops Training in Electronic City Bangalore