DATA MUNGING
DATA CLEANING PYTHON
MACHINE LEARNING RECIPES
PANDAS CHEATSHEET
ALL TAGS
# How to Calculate Determinant of a Matrix or ndArray?

# How to Calculate Determinant of a Matrix or ndArray?

This recipe helps you Calculate Determinant of a Matrix or ndArray

Do you find calculating determinant of a matrix is easy? Have to tried to find it using python.

So this is the recipe on how we can Calculate Determinant of a Matrix or ndArray.

```
import numpy as np
```

We have only imported numpy which is needed.

We have created two matrix of which we will find determinant.
```
matrixA = np.array([[1, 2, 3, 23],
[4, 5, 6, 25],
[7, 8, 9, 28],
[10, 11, 12, 41]])
matrixB = np.array([[2, 3, 4],
[5, 6, 9],
[7, 8, 1]])
```

We will finding determinant by using the function np.linalg.det to find the determinant of both the matrix
```
print(np.linalg.det(matrixA))
print(np.linalg.det(matrixB))
```

So the output comes as

-4.862776847858206e-15 33.99999999999999

In this data science project, you will work with German credit dataset using classification techniques like Decision Tree, Neural Networks etc to classify loan applications using R.

In this machine learning project, we will use binary leaf images and extracted features, including shape, margin, and texture to accurately identify plant species using different benchmark classification techniques.

In this Kmeans clustering machine learning project, you will perform topic modelling in order to group customer reviews based on recurring patterns.

In this project, we are going to work on Deep Learning using H2O to predict Census income.

In this machine learning project, you will develop a machine learning model to accurately forecast inventory demand based on historical sales data.

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

In this ensemble machine learning project, we will predict what kind of claims an insurance company will get. This is implemented in python using ensemble machine learning algorithms.

Data Science Project in Python- Build a machine learning algorithm that automatically suggests the right product prices.

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.

This data science in python project predicts if a loan should be given to an applicant or not. We predict if the customer is eligible for loan based on several factors like credit score and past history.