Age Of Geeks Profile picture
Jun 16, 2021 โ€ข 8 tweets โ€ข 4 min read โ€ข Read on X
NumPy is a powerful #python library that helps us compute operations on primarily numbers, faster. It is an important tool for data science. ๐Ÿ’ช

Here are 5 powerful #NumPy functions that will help you in your projects!

#Thread โ˜•

#MachineLearning #datascience #AI

Let's go! โฌ‡๏ธ
First letโ€™s see the advantages of using NumPy : ๐Ÿ“ˆ

1๏ธโƒฃ Uses low memory to store data.

2๏ธโƒฃ We can create n-dimensional arrays.

3๏ธโƒฃ Operations like indexing, broadcasting, slicing and matrix multiplication.

4๏ธโƒฃ Finding elements in the array is easy.

5๏ธโƒฃ Good documentation.
Function 1 : np.sort()

This returns a sorted copy of the array. The original array is not changed.

The arguments the function normally takes are -

1. The Array to be sorted.

2. Axis along which to sort.

3. The method/ algorithm used for sorting as โ€œkind = โ€.
Function 2 : np.count_nonzero()

Used to count number of nonzero elements in an array.

The arguments taken are -

1. Array from which the nonzero values are to be found.

2. Axis. (optional)

Returns the number of nonzero elements in an array OR along an axis.
Function 3 : numpy.where()

does one operation on those that satisfy the condition and another on those that do not satisfy the condition.

Arguments taken are -

1. Condition.
2. x โ€” do x if condition True.
3. y โ€” do y if condition False.

Returns an array with x and y executed.
Function 4 : numpy.compress()

Returns a slice of values that satisfy a conditional array. This function takes following arguments -

1. A 1D conditional array.

2. Array on which the compression is done.

3. Axis along which the compression is done.
Function 5 - numpy.trace()

Really cool function that returns sum of values along the diagonal of an array.

Arguments taken are -

1. An array.

2. Offset from diagonal.

3. Axis.

Returns an array with the sum along all the diagonals in the array.
We had a good look under the hood of NumPy documentation which is almost impossible to know 100%.

There are useful functions that can do a job efficiently and with less code. Thatโ€™s the power of the NumPy library.

For more informative resources, follow @ml_india_! ๐Ÿค“

โ€ข โ€ข โ€ข

Missing some Tweet in this thread? You can try to force a refresh
ใ€€

Keep Current with Age Of Geeks

Age Of Geeks Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @ageofgeeks_in

Aug 21, 2021
Are you aware of Boston Dynamics' amazingly advanced robots?
Well @elonmusk just announced he's entering the humanoid robots game and we're all EXCITED! ๐Ÿคฉ

Read along! (Thread)

(1/n)

#machinelearning #tesla #BostonDynamics #ElonMusk #robot #AI
@elonmusk Tesla apart from being an automaker is also popularly known for its AI capabilities. The FSD or full self driving capabilities of tesla are unmatched in the ๐Ÿš— industry!
.
(2/n)

#machinelearning #tesla #BostonDynamics #ElonMusk #robot #AI
@elonmusk Elon Musk on Thursday unveiled a humanoid robot called the Tesla Bot that runs on the same AI used by Tesla's fleet of autonomous vehicles. ๐Ÿคฉ

(3/n)

#machinelearning #tesla #BostonDynamics #ElonMusk #robot #AI
Read 7 tweets
Aug 3, 2021
US' Pentagon believes its precognitive AI can predict events 'days in advance' using Machine Learning! ๐Ÿ˜ฎ

Read along ๐Ÿ‘‡

#BigData #Analytics #DataScience #AI #MachineLearning #Python #Coding #100DaysofCode #MLBS4Spoilers
US Northern Command recently completed a string of tests for Global Information Dominance Experiments (GIDE)

It is a combination of :

๐Ÿ‘‰ AI
๐Ÿ‘‰ Cloud Computing and
๐Ÿ‘‰ Sensors

(2/n)
The machine learning-based system observes changes in raw, real-time data that hint at possible trouble. ๐Ÿ™Œ

This could lead to a major change in military and government operations in the US.

(3/n)
Read 7 tweets
Jul 24, 2021
๐Ÿ™‹โ€โ™€๏ธ Do you know AlphaFold? It is a protein-folding AI tool developed by Deepmind ๐Ÿ™Œ

Now Deepmind has announced something astonishing! ๐Ÿคฏ

Read along! (Thread) โฌ‡๏ธ

#BigData #Analytics #DataScience #AI #MachineLearning #Python #Coding #100DaysofCode #ML #ArtificialIntelligence
In December 2020, @DeepMind introduced AlphaFold which could predict the structure of proteins! ๐Ÿ’ฏ

This tool helped solve a 50-year grand challenge! ๐Ÿ˜ฎ

(2/n)
@DeepMind โ€œProtein folding is a problem I've had my eye on for more than 20 years,โ€
- DeepMind co-founder and CEO Demis Hassabis.

(3/n)
Read 8 tweets
Jun 17, 2021
When beginners start with #DataScience, the biggest pain point is finding good datasets for projects.
Luckily, there are many good public #datasets available! ๐Ÿ“ˆ๐Ÿค“

Here are places you can find them! โฌ‡๏ธโฌ‡๏ธโฌ‡๏ธ

#Thread โ˜•

#MachineLearning #datascience #AI

(1/8)
1๏ธโƒฃ @fastdotai

Apart from providing amazing free courses, Fast AI has teamed up with AWS to provide free datasets for image classification, NLP, image localization and COCO projects.

๐Ÿ‘‰ course.fast.ai/datasets

(2/8)
@fastdotai 2๏ธโƒฃ Awesome Public Datasets

This is a rich github repo of carefully curated datasets from 35+ domains.

๐Ÿ‘‰github.com/awesomedata/awโ€ฆ

(3/8)
Read 8 tweets
Jun 15, 2021
๐Ÿ™‹๐Ÿปโ€โ™€๏ธ Free Machine Learning Course With Certification by Jovian: jovian.ai/learn/machine-โ€ฆ

Read this thread for details about this course! ๐Ÿค“

#machinelearning #artificialintelligence #datascience #python Image
๐Ÿฆพ "Machine Learning with Python: Zero to GBMs" is a practical and beginner-friendly introduction to supervised machine learning, decision trees, and gradient boosting using Python and its ecosystem of ML libraries: scikit-learn, XGBoost, and LightGBM.
You will:
๐Ÿ‘‰๐Ÿผ Watch hands-on coding-focused video tutorials.
๐Ÿ‘‰๐Ÿผ Practice coding with cloud Jupyter notebooks.
๐Ÿ‘‰๐Ÿผ Build an end-to-end real-world course project.
๐Ÿ‘‰๐Ÿผ Earn a verified certificate of accomplishment.
Read 4 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(