How to find Maximum and Minimum values in a Matrix?
DATA MUNGING

How to find Maximum and Minimum values in a Matrix?

How to find Maximum and Minimum values in a Matrix?

This recipe helps you find Maximum and Minimum values in a Matrix

0
This python source code does the following: 1. Generates numpy array 2. Finds min and in a matrix 3. Finds Min and max in row and column of a matrix
In [1]:
## How to find Maximum and Minimum values in a Matrix
def Kickstarter_Example_13():
    print()
    print(format('How to find Maximum and Minimum values in a Matrix',
                 '*^72'))

    # Load library
    import numpy as np

    # Create matrix
    matrixA = np.array([[1, 2, 3, 23],
                       [4, 5, 6, 25],
                       [7, 8, 9, 28],
                       [10, 11, 12, 41]])

    # Return maximum element
    print(); print(np.max(matrixA))

    # Return minimum element
    print(); print(np.min(matrixA))

    # Find the maximum element in each column
    print(); print(np.max(matrixA, axis=0))

    # Find the maximum element in each row
    print(); print(np.max(matrixA, axis=1))

Kickstarter_Example_13()
***********How to find Maximum and Minimum values in a Matrix***********

41

1

[10 11 12 41]

[23 25 28 41]

Relevant Projects

German Credit Dataset Analysis to Classify Loan Applications
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.

Data Science Project-TalkingData AdTracking Fraud Detection
Machine Learning Project in R-Detect fraudulent click traffic for mobile app ads using R data science programming language.

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

Human Activity Recognition Using Smartphones Data Set
In this deep learning project, you will build a classification system where to precisely identify human fitness activities.

Predict Credit Default | Give Me Some Credit Kaggle
In this data science project, you will predict borrowers chance of defaulting on credit loans by building a credit score prediction model.

Walmart Sales Forecasting Data Science Project
Data Science Project in R-Predict the sales for each department using historical markdown data from the Walmart dataset containing data of 45 Walmart stores.

Data Science Project-All State Insurance Claims Severity Prediction
Data science project in R to develop automated methods for predicting the cost and severity of insurance claims.

Time Series Forecasting with LSTM Neural Network Python
Deep Learning Project- Learn to apply deep learning paradigm to forecast univariate time series data.

Credit Card Fraud Detection as a Classification Problem
In this data science project, we will predict the credit card fraud in the transactional dataset using some of the predictive models.

Data Science Project on Wine Quality Prediction in R
In this R data science project, we will explore wine dataset to assess red wine quality. The objective of this data science project is to explore which chemical properties will influence the quality of red wines.