ML Libraries
ML Libraries
MACHINE
LEARNING LIBRARIES SUCH AS
SCIKIT-LEARN,
AND PYTORCH
MACHINE LEARNING
LIBRARY???
When writing a program, rather than beginning with a
blank slate each time, programming libraries allow you
to start out with some of the code already written for
you. This ability means that rather than spending time
working on the necessary but basic algorithms, you
can instead focus your efforts on the more complex
details of the project.
MACHINE
LEARNING
LIBRARIES
6
Select a
Performance
measure
Typical performance regression problem is: Root mean
Square Error (RMSE)
Exp: an RMSE equal to 50000 means that 68% predictions
fall within $50000 of the actual value. And 95% of the
predictions fall within 100000
Practice
13
PREDICTIVE
MODELING
WORKFLOW
EVALUATING MODELS
AND PREDICTING
UNSEEN DATA
INSTANCES
After we have selected a model that has been fitted on the training dataset, we can use the test dataset
To estimate how well it performs on this unseen data to estimate the so-called generalization error. If
We are satisfied with its performance, we can now use this model to predict new, future data. It is
important to note that the parameters for the previously mentioned procedures, such as feature scaling
And dimensionality reduction, are solely obtained from the training dataset, and the same parameters
Are later reapplied to transform the test dataset, as well as any new data instances—the performance
15
PyTorch Overview DYNAMIC COMPUTATION GRAPHS
PyTorch Dynamic graphs, Custom models Deep learning research and applications
Keras High-level API, Fast prototyping Getting started with neural networks
Ideal for data preprocessing, model Widely used for NLP tasks, computer Perfect for rapid prototyping and
selection, and evaluation. Commonly used vision, and deep learning model experimentation, used in image
in fraud detection and recommendation development. Excellent for academic recognition, and simple neural networks
systems. research-to-practice transitions. for beginners.
Conclusion
SUMMARY AND TRENDS
& Future evolve. Staying updated with the latest features and
developments is crucial for effective ML implementation.
Trends