Machine Learning Prerequisites (Numpy)

You are currently auditing this course.
1 / 32

Numpy

NumPy is a Python library that is used to manipulate, process and analyze the data. It doesn't have constructs that can be used to visualize the data. For visualization, we can use another library from Python called Matplotlib.

  • NumPy stands for 'Numeric Python' or 'Numerical Python'.

  • It is designed for scientific computations.

  • It has efficiently implemented multi-dimensional arrays and it also provides fast mathematical functions.

  • It is mostly used for array-oriented computing.

  • NumPy's main object is the homogeneous multidimensional array called "ndarray".


Slides

Code Repository for the course on GitHub



No hints are availble for this assesment

Answer is not availble for this assesment

Please login to comment

182 Comments

Hi Sir, the file which contains the content of Numpy is not present in the Jupyter Notebook file of my Cloudex Lab and in whatever files are there, no content is existing in them. 

All the files that are in 893b something bytes do not have any content in them, all the files are empty, only a few files that are in (kb) the file have content exist in them like four cast churn email projects like files have context until none of them have any content in it...

Now what should I do, either you check my lab again and provide me the file with the content or provide me its source.......

 1  Upvote    Share

Hi Prince,

The Jupyter Notebooks you are seeing in lab are templates provided for your projects and exercises. These templates are meant to be used during your work, and our assessment engine will use them to evaluate your progress.

For the notebooks mentioned in the videos, you can access our official GitHub repository. Please visit the following link to download or view the files: CloudxLab GitHub Repo .

 

 

 2  Upvote    Share

Thank you Sir..

  Upvote    Share
def multiply_loops(A,B):
    C = np.zeros((A.shape[0],B.shape[1]))
    for i in range (A.shape[0]):
        for j in range (B.shape[1]):
            for k in range (B.shape[0]):
                C[i,j] = (A[i,k]*B[k,j])+ C[i,j]
    return C

I think this should be the code for multiplication of arrays instead of what is mentioned in slide 45. Can anyone please confirm?

  Upvote    Share

Yes. You are correct. Thanks for pointing it out.

  Upvote    Share

import numpy as np
x = np.zeros((2,3,4))
print(x)
x.ndim

You can use x.ndim to check the rank of an array.

  Upvote    Share

Hi, 

Which is the repo where sandeep sir is pushing the code?

  Upvote    Share

Hi Nikhil,

He is pushing it here: https://github.com/cloudxlab/ml/tree/master/python

  Upvote    Share

how to download file or clone this link, can i download it ? how to download it, i didn't see the download menu

  Upvote    Share

This comment has been removed.

rows_on=np.array([False,False,False])

  Upvote    Share

c=np.arange(9).reshape(3,3)

  Upvote    Share

Strange! As it is giving empty array to me.

  Upvote    Share

Got it right this time..Thanks Shubh.

  Upvote    Share

The system is also testing our patience... :)

  Upvote    Share

Yeah, jupyter notebooks are good at that. You should try printing the value of each variable in such cases.

  Upvote    Share

Sure.. thanks.

 

  Upvote    Share

Hi ,I tried rows_on =np.array ([False,False,False])

c [rows_on] is still giving me the first row .

Please help.

               

  Upvote    Share

Can you also, tell me the value of 'c' variable?

  Upvote    Share

Can we upload a CSV file from my own directory to the lab and work in Jupyter notebook?

  Upvote    Share

Hi,

Yes, it is possible. You can directly upload CSV file by opening JupyterLab and clicking on the upload button there- Open JupyterLab by visiting https://cloudxlab.com/my-lab and then click on 'Jupyter' button there. Enter your credentials when asked and you will be redirected to JupyterLab homepage. There you will find 'Upload' button.

Or you can refer to https://cloudxlab.com/faq/20/how-should-i-upload-files-from-my-local-machine-to-cloudxlab for it.

  Upvote    Share

Hi, Here multiply_loops and multiply_vector functions which are used to compare performance between array and numpy does not return same output. It is not a stopper just want to mention it.

  Upvote    Share

An unknown error occurred while loading this notebook. This version can load notebook formats or earlier. See the server log for details.

  Upvote    Share

I have stopped the kernel and restarted it ,again while doing the submit showing the error as 

  Upvote    Share

We had some glitch. Hope it is working all fine now.

  Upvote    Share

hi 

 

I have purcxhaed the premium course cred are showing as incorrect

  Upvote    Share

Hi Ratnesh,

We are looking into this, will get back to you.

  Upvote    Share

Hi Ratnesh,

We have reset your password, please try logging in using new password.

  Upvote    Share

Hi Team,

I  am not able to load the jupiter notebook.Please help

  Upvote    Share

This comment has been removed.

This comment has been removed.

At 26:15, sir changed the datatype from 16 to 64, what's the use of changing the datatype?

 1  Upvote    Share

A 64-bit integer. It has a minimum value of -9,223,372,036,854,775,808 and a maximum value of 9,223,372,036,854,775,807 (inclusive).

A 16-bit integer between 0 and 65,535;

 

  Upvote    Share

At 54:17

x[0:2,0:2,0:3]

0:2 row

 

0:2 col

 

What is 0:3 ??

What will be cut of elements of 3rd??

  Upvote    Share

aT 36:02

i DID NOT UNDERSTAND.

 

What does linespace do??

What do you mean by "evenly spreated??

 

Please reply.

  Upvote    Share

Hi Nirav,

Thank you for posting questions.

linespace is an evenly spaced sequence in a specified interval.

evenly spread means spread equally.

Regards,

Kanchan 

 

  Upvote    Share

i am unable to access the recording of the session

 1  Upvote    Share

It's working for me. Are you facing the issue?

  Upvote    Share

i dont know but its not showing the recording , the slides are visible for me

  Upvote    Share
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-30-4e4923c47760> in <module>
----> 1 a[row_on]

IndexError: boolean index did not match indexed array along dimension 0; dimension is 7 but corresponding boolean dimension is 3???

 

  Upvote    Share

Hi,

I have a question related to SQL

Which is more faster DISTINCT or GROUP BY?

  Upvote    Share

hello,

Did linspace create an array with float value only or is there any method of creating an array with integer values using linspace?

  Upvote    Share

Hi,

Good question!

You can try something like the following:

np.linspace(1,23,23,dtype='int')

Thanks.

  Upvote    Share

How to define 'linalg' ? 

  Upvote    Share

Hi,

Please makesure to import linalg or write np.linalg.

Thanks.

  Upvote    Share

I am trying to plot a graph, but not able to see the figure

please help me why so?

  Upvote    Share

 

image???????

 1  Upvote    Share

Hi,

Try the following code:

import numpy as np
import matplotlib.pyplot as plt

plt.plot([1,2,3,4],[4,3,2,1])
plt.show()

Thanks.

  Upvote    Share

It also shows the same

  Upvote    Share

Hi,

You need to plot the first 2 lines in one cell, and the next 2 lines in a different cell. Let me know if that works, otherwise, please share a screenshot.

Thanks.

  Upvote    Share

i just explore the courses once again , I just found there not an IIT roorkee name on certificate

But when i applied it was .

So my doubt is , when i will complete the course it will it show IIT roorke name with cloudxlab or not.

  Upvote    Share

HI Mayank

Please drop a mail to reachus@cloudxlab.com regarding this.

Regards

Malavika

  Upvote    Share

If we have created a variable as below :
c = np.arange(0,6) then Try to do b = c.reshape(2,3) it will work fine.
But, If i try to convert a as below :
c = np.arange(0,5) then Try to do b = c.reshape(2,2) it will give an error as :

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-43-66f9f4d8360b> in <module>
----> 1 b = c.reshape(2,2)
      2 print(b)

ValueError: cannot reshape array of size 5 into shape (2,2)

So can I consider that the value of arange() should be multiple of the reshape() arguments ?
  Upvote    Share

First time you created c = np.arange(0,6) it creates 6 elements (0,1,2,3,4,5) (6 is exclusive). so it reshahpes that 6 elements into (2,3) but when you create 'c' for second time by 'c = np.arange(0,5)' there are 5 elements in array 'c' : [0,1,2,3,4] so you cannot reshape it to (2,2) because it holds only 4 elements.

 

 1  Upvote    Share

Thanks Naveen For the explanation.  Really HelpFul.

  Upvote    Share

Hi Abhishek,

In reshape the total number of elements will be absolutely same as the original one. In your example original NumPy array has 5 elements and later on you try to reshape with the 4 elements(2x2=4) which are not equal.

In this example, only two option is available 1x5 or 5x1, this is normally true for all the odd number of elements.

Hope this helps you:)

 2  Upvote    Share

Thanks Vikash. Yes Surely Its going to help..

  Upvote    Share

Hi, 

I have completed "Python for Machine Learning - EICT, IITR" course and even recieved Certificate for it. But now sudenly it shows that course is incomplete and also its affecting the progress of my other course "Machine Learning Specialization - EICT, IITR" of which it is a part. Kindly look into it and correct the error. If there is any information that is required from my end than do let me know.

  Upvote    Share

This comment has been removed.

HI Atul

Please drop a mail to reachus@cloudxlab.com regarding this.

Regards

Malavika M

  Upvote    Share

Hi Team,

I have completed 2 of the EICT, IITR courses & I'm looking for more courses. Can you let me know - where can I find more EICT, IITR courses ???

  Upvote    Share

When I click on Notebook I am gettin 404: Not Found !

Can you help?

  Upvote    Share

Hi,

Are you still facing the same issue? Please attach the screenshot.

Thanks.

  Upvote    Share

Hi Team,

I have completed the course by the name - "Python for Machine Learning" much before the due data. When can I expect the certificate from - EICT, IITR ?

PSA for the same

  Upvote    Share

I have completed "Course 1: Python for Machine Learning " from "Machine Learning Specialization EICT, IIT Roorkee". How can i apply for the certificate of above Course 1? and when it will be available for download?

  Upvote    Share

     i am getting this Error. Resolve this Error..

  Upvote    Share

Hi,

It should be linspace, not linespace.

Thanks.

  Upvote    Share

This comment has been removed.

This comment has been removed.

 

Cnn someone tell me what does this index error mean?

  Upvote    Share

Hello 

I do not see / ml / python folder in my Jupyter. Can you suggest?

regards,
Suresh

 

 1  Upvote    Share

Hi suresh,

You have to clone from given repository link.

  Upvote    Share

What if we want to create a random number between given range i.e. between 10 and 45 ?

  Upvote    Share

Hi,

You can try the following:

random.randint(10,45)

Thanks.

  Upvote    Share

Thanks RajTilak for answering swiftly. However, my question is little different.

Question is : I want to create an array for which values should be within given range i.e.

x = np.zeros([3,4]) --> Here the values of all 12 elements are giong to be zero.

x = np.ones([3,4]) --> Here the values of all 12 elements are giong to be one.

Similarly, I want values of all elements to be randomly between some range. How to do that ?

  Upvote    Share

Thank you. This answered my question.

a = np.random.randint(1,11, size=(2, 4,4))

here, 1 and 11 are upper and lower limits respectively. and size denotes size of an array.

  Upvote    Share

Help me understand the error below:

Thank you.

  Upvote    Share

Hi,

arange is like range in python. arange expects the arguments to be the starting number, ending+1 number and step. This link might help you understand better: https://numpy.org/doc/stable/reference/generated/numpy.arange.html

Thanks.

  Upvote    Share

Hi,

Where to find the codes used for each video session?

Thank you.

  Upvote    Share

Hi,

You can find that in our Github repository, Link for the same is given below slide.

 1  Upvote    Share

Hi, 

Can you please recommend a good book or notes material for NumPy so we can have all the methods in NumPy handy.

Thanks

  Upvote    Share

Hi,

You can check the official documentation from the below link:

https://numpy.org/doc/stable/

Thanks.

  Upvote    Share

@malavika @sandeep

Hi

Can you please help me fixing the problem. I am unable to connect Jupyter kernel. I have shared my problems several times. Also is there any link as i have loaded anaconda in my PC. Will that cause any problem for running the Jupyter kernel.

Kindly suggest on urgent basis please.

Regards

Meena

  Upvote    Share

Hi,

I checked from my end, your Jupyter notebook is working fine. Please go through the below link for an explanation of your issue:

https://discuss.cloudxlab.com/t/explained-code-taking-too-long-to-execute/5304

Also, your local Anaconda installation will not have any effect on your CloudxLab account.

Thanks.

  Upvote    Share

As I have taken courses in both ML and Big data, and also have seen applications in industry,

have generic questions :

 Can we stream big data (apart from tweepy example) , using spark etc. for performing ML or AI on it?

  Upvote    Share

Yes, using Kafka for streaming!

and using the spark also you can do the

https://cloudxlab.com/blog/real-time-analytics-dashboard-with-apache-spark-kafka/

All the best!

  Upvote    Share

Q 1 - 

 

Q 2 - Please share some links to read and understand Statistical Inference.

  Upvote    Share

Hi,

For your first query, I would request you to type the query instead of writing on the image itself. That would make it easier for me to understand it.

For your second query, please refer to the following book:

https://web.stanford.edu/~hastie/ElemStatLearn/

Thanks.

  Upvote    Share

Slides are not getting populated. Can you please help here.

  Upvote    Share

Hi,

Could you please share a screenshot?

Thanks.

  Upvote    Share

This comment has been removed.

Hi,

When should Session 11 and session 12 video be watched, ie before doing upcoming exercises or after? They ae not mentioned in course but are available in CloudXLab youtube channel playlist.

Thanks.

  Upvote    Share


Hi, 

Because 3,4 are the range parameter it will generate all the int b/t them, rand() will take two int as parameters not a tuple. 

kidnly refern this https://numpy.org/doc/stable/reference/random/generated/numpy.random.rand.html

All the 

  Upvote    Share

Hi team,

 

I'm facing two issues in learning portal :

1> My XP score is got getting updated even when I progressed 100%  of the module.

2> Can you help me with the name of the module which have linear algebra using numpy, as I couldn't see it.

Sandeep Giri

 

Thanks 

Udit Agarwal

 1  Upvote    Share

Hi, Udit. 

numpy.linalg is the  module name for linear algebra. 

You can refer the below for more info.

https://numpy.org/doc/stable/reference/routines.linalg.html

https://numpy.org/doc/stable/reference/routines.linalg.html

All the best!

  Upvote    Share

Hi Satyajit,

 

This module is not present in my learning modules. Can you help me to add it asap.

 

Thanks

Udit Agarwal

  Upvote    Share

It is present insdie the numpy module only you have to just import it!

 1  Upvote    Share

Satyajit, what I'm trying to say is that the learning video of this linear algebra using numpy  is not present, can you please add it so that I can view and learn it.

 

 

  Upvote    Share

Hi,

There are no separate playlist for Linear Alegbra using Numpy. All the maths required for Machine Learning and Deep Learning have been added within playlists/lecture videos as and when required.

Thanks.

  Upvote    Share

Hi,

Why do some numpy functions need single parantheses ,'( )' and some double, '(( ))' ?

Eg:

import numpy as np
a=np.ones( ( 3,4 ) )        #double

&

import numpy as np
a=np.arange3,21,3 )    #single

  Upvote    Share

Hi,

If you give 3,4 within a single paranthesis, it would be treated as number. However, with 2 paranthesis they would be treated as a tuple.

In the second case, numbers are expected, not tuples.

Thanks.

 1  Upvote    Share

np.random.rand(3,4): why is random array is using only single parantheses when '3,4' is being read as shape of the array that we want to create.

np.random.rand( (3,4) ) , throws error.

  Upvote    Share

Hi, Abhinav. 

Because 3,4 are the range parameter it will generate all the int b/t them, rand() will take two int as parameters not a tuple. 

kidnly refern this : https://numpy.org/doc/stable/reference/random/generated/numpy.random.rand.html

All the best!

  Upvote    Share

Hi,

In the below image, I was using the sort_index method but do not understand what does this property "inplace" do.

This is written in the Pandas documents:

inplacebool, default False

If True, perform operation in-place.

Could you please explain this ?

 1  Upvote    Share

Hi,

When inplace = True , the data is modified in place, which means it will return nothing and the dataframe is now updated. When inplace = False , which is the default, then the operation is performed and it returns a copy of the object.

Thanks.

 1  Upvote    Share

Every time I start my session, I am getting below error message, please someone fix it...

404 : Not Found

You are requesting a page that does not exist!

  Upvote    Share

Hi,

Please try the rsync command by following the steps from the below link and refresh the page:

https://discuss.cloudxlab.com/t/im-having-problem-with-assessment-engine-how-should-i-fix/3734

Let me know if it worked.

Thanks.

  Upvote    Share

thank you for the response. But  the system got hanged,and did not help. Request you to please get the needful done at your end only.

  Upvote    Share

Hi,

Are you still facing this issue because I checked from my end and your notebook is visible to me.

Thanks.

  Upvote    Share

Hello sir, if you have videos in which things are systematically explained without any question in between, that would have really not confusing. Sorry for saying like this. But as a beginer I am finding difficulty in understanding the content, when the discision goes out of the track due to some questions in between. I understand that these are recorded session of live youtube webinar. But fresh recording for online students and biginers like me will really help. I don't know how far you will respond to my request. But this what is my view, wanted to share.  Kindly see if you can help us (me).

Otherwise I love the concept of keeping both theory and lab side by side. very useful.

Best Regards

Ajit

  Upvote    Share

Hi,

Thank you for your feedback. We will cosider this when we will update our courseware.

Thanks.

  Upvote    Share

Great learning, however rows_on is a litlle confusing,

  Upvote    Share

Hi,

Can you help me by pointing out exactly which part you found confusing, maybe I can help.

Thanks.

  Upvote    Share

Thanks for the support. It's in the above-recorded session, at 57:51.

  Upvote    Share

Hi,

rows_on is an array which defines which rows on the array "a" that we want to view. Since rows_on is True, False, True, we can only view the 1st and 3rd rows of "a" which are True.

Thanks.

  Upvote    Share

This comment has been removed.

Hi,

I tried to add the Numpy files, however I receive the following error.

[shenyliju3115@cxln4 ~]$ git clone https://github.com/cloudxlab/ml/blob/master/python/Python%20-%20Numpy.ipynb/
Cloning into 'Python%20-%20Numpy.ipynb'...
fatal: repository 'https://github.com/cloudxlab/ml/blob/master/python/Python%20-%20Numpy.ipynb/' not found
Please advise

  Upvote    Share

Hi,

Please use the following command in your Jupyter notebook:

!git clone https://github.com/cloudxlab/ml/

Thanks.

  Upvote    Share

Thank you, yes it works

  Upvote    Share

Hi,

I tried to 

  Upvote    Share

Sir, can you explain slide number 142?

 

  Upvote    Share

Hi,

Here we are calculating the eigenvalues and eigenvectors of a square matrix. In linear algebra, an eigenvector or characteristic vector of a linear transformation is a nonzero vector that changes at most by a scalar factor when that linear transformation is applied to it. The corresponding eigenvalue is the factor by which the eigenvector is scaled.

Thanks.

 1  Upvote    Share

Sir, can you make me more clear about slide number 74?

  Upvote    Share

Hi,

Here we are comparing the results we got by solving the equations against the actual solutions.

Thanks.

  Upvote    Share

Can't see numpy slides, Can someone send me at my registered mail id.

  Upvote    Share

This comment has been removed.

This comment has been removed.

This comment has been removed.

I am trying to multiplying two comaptible matrics with multiply_loops method and I am getting Index Error. What is wrong it it?
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-70-839408fd91d4> in <module>
      1 get_ipython().run_line_magic('timeit', '')
----> 2 multiply_loops(X,Y)

<ipython-input-60-53bbbd92561c> in multiply_loops(A, B)
      3     for i in range(A.shape[1]):
      4         for j in range(B.shape[0]):
----> 5             C[i,j] = A[i , j] * B[ j , i ]
      6     return C

IndexError: index 2 is out of bounds for axis 1 with size 2
  Upvote    Share

Hey Team,

I am having problems in running Numpy in my Jyputer notebook for the machine learning section of the course (even after importing it correctly into the Jupyter cell) and also while attempting question (after lectures) the solution is not working (neither the answer part nor the hint). Please look into the problem and update me as soon as possible.

 

  Upvote    Share

Hi,

This is not an issue with Numpy, there should be an indentation after you declare a function.

Thanks.

  Upvote    Share

Purnima, I think using A@B involves all the multiplication logic, so we dont need to write the logic ourself

  Upvote    Share

@Admin

The  lab shows "Not connected " and Method Not Allowed " Error most of the time , I am Wasting my useful time , not able to do course in  time  ,Please do the Needful 

  Upvote    Share

Hi,

I checked your Jupyter notebook, it is working fine. Please note that if your Jupyter notebook remains idle for some time, our bots will kill it owing to our Fair Usage Policy. You can read about it here:

https://cloudxlab.com/faq/6/what-are-the-limits-on-the-usage-of-lab-or-what-is-the-fair-usage-policy-fup

Thanks.

  Upvote    Share

Hi Team,

I'm unable to access lab since Saturday- When I try to use the lab, my system completed hanged and I need to shut down. 

So currently I can proceed only with theory part. I restarted my server but the same issue persists with lab.

Kindly help!!

Thanks

Regards,

K. Uma Maheswari

  Upvote    Share

Hi,

Would request you to close all other applications while you are working on the lab. This happens because the Chrome browser uses lot of memory. You can try using a different browser, or if your system if laggy try defragmenting your computer.

Thanks.

  Upvote    Share

Hi Team, 

I am not able to see the Python in folder cloudxlab_jupyter_notebooks as shown in video above. I tried using below command in web console to clone it but it did not work. please help on this to get the python files of numpy and ML into folder

git clone https://github.com/cloudxla...

 

please find the error message below :- 

[krishnarauniyar7777751@cxln5 ~]$ git clone https://github.com/cloudxla...
Cloning into 'cloudxla...'...
fatal: repository 'https://github.com/cloudxla.../' not found

 

Also, i donno why i am not able to attach screenshot. or is attaching attachment feature has been removed?

i can see icon to add attachment but i am not getting how to do it bcoz its asking url or link something like that. i am not able upload document from path of my folder.

please help on this too

 

  Upvote    Share

Hi,

Please try the following command in a web console:

git clone https://github.com/cloudxlab/ml ~/ml

Also, you can upload your screenshot in any online image hosting site, and then paste that URL here.

Thanks.

  Upvote    Share

Hi , Need one clarification, is Python - Numpy file will be automatically available in "cloudxlab_jupyter_notebooks", or we have add ?

  Upvote    Share

Hi,

Yes, Numpy is already installed for you to use in our labs.

Thanks.

  Upvote    Share

Hi,

I am a bit confused with "NDIM". Could you please help me to understand this?

Take below example:

b = np.array((1,2,3))
print(b)
print(b.ndim) ## it prints 1
ar = np.ones(b)
print(ar)
print(ar.ndim) ## it prints 3

I think, for "ar.ndim" it should print 2 since it contains array with 2 rows.

  Upvote    Share

Hi,

numpy.ndarray.ndim() function return the number of dimensions of an array.

Thanks.

  Upvote    Share

i cannot find the numpy folder where is it

  Upvote    Share

Hi. Rohit.

numpy is a inbuilt package that you have to import and it will be there in the RAM once you execute the cell in Jupyter.
It is already installed in your Python environment. so you no need to install it, you just have to import it.
import numpy as np.

You can find all your files and folder here.

1) Click on the Jupyter notebook icon.
2) Find the folder and the files of your present working directory will be stored here "cloudxlab_jupyter_notebooks".

All the best!

-- Satyajit Das

  Upvote    Share

<function matplotlib.pyplot.show(*args,="" **kw)=""> this message while plotting graph using matplotlib

  Upvote    Share

when i try plotting a graph using matplot i get this message <function matplotlib.pyplot.show(*args,="" **kw)="">

  Upvote    Share

Hello
I am not able to understand what is wrong with B1 array in image and why is it giving an error and what does it mean that it can only assign to iterable
please explain

  Upvote    Share

Hi, Ved.

In this program you are trying to replace 2 elements with "-1", so you also need to give two elements for its replacement, eg :-
B1[1:3]=-1,-1 etc. --> This will replace with two elements.

All the best!

-- Satyajit Das

  Upvote    Share

Hello everyone

what is np.RAISE? in Numpy
whien i execute it the
output is:-

Type: int
String form: 2
Docstring:
int(x=0) -> integer
int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments
are given. If x is a number, return x.__int__(). For floating point
numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string,
bytes, or bytearray instance representing an integer literal in the
given base. The literal can be preceded by '+' or '-' and be surrounded
by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
Base 0 means to interpret the base from the string as an integer literal.
>>> int('0b100', base=0)
4

this doesnt make any sense to me

  Upvote    Share

Hello Sir, How Can We Do slicing in 3d array ?

  Upvote    Share

Hi, Somendra.

1) You have to iterate through the array and when index is 2 you can slice. 2) Or you can index it arr[2][i] ---> this will take the second element and inside it the ith element.

All the best!

-- Satyajit Das

  Upvote    Share

how can i print an 2d array in form of table in jupyter notebook
to increace the readability of matrix
Ex

array([[0.68790961, 0.08658011, 0.9945073 , 0.28984779],
[0.5957338 , 0.9734188 , 0.8788657 , 0.77243661],
[0.39967111, 0.62234654, 0.45871602, 0.3822276 ],
[0.62753945, 0.84524739, 0.97096926, 0.75292164]])

  Upvote    Share

Sir, i have completed all the questions from unit 3 but then also level progress is showing 96% please help me.

  Upvote    Share

Hi, tried to clone the ml bundle from github.
[abhirupmitra20128160@cxln5 ~]$ git clone https://github.com/cloudxla...

It shows error fatal: cannot create directory at 'deep_learning/data/mnist': No space left on device
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

Could you please increase the size?

  Upvote    Share

use this git clone https://github.com/cloudxla...
you should be able to clone it.

-- Satyajit Das

  Upvote    Share

HI,
when I am loading the course page.
by default, in the Notebook(right side) Python.iynb file is loading
I want to change this into another file (test.iynb).

currently if i want to open any file its opening in the new tab.
I need that file,here in the right hand side.

  Upvote    Share

Hi,

This is for the automated assessment engine. You cannot load any other notebook here.

Thanks.

-- Rajtilak Bhattacharjee

  Upvote    Share

hello Sir when I try to find the rank in my pycharm with anaconda interpreter,it shows numpy has no attribute 'rank'
please help me fix the issue

  Upvote    Share

Hi,

There can be multiple reasons for this. I am not sure what libraries are installed in your local system, however, you can start by updating your libraries, also check if Numpy is installed or not.

Thanks.

-- Rajtilak Bhattacharjee

  Upvote    Share

Im from a non-CS background. Can you explain the pointers way of handling elements in numpy array? Why is that the parent list is updated despite only the new list is being modified? I read that pointers keep track of the numbers by assigning some address associated with them. But still, this concept remains elusive to me.

  Upvote    Share

Hi,

Python does not have pointers. Pointers exists in languages like C and C++.
Thanks.

-- Rajtilak Bhattacharjee

  Upvote    Share

Hello Sir,
I am currently in final year pursuing Eelectrical engineering. I have taken up the course on python for machine learning and likely to take up machine learning course in the coming days. Sir I want to know how machine learning can help me expand my research in electrical engineering especially in the field of electrical machine and power electronics and power system. I searched on internet but the answers were not lucid and lacking info.
please explain in broader way take the three fields into account.
Thank You

  Upvote    Share

I have completed project and 60% course now how will i get certificate

  Upvote    Share

Hi,

You are only eligible for the certificate when you have finished 60% of the course and all the mandatory projects.

If you have completed the above said, then kindly mail to us at reachus@cloudxlab.com for the same.

-- Mayank Sharma

  Upvote    Share

did u get the certificate?

  Upvote    Share

Hi Samridhi

We have replied to your mail.

  Upvote    Share

HI Vivek

Please drop a mail to reachus@cloudxlab.com for certificate.

  Upvote    Share

Hi Team,

How to download the slides. NO OPTION TO DOWNLOAD THE SLIDES.

  Upvote    Share

Hi,
There's a pop-out button appearing on the top right of the slides window. Just click it. It will open the slides in a separate tab and you can download them from there.

Thanks

-- Mayank Sharma

  Upvote    Share

Hi,

i am asking about the Numpy and Pandas slides. There is no pop-ouy button. i saw pop-out button in other slides.

  Upvote    Share

Dear Sir,

There is no pop-out button on Numpy and Pandas slides. Please check.

  Upvote    Share

Hi,
You can check now.

Thanks

-- Mayank Sharma

  Upvote    Share

Thanks Sir. Now i can download.

  Upvote    Share

Hi Team,

The python files which are shown in the tutorials are not present in my location. the directory /ml/python is also not available in my location.

  Upvote    Share

Hi Lakhan,

Type the following command in your web console:

clone https://github.com/cloudxla...

Once the process is complete you would be able to view the ml folder.

Thanks.

-- Rajtilak Bhattacharjee

  Upvote    Share

Thanks for the input, I have tried the command, it is showing below error:

[lakhansingla19915922@cxln4 ~]$ clone https://github.com/cloudxla...
-bash: clone: command not found

  Upvote    Share

Hi Lakhan,

Please try the following command:

git clone https://github.com/cloudxla...

This should work fine.

Thanks.

-- Rajtilak Bhattacharjee

  Upvote    Share

Hello Team,
Can I have the slides shown in the video. There is no option for download.

  Upvote    Share

Hello Disqus,

Thanks for contacting CloudxLab!

This automatic reply is just to let you know that we received your message and we’ll get back to you with a response as quickly as possible. During business hours (9am-5pm IST, Monday-Friday) we do our best to reply within a few hours. Evenings and weekends may take us a little bit longer.

If you have a general question about using CloudxLab, you’re welcome to browse our below Knowledge Base for walkthroughs of all of our features and answers to frequently asked questions.

- Tech FAQ <https: cloudxlab.com="" faq="" support="">
- General FAQ <https: cloudxlab.com="" faq=""/>

If you have any additional information that you think will help us to assist you, please feel free to reply to this email. We look forward to chatting soon!

Cheers,
The CloudxLab Team

  Upvote    Share