×
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 is the most effective way to create test data for the ML algorithm? Can we use synthetic data?

by Frigyes Kocsis / Tuesday, 27 January 2026 / Published in Artificial Intelligence, EITC/AI/GCML Google Cloud Machine Learning, First steps in Machine Learning, The 7 steps of machine learning

Creating effective test data is a foundational component in the development and evaluation of machine learning (ML) algorithms. The quality and representativeness of the test data directly influence the reliability of model assessment, the detection of overfitting, and the model's eventual performance in production. The process of assembling test data draws upon several methodologies, including the use of real-world data and the generation of synthetic data, each with specific use cases, strengths, and considerations.

1. Principles of Test Data Creation in Machine Learning

Test data serves the purpose of providing an unbiased evaluation of a model fitted on the training dataset. The primary qualities of effective test data include:

– Representativeness: The data should reflect the distribution and characteristics of the data the model will encounter in production.
– Independence: The test data should not overlap with the training data to prevent information leakage, which would lead to artificially inflated performance metrics.
– Diversity: The data should encompass the full range of possible input scenarios, including edge cases and rare events, which the model may face in deployment.

The challenge lies in constructing a test set that is both comprehensive and manageable, ensuring that the model’s performance metrics are meaningful and generalizable.

2. Traditional Approaches to Test Data Creation

The standard approach involves partitioning the available real-world dataset into training, validation, and testing subsets. This can be achieved through methods such as:

– Random Splitting: Randomly allocate data into different sets, ensuring the splits are stratified if the dataset is imbalanced across classes.
– Time-based Splitting: For time-series or temporally ordered data, split chronologically to reflect the real-world scenario of predicting the future from the past.
– K-Fold Cross-Validation: Rotate test sets in k partitions, resulting in more robust estimates of model performance.

These methods depend on the existence of a sufficiently large and representative dataset, which is not always available in every domain.

3. The Role of Synthetic Data in Test Data Creation

Synthetic data refers to artificially generated data that simulates the statistical characteristics of real data. It can be produced through algorithms, simulations, or generative models such as Generative Adversarial Networks (GANs) and variational autoencoders. The use of synthetic data has gained prominence in scenarios where real data is scarce, sensitive, or cost-prohibitive to collect.

a. Advantages of Synthetic Data

– Data Augmentation: Synthetic data can supplement limited real data, increasing the diversity and volume of the test set.
– Privacy Preservation: It allows testing and validation without exposing confidential or sensitive information, which is critical in domains like healthcare and finance.
– Control over Edge Cases: Synthetic generation can emphasize rare or extreme cases that may not be sufficiently represented in real data but are significant for model robustness.
– Scenario Simulation: It offers the capability to create hypothetical or future scenarios for stress-testing algorithms.

b. Limitations and Risks of Synthetic Data

– Distributional Alignment: Synthetic data must accurately mimic the real-world data distribution to provide valid test results. Poorly generated synthetic data can introduce bias or mislead model evaluation.
– Potential for Overfitting to Synthetic Artifacts: If the model learns to exploit artifacts unique to synthetic data, test results may not generalize.
– Complexity in High-dimensional Data: Generating realistic synthetic data becomes more challenging as the dimensionality and complexity of data increase.

c. Use Cases for Synthetic Data

– Medical Imaging: Generative models create synthetic MRI or X-ray images to augment datasets for rare diseases.
– Autonomous Vehicles: Simulated environments generate driving scenarios difficult or dangerous to capture in reality.
– Fraud Detection: Synthetic financial transactions enable testing on rare fraud patterns.

4. Best Practices for Using Synthetic Data as Test Data

If synthetic data is used for testing, several best practices should be observed to maximize its utility and minimize potential pitfalls:

– Combining Real and Synthetic Data: Use synthetic data to supplement, not replace, real test data. Reserve a portion of fully real-world data for final model validation.
– Validation of Synthetic Data Quality: Employ statistical tests and domain expert reviews to assess the fidelity of synthetic data in relation to real data.
– Transparent Documentation: Clearly document the generation process, assumptions, and limitations associated with synthetic data.
– Bias Assessment: Evaluate whether synthetic data introduces or amplifies bias, particularly in sensitive applications.
– Continuous Update: Update synthetic data generation pipelines as new real data becomes available, ensuring ongoing alignment with real-world distributions.

5. Test Data Creation Workflow on Google Cloud Machine Learning

Within the context of Google Cloud Machine Learning, the process of creating and managing test data can be coordinated using a range of integrated services:

– Data Storage and Access: Use Google Cloud Storage or BigQuery to securely store and manage both real and synthetic datasets.
– Data Processing: Dataflow and Dataprep facilitate preprocessing, cleaning, and transformation of data prior to test set creation.
– Synthetic Data Generation: AI Platform supports the deployment of custom generative models, such as GANs, for synthetic data creation.
– Model Testing and Validation: Vertex AI enables systematic tracking of performance metrics on different test datasets, including those augmented with synthetic data, supporting model governance and auditability.

6. Illustrative Example: Image Classification

Suppose a machine learning team is developing an image classification model to detect different species of animals from camera trap photos. The available dataset consists of 10,000 labeled images, but there is significant class imbalance and underrepresentation of nocturnal species.

– Test Data Partitioning: The dataset is split into 70% training, 15% validation, and 15% testing, ensuring stratification by species.
– Synthetic Data Generation: To increase the diversity and representation of nocturnal species, GANs are trained on the available images to generate additional synthetic images reflecting night-time conditions and rare species.
– Test Data Construction: The test dataset includes both real and synthetic images, with careful annotation of each image’s origin. Model evaluation is conducted separately on real-only and mixed-origin subsets to assess generalizability.
– Human Review: Domain experts examine a sample of synthetic images to confirm they are realistic and free of artifacts that could bias model predictions.

7. Evaluation of Test Data Effectiveness

After the model is trained and tested, it is important to analyze not only the aggregate performance metrics (such as accuracy, precision, recall, F1 score) but also to conduct error analysis stratified by data source (real vs. synthetic) and by scenario (common vs. rare events). This helps ensure that the model's strengths and weaknesses are fully understood and that synthetic data has not inadvertently masked performance issues.

8. Regulatory and Ethical Considerations

In some regulated industries, using synthetic data for model evaluation may be subject to specific guidelines. For example, healthcare and finance sectors may require transparency about data provenance and assurance that synthetic data does not introduce unacceptable risk or bias. Careful documentation, traceability, and regular audits are necessary to meet compliance standards.

9. Recommendations for Effective Test Data Practices

– Prioritize the use of real-world data for final model validation to ensure the model’s readiness for deployment.
– Use synthetic data as a supplement during early testing, scenario simulation, and when addressing data sparsity.
– Regularly benchmark the model on real-world test data, even if the majority of the development process involved synthetic or augmented data.
– Maintain a feedback loop between data generation, model development, and evaluation processes to adapt to new patterns and challenges.

In practice, the most effective way to create test data for ML algorithms involves a combination of real-world and, where appropriate, synthetic data. Synthetic data can be a powerful tool for addressing gaps and enhancing the test dataset, provided it is generated and validated with care. The use of synthetic data is permissible and often recommended in situations of data scarcity, privacy concerns, or the need for scenario diversity, provided that the limitations and risks are managed appropriately. The ultimate test of any model, however, remains its performance on truly representative real-world data, reflecting the scenarios it will encounter in production.

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

  • How is a neural network built?
  • How can ML be used in construction and during the construction warranty period?
  • How are the algorithms that we can choose created?
  • How is an ML model created?
  • What are the most advanced uses of machine learning in retail?
  • Why is machine learning still weak with streamed data (for example, trading)? Is it because of data (not enough diversity to get the patterns) or too much noise?
  • Why, when the loss consistently decreases, does it indicate ongoing improvement?
  • How do ML algorithms learn to optimize themselves so that they are reliable and accurate when used on new/unseen data?
  • What are the hyperparameters m and b from the video?
  • What data do I need for machine learning? Pictures, text?

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: First steps in Machine Learning (go to related lesson)
  • Topic: The 7 steps of machine learning (go to related topic)
Tagged under: Artificial Intelligence, Google Cloud, Machine Learning, Model Evaluation, Synthetic Data, Test Data
Home » Artificial Intelligence » EITC/AI/GCML Google Cloud Machine Learning » First steps in Machine Learning » The 7 steps of machine learning » » What is the most effective way to create test data for the ML algorithm? Can we use synthetic data?

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 90% EITCI DSJC Subsidy support

90% 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-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.