×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

What are the high level APIs of TensorFlow?

by Hema Gunasekaran / Saturday, 11 November 2023 / Published in Artificial Intelligence, EITC/AI/GCML Google Cloud Machine Learning, Expertise in Machine Learning, Tensor Processing Units - history and hardware

TensorFlow is a powerful open-source machine learning framework developed by Google. It provides a wide range of tools and APIs that allow researchers and developers to build and deploy machine learning models. TensorFlow offers both low-level and high-level APIs, each catering to different levels of abstraction and complexity.

When it comes to high-level APIs, TensorFlow offers several options that simplify the process of building machine learning models. These APIs provide a more user-friendly interface and abstract away some of the lower-level details, allowing developers to focus on the higher-level logic of their models. Some of the high-level APIs in TensorFlow are:

1. Keras: Keras is a popular high-level API that provides a simple and intuitive interface for building deep learning models. It allows users to define and train neural networks using a few lines of code. Keras supports various neural network architectures, including convolutional neural networks (CNNs), recurrent neural networks (RNNs), and more. It also provides a wide range of pre-built layers and models that can be easily customized and extended.

Here's an example of how to build a simple CNN using the Keras API in TensorFlow:

python
import tensorflow as tf
from tensorflow.keras import layers

# Define the model
model = tf.keras.Sequential()
model.add(layers.Conv2D(32, (3, 3), activation='relu', input_shape=(28, 28, 1)))
model.add(layers.MaxPooling2D((2, 2)))
model.add(layers.Flatten())
model.add(layers.Dense(10, activation='softmax'))

# Compile and train the model
model.compile(optimizer='adam',
              loss='sparse_categorical_crossentropy',
              metrics=['accuracy'])
model.fit(train_images, train_labels, epochs=10)

2. Estimators: TensorFlow Estimators provide a high-level API for building and training machine learning models. They encapsulate the training, evaluation, and prediction workflows, making it easier to develop scalable and production-ready models. Estimators are particularly useful when working with structured data or when building models for distributed training. They also provide built-in support for exporting models in a format compatible with TensorFlow Serving.

Here's an example of how to use the Estimator API in TensorFlow:

python
import tensorflow as tf

# Define the feature columns
feature_columns = [tf.feature_column.numeric_column('x', shape=[1])]

# Define the Estimator
estimator = tf.estimator.LinearRegressor(feature_columns=feature_columns)

# Define the input function
input_fn = tf.estimator.inputs.numpy_input_fn({'x': x_train}, y_train, batch_size=4, num_epochs=None, shuffle=True)

# Train the model
estimator.train(input_fn=input_fn, steps=1000)

3. TensorFlow Hub: TensorFlow Hub is a repository of pre-trained machine learning models that can be easily reused in your own projects. It provides a high-level API for loading and using these models, allowing you to leverage the knowledge and expertise of the broader machine learning community. TensorFlow Hub models cover a wide range of domains, including image classification, text embedding, and more.

Here's an example of how to use a pre-trained image classification model from TensorFlow Hub:

python
import tensorflow as tf
import tensorflow_hub as hub

# Load the pre-trained model
model = hub.KerasLayer('https://tfhub.dev/google/imagenet/mobilenet_v2_100_224/feature_vector/4')

# Build a simple classifier on top of the pre-trained model
classifier = tf.keras.Sequential([
    model,
    tf.keras.layers.Dense(10, activation='softmax')
])

# Compile and train the classifier
classifier.compile(optimizer='adam',
                   loss='sparse_categorical_crossentropy',
                   metrics=['accuracy'])
classifier.fit(train_images, train_labels, epochs=10)

These high-level APIs in TensorFlow provide a convenient and efficient way to build machine learning models. They abstract away the lower-level details, allowing developers to focus on the core logic of their models. Whether you're building deep neural networks with Keras, scalable models with Estimators, or leveraging pre-trained models with TensorFlow Hub, these high-level APIs empower you to develop sophisticated machine learning solutions with ease.

Other recent questions and answers regarding EITC/AI/GCML Google Cloud Machine Learning:

  • Is the so called part of "Inference" equivalent to the description in the step-by-step process of machine learning described as "evaluating, iterating, improving"?
  • What are some common AI/ML algorithms to be used on the processed data?
  • How Keras models replace TensorFlow estimators?
  • How to configure specific Python environment with Jupyter notebook?
  • How to use TensorFlow Serving?
  • What is Classifier.export_saved_model and how to use it?
  • Why is regression frequently used as a predictor?
  • Are Lagrange multipliers and quadratic programming techniques relevant for machine learning?
  • Can more than one model be applied during the machine learning process?
  • Can Machine Learning adapt which algorithm to use depending on a scenario?

View more questions and answers in EITC/AI/GCML Google Cloud Machine Learning

More questions and answers:

  • Field: Artificial Intelligence
  • Programme: EITC/AI/GCML Google Cloud Machine Learning (go to the certification programme)
  • Lesson: Expertise in Machine Learning (go to related lesson)
  • Topic: Tensor Processing Units - history and hardware (go to related topic)
Tagged under: Artificial Intelligence, Estimators, Keras, Machine Learning, TensorFlow, TensorFlow Hub
Home » Artificial Intelligence / EITC/AI/GCML Google Cloud Machine Learning / Expertise in Machine Learning / Tensor Processing Units - history and hardware » What are the high level APIs of TensorFlow?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.

Eligibility for EITCA Academy 80% EITCI DSJC Subsidy support

80% of EITCA Academy fees subsidized in enrolment by

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2025  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    Chat with Support
    Chat with Support
    Questions, doubts, issues? We are here to help you!
    End chat
    Connecting...
    Do you have any questions?
    Do you have any questions?
    :
    :
    :
    Send
    Do you have any questions?
    :
    :
    Start Chat
    The chat session has ended. Thank you!
    Please rate the support you've received.
    Good Bad