10 - Machine - Learning - Frameworks - To - Try - in - 2021 For Me
10 - Machine - Learning - Frameworks - To - Try - in - 2021 For Me
1 TENSORFLOW 4
2 PYTORCH 5
3 SCIKIT LEARN 7
4 APPLE’S CORE ML 8
5 H2O-3 9
6 APACHE MXNET 10
7 FASTAI 11
8 APACHE MLLIB 12
9 PYTORCH-LIGHTNING 13
ABOUT US 15
INTRODUCTION And the insights we’ll present today will show you how to leverage the right
machine learning frameworks to accelerate your organizational growth.
If you’d like first to step back and learn the differences between AI, ML,
Artificial intelligence is a $23bn market. And according to the latest and data science, click here.
estimates, it could pass $125bn by 2025. That’s a CAGR of over 30%, which
is phenomenal by any standards. But growth alone isn’t a reason for an Once you feel up-to-speed, read on for the all-important details.
enterprise to deploy AI.
To elaborate, the two technologies: At DLabs.AI, we cash in on machine intelligence and efficiency to build
Enable businesses to build effective, robust solutions in line with lean scalable enterprise solutions. That means we know how to leverage
methodology; technologies to solve complex business problems.
Have already crossed the chasm from hype to reality, proving themselves
a worthwhile investment. But what if your business doesn’t have this type of in-house expertise?
That’s where off-the-shelf ML frameworks come in. But their availability
That said, the technology is still relatively young. Yet executives have in- benefits both experienced and less experienced operators for three reasons.
creasing confidence in its power. Why so? Because industries from retail to
BFSI, education to sports, marketing to finance, have piloted AI and yielded Machine learning frameworks mean you can:
unprecedented results.
1. Access most of the necessary algorithms via libraries or open APIs;
For a pertinent example: look no further than the turbocharged research 2. Install the libraries as an add-on or integrate them as part of the respective
and development of COVID-19 vaccines. ML framework;
3. Use the libraries as they stand or customize them to your needs.
In the round, AI-ML is such a useful corporate tool because it unlocks agility ML frameworks are potent resources. They allow an organization to reduce
in organizational DNA. Put another way: it improves operational effective- the developer resource required to complete a project. At the same time,
ness. It can even unlock new growth channels. they significantly shorten the time to deployment.
3
10 FRAMEWORKS Deploy on Android, web, iOS, IoT devices, cloud clusters, CPUs, GPUs, and TPUs
TO TRY IN 2021
Different shades suit every need:
Tensorflow Lite for mobile
Tensorflow.js for training and deploying ML models in JavaScript
environments
We’ve worked with clients who’ve outsourced the development of custom
Tensorflo
ML solutions. Writing libraries from scratch is a rare occurrence. Normally,
we’ll build upon off-the-shelf frameworks to serve the business need.
Below you will find 10 frameworks that we recommend to learn this year. WHO ’S USING TENSORFLOW?
1 TENSORFLOW Google
Coca Cola
Airbnb
With 152k+ stars and 83k+ forks on GitHub, Tensorflow is the open-source
ARM
powerhouse of machine learning.
GE Healthcare
Lenovo
The Google Brain Team developed TensorFlow as a general end-to-end ML
Paypal
platform, using C++, CUDA, and Python. There are endless use cases for the
Swisscom
framework, but to give you an idea, here’s how we’ve used it:
Qualcomm
Image classification
Twitter
Image segmentation
China Mobile
Text classification using BERT
Text generation using RNN
Structured data classification
Speech recognition
WHEN SHOULD YOU AVOID TENSORFLOW?
The language has a steep learning curve, so it isn’t ideal for beginners.
5
WHY PYTORCH IS A GOOD ML FRAMEWORK: WHEN
Useful in computer vision and for NLP-focused use cases This isn’t necessarily a time to avoid PyTorch but, if you can, it’s often
Eager execution mode better to use TensorFlow Lite in place of PyTorch mobile for imparting ML
Strongly Pythonic capabilities on edge devices. Or, if you’re a JS developer looking for a robust
Off-the-shelf loss and optimizer functions, easy data loading mecha- ML framework, then TensorFlowJS could be a better option.
nism, chaining built-in transformations
Comparatively easy learning curve
TorchServe and TorchScript have end-to-end workflows for major
platforms
PyTorch mobile for iOS, Android, and Linux
Facilitates distributed training with native support for asynchro-
nous execution of collective operations, peer-to-peer communica-
tion
6
3 SCIKIT LEARN WHEN SHOULD YOU AVOID USING SCIKIT LEARN?
With 43.7k+ stars on GitHub, SciKit Learn is the third most popular SciKit Learn doesn’t suit GPU-based machine learning requirements.
framework for machine learning. It’s Pythonic (built on SciPy, Numpy, It’s also not built to run across clusters (Spark ML is more suited to cluster-
Matplotlib) and distributed under the BSD license. based ML applications).
7
4 APPLE’S CORE ML Integrate ML into a phone with no privacy intrusion, and lower memory/
battery requirements
Works cohesively with Apples’ Vision framework, NL framework, Speech
& Sound Analysis frameworks (these are domain-specific, functionality-
focused ML frameworks)
Using a vision machine learning framework, you can:
Detect objects in images (like faces in a selfie or barcodes)
Perform object trajectory detection & tracking in videos (like track-
ing players in a sports analysis app or consumer movement in a smart
CCTV camera app)
Other possibilities using natural language, speech, or sound analysis:
Perform text tokenization, semantic distance calculation between
words, language identification, text segmentation
Detect and process audio, either in pre-recorded format or live, using
If you want to make predictions using data from a user’s device, that’s the Speech framework (for speech-to-text conversions)
precisely what Apple’s core ML model lets you do. It integrates unified ML Leverage the MLSoundClassifier model trainer to integrate intelli-
models directly into an app, using end-user data to make predictions, train gent sound processing and identification into your app (for removing
the model — or improve the efficacy of the algorithm: breathing sounds or noise in streamed audio)
8
Source: Apple CoreML
5 H2O-3 WHEN SHOULD YOU AVOID USING H2O.AI?
H2O is a distributed, scalable, extensible in-memory platform with H20 isn’t the best for parallel running of multiple models while LDA
5.3k+ stars on GitHub. H2O provides off-the-shelf ML algorithms, like GLM, and GMMs clusterings are also unavailable. If performance is your pri-
XGBoost, Random forest, DNN, GAM, and k-means. And it’s easily extensible ority, consider open-source ML frameworks, like SciKit Learn, PyTorch,
with Hadoop, Spark, and other algorithms. or TensorFlow.
WHY
And if you prefer a strong community, consider one of the ML frameworks
H2O IS A GOOD ML FRAMEWORK: listed earlier in this document.
9
6 APACHE MXNET WHEN SHOULD YOU AVOID USING APACHE MXNET?
Apache MXNET is an open-source, lightweight machine learning frame- If you need more off-the-shelf features, there are frameworks that ship
work developed in partnership between Intel, the Apache software founda- ‘with batteries included.’ And consider using SciKit Learn or Keras for
With 19.2k+ GitHub stars, the framework enjoys vast community support.
10
7 FASTAI WHY FASTAI IS A GOOD ML FRAMEWORK:
Source: FastAI
FastAI enjoys 20k+ GitHub stars. Its mission is to democratize deep learning
through its free MOOCs (massive open online courses).
11
8 APACHE MLLIB WHEN SHOULD YOU AVOID USING APACHE MLLIB?
Apache MLlib is part of the Apache Spark project. Apache Spark is highly Apache MLlib lags in evaluation and result representation as its API doesn’t
popular among big data engineers, earning 28k+ stars on GitHub. support direct extraction of probabilities with multiclass (Top-k error).
The confusion matrix isn’t well displayed either — while for smaller data-sets,
we prefer SciKit Learn.
WHY APACHE MLLIB IS A GOOD ML FRAMEWORK:
Highly scalable
Easy to integrate with Hadoop
Use it with your preferred language: supports Java, R, Python, and Scala
Models can run on standalone clusters in EC2 — or Hadoop YARN, Mesos,
or Kubernetes
Has a colossal algorithm library of classification, regression, decision trees,
recommendation, k-means-clustering, GMM, LDA, and more
Leverages iteration and claims to be 100x faster than MapReduce (which
uses pass approximations)
Workflow includes standardization, normalization, and other feature
transformations
Includes tools for constructing, evaluating and tuning, and saving pipelines
Provides utility tools for linear algebra, handling of data, and more
12
9 PYTORCH-LIGHTNING WHEN SHOULD YOU AVOID USING PYTORCH-LIGHTNING?
PyTorch-lightning is a lightweight PyTorch wrapper for high-performance It helps to remember that Pytorch-lightning is just a high-level wrap-
AI research. per for PyTorch. If your organization has Pytorch talent, it makes sense to
use it. – if not, look elsewhere. For smaller datasets, consider other solutions
It scores 11k+ stars on Github — and was designed for developing self- such as Keras.
-contained deep learning systems with highly-fragmented code to ensure
maximum flexibility and minimum boilerplate code.
14
ABOUT US
DLabs.AI is a leading Central European software development and consulting company designing and creating automated, custom-built AI software
solutions for business. Our team includes data science and software development experts specialized in neural networks, machine learning, and natural
language processing to support sales and marketing, customer service, manufacturing, health, finance, and more.
CONTACT
DLabs Sp. z o.o.
80-261 Gdańsk
www.dlabs.ai
SOCIAL MEDIA
fb.com/DlabsAi
linkedin.com/company/dlabsai
@DLabsAI
@DlabsAI
15