MACHINE LEARNING RECIPES
DATA CLEANING PYTHON
DATA MUNGING
PANDAS CHEATSHEET
ALL TAGS
# How to compute the min-by-max for each row for a numpy array 2d?

# How to compute the min-by-max for each row for a numpy array 2d?

This recipe helps you compute the min-by-max for each row for a numpy array 2d

How to compute the min-by-max for each row for a numpy array 2d? We can find the minimum and maximum values from the each row of a 2D numpy array by using the "min" and "max" functions available in the Numpy library.

```
import numpy as np
```

```
Sample_array = np.array([[1,2,33],[4,5,6],[7,8,9]])
print("This is a Sample array:","\n",Sample_array)
```

This is a Sample array: [[ 1 2 33] [ 4 5 6] [ 7 8 9]]

```
print("The minimum value from each row is:","\n",np.min(Sample_array, axis=1),"\n")
print("The maximum value from each row is:","\n",np.max(Sample_array, axis=1))
```

The minimum value from each row is: [1 4 7] The maximum value from each row is: [33 6 9]

In this machine learning and IoT project, we are going to test out the experimental data using various predictive models and train the models and break the energy usage.

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

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

In this supervised learning machine learning project, you will predict the availability of a driver in a specific area by using multi step time series analysis.

In this project you will use Python to implement various machine learning methods( RNN, LSTM, GRU) for fake news classification.

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

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.

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 pricing project, we implement a retail price optimization algorithm using regression trees. This is one of the first steps to building a dynamic pricing model.

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.