numpy.matlib.empty() function | Python Last Updated : 22 Apr, 2020 Comments Improve Suggest changes Like Article Like Report numpy.matlib.empty() function return a new matrix of given shape and type, without initializing entries. Syntax : numpy.matlib.empty(shape, dtype = None, order = 'C') Parameters : shape : [int or tuple of int] Shape of the empty matrix. dtype : [data-type, optional] Desired output data-type. order : [{‘C’, ‘F’}, optional] Whether to store multi-dimensional data in row-major (C-style) or column-major (Fortran-style) order in memory. Return : [matrix] A new matrix of given shape and type, without initializing entries. Code #1 : Python3 # Python program explaining # numpy.matlib.empty() function # importing numpy as geek # and importing matlib module import numpy as geek import numpy.matlib # filled with random data gfg = geek.matlib.empty((2, 2)) # output will be random print (gfg) Output : [[ 6.91957648e-310 1.90383493e-316] [ 6.91957669e-310 5.30409905e-317]] Code #2 : Python3 # Python program explaining # numpy.matlib.empty() function # importing numpy as geek # and importing matlib module import numpy as geek import numpy.matlib # filled with random data gfg = geek.matlib.empty((2, 2), dtype = int) # output will be random print (gfg) Output : [[139855860099992 40294208] [139855825297024 10730496]] Create Quiz Comment S sanjoy_62 Follow 0 Improve S sanjoy_62 Follow 0 Improve Article Tags : Machine Learning Python-numpy Python numpy-arrayManipulation python Python numpy-matlib +1 More Explore Machine Learning BasicsIntroduction to Machine Learning8 min readTypes of Machine Learning7 min readWhat is Machine Learning Pipeline?6 min readApplications of Machine Learning3 min readPython for Machine LearningMachine Learning with Python Tutorial5 min readNumPy Tutorial - Python Library3 min readPandas Tutorial4 min readData Preprocessing in Python4 min readEDA - Exploratory Data Analysis in Python6 min readFeature EngineeringWhat is Feature Engineering?5 min readIntroduction to Dimensionality Reduction4 min readFeature Selection Techniques in Machine Learning4 min readSupervised LearningSupervised Machine Learning7 min readLinear Regression in Machine learning14 min readLogistic Regression in Machine Learning10 min readDecision Tree in Machine Learning8 min readRandom Forest Algorithm in Machine Learning5 min readK-Nearest Neighbor(KNN) Algorithm8 min readSupport Vector Machine (SVM) Algorithm9 min readNaive Bayes Classifiers6 min readUnsupervised LearningWhat is Unsupervised Learning5 min readK means Clustering â Introduction6 min readHierarchical Clustering in Machine Learning6 min readDBSCAN Clustering in ML - Density based clustering6 min readApriori Algorithm6 min readFrequent Pattern Growth Algorithm5 min readECLAT Algorithm - ML5 min readPrincipal Component Analysis (PCA)7 min readModel Evaluation and TuningEvaluation Metrics in Machine Learning9 min readRegularization in Machine Learning5 min readCross Validation in Machine Learning5 min readHyperparameter Tuning5 min readUnderfitting and Overfitting in ML3 min readBias and Variance in Machine Learning6 min readAdvanced TechniquesReinforcement Learning9 min readSemi-Supervised Learning in ML5 min readSelf-Supervised Learning (SSL)6 min readEnsemble Learning8 min readMachine Learning PracticeMachine Learning Interview Questions and Answers15+ min read100+ Machine Learning Projects with Source Code5 min read Like