Machine Learning Libraries
Machine Learning Libraries
Libraries
* Python is one of the most popular programming language known in
market for ML due to its vast collection of libraries.
* Python libraries that used in Machine Learning are:
* Numpy
* Pandas
* Matplotlib
* Scikit-learn
* Theano
* TensorFlow
* Keras
* PyTorch
Silver Oak University 1 Computer Engineering
* Scipy
Numpy
import numpy as np
# Inner product of vectors
# Creating two arrays of rank 2 print(np.dot(v, w), "\n")
x = np.array([[1, 2], [3, 4]])
y = np.array([[5, 6], [7, 8]]) # Matrix and Vector product
print(np.dot(x, v), "\n")
# Creating two arrays of rank 1
v = np.array([9, 10]) # Matrix and matrix product
w = np.array([11, 12]) print(np.dot(x, y))
11
Pandas
* Locate Row:
* As you can see from the result above, the DataFrame is like
a table with rows and columns.
* Pandas use the loc attribute to return one or more specified
row(s)
* Locate Row:
* As you can see from the result above, the DataFrame is like
a table with rows and columns.
* Pandas use the loc attribute to return one or more specified
row(s)
* Named Indexes
* With the index argument, you can name your own indexes.
*
* Named Indexes
* With the index argument, you can name your own indexes.
* Advantages Of Frameworks
* Open-source
* Good documentation
* Efficient
* Secure
* Integration
takes some input, the idea is to validate the data and then save it.
* Output formats with template engine – A template engine allows the
forgery aka CSRF, sql injection, cross-site scripting and other common
malicious attacks.
* Session storage and retrieval – Data stored in the session storage gets
● Django
● Web2Py
● Flask
● Bottle
● CherryPy
● The main databases that django works on are PostgreSQL, MySQL, SQLite,
Oracle. It can also work with other databases using the third party drivers.