Posts

Showing posts with the label programming

Max Min and Nested List in Python | Python programming | Codin India

Image
Hello friends!   Codin India   here and in today's post we are going to learn Python's inbuilt functions that is Min Max Nested List So, Let us understand it one by one:-  min():- Python has an inbuilt function min() which finds the minimum value of the given list, tuples or something. It first calculates the biggest number one by one and provides the minimum value of the list. Syntax :- min(array_name) Code :- list1 = [1,2,3,4,5,6] print(min(list1)) Output:- 1 Explanation:-  First we created list that has name list1 and then we created called Python's inbuilt function min() and print it. Let us understand it by code:- max():- Python has an inbuilt function min() which finds the minimum value of the given list, tuples or something. It first calculates the biggest number one by one and provides the minimum value of the list. Syntax:-   max(array_name) Code :- list1 = [1,2,3,4,5,6] print(max(list1)) Output:- 6 Explanation:-  First we created list that has name list1 and then

Create array in tensorflow | Data Science tutorial | codin india

Image
 Hello! Welcome back to our tutorial. Today we will learn how to create array in tensorflow. What is tensorflow? Tensorflow is open source platform for machine learning. It has comprehensive, flexible ecosystem of tools, libraries and community resources that lets researchers push the state-of-art in ML and developing easily build and deploy ML powered applications.   How to import Tensorflow?    import tensorflow as tf import numpy as np  How to create array in tensorflow? We have 2 methods to create array in tensorflow:-  Using tensorflow inbuilt function Using numpy Let us understand it one by one. 1. Using Tensorflow's inbuilt function  We can create array in tensorflow using  tensorflow's inbuilt function i.e. constant arr  = tf.constant([1,2,3,4,5]) Let us understand by code:- What is constant? constant is useful for asserting that the value can be embedded that way. If the argument dtype is not specified, then the type is inferred from the type of value 2. Using Nump

Transpose of Array| Numpy tutorial | Data Science | Codin India

Image
  In the last post, we learned about reshaping the Numpy array. In this post, we will learn about the transpose of nd-array. Another very interesting reshaping method of Numpy is the   Transpose()   method.   Transpose is an very important topic when we talk about matrices and arrays. In linear algebra, the transpose of a matrix is an operator which flips a matrix over its diagonal. i.e.  It takes the input Array and swaps the rows and columns value and vica-versa. After transpose rows becomes columns and columns becomes rows.  Let us understand by code:-   Output:- It will convert rows into columns and columns to rows. I hope you will Like this post :) if you want to learn python then this tutorial will help you alot Python tutorial for beginners in hindi Please Subscribe to our Youtube Channel - Codin India