MACHINE LEARNING RECIPES
DATA CLEANING PYTHON
DATA MUNGING
PANDAS CHEATSHEET
ALL TAGS
# How to compute Z to the power of n using numpy if Z is a large vector?

# How to compute Z to the power of n using numpy if Z is a large vector?

This recipe helps you compute Z to the power of n using numpy if Z is a large vector

So this recipe is a short example on how to compute power of a large array. Let's get started.

```
import numpy as np
```

Let's pause and look at these imports. Numpy is generally helpful in data manipulation while working with arrays. It also helps in performing mathematical operation.

```
def power(Z,n):
return np.power(Z,n)
```

We have a created a function which will return an array passed to it raised to power n.

```
print(power(np.random.random(1000),3))
```

We call power function to find out the array of size 1000 raised to the power n.

Once we run the above code snippet, we will see:

Scroll down to the ipython file for visualizing the output.

In this deep learning project, we will predict customer churn using Artificial Neural Networks and learn how to model an ANN in R with the keras deep learning package.

There are different time series forecasting methods to forecast stock price, demand etc. In this machine learning project, you will learn to determine which forecasting method to be used when and how to apply with time series forecasting example.

The goal of this data science project is to build a predictive model and find out the sales of each product at a given Big Mart store.

In this project, we are going to talk about Time Series Forecasting to predict the electricity requirement for a particular house using Prophet.

Machine Learning Project in R-Detect fraudulent click traffic for mobile app ads using R data science programming language.

Deep Learning Project- Learn to apply deep learning paradigm to forecast univariate time series data.

In this deep learning project, you will build a classification system where to precisely identify human fitness activities.

Text data requires special preparation before you can start using it for any machine learning project.In this ML project, you will learn about applying Machine Learning models to create classifiers and learn how to make sense of textual data.

In this data science project, you will predict borrowers chance of defaulting on credit loans by building a credit score prediction model.

PySpark Project-Get a handle on using Python with Spark through this hands-on data processing spark python tutorial.