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.

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.

This project analyzes a dataset containing ecommerce product reviews. The goal is to use machine learning models to perform sentiment analysis on product reviews and rank them based on relevance. Reviews play a key role in product recommendation systems.

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.

Data Science Project in Python- Given his or her job role, predict employee access needs using amazon employee database.

In this human activity recognition project, we use multiclass classification machine learning techniques to analyse fitness dataset from a smartphone tracker.

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.

Data Science Project in R -Build a machine learning algorithm to predict the future sale prices of homes.

Machine Learning Project - Work with KKBOX's Music Recommendation System dataset to build the best music recommendation engine.

In this data science project in R, we are going to talk about subjective segmentation which is a clustering technique to find out product bundles in sales data.

In this project, we are going to work on Sequence to Sequence Prediction using IMDB Movie Review Dataset using Keras in Python.