---
title: Creating machine learning questions in a test
description: This article explains the steps for building a machine learning question in a test.
---

[Skip to content](https://help.hackerearth.com/creating-machine-learning-questions-in-a-test#main-content)

![hackerearth-logo-light](https://help.hackerearth.com/hubfs/hackerearth-logo-light.svg)

Open main navigation

Close main navigation

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://help.hackerearth.com/)
2. [Assessments: Recruiters](https://help.hackerearth.com/assessments-recruiters)
3. [Machine Learning (ML)](https://help.hackerearth.com/assessments-recruiters#machine-learning-ml)

# Creating machine learning questions in a test

## This article explains the steps for building a machine learning question in a test.

## Creating a machine learning question

To create your machine learning question in a test, follow these steps:

1. Log into HackerEarth Assessment using your admin credentials.
2. Click **Tests**.
3. Navigate to the test in which you want to add questions.
4. In the **Test details** section, click **Questions**.
5. Click **Create a new question**.
6. In the **Select question type** section, select **Machine Learning** under the **Coding** subsection.

## Entering the question details

1. In **Problem name**, enter the name of the problem.
2. In **Problem statement**, write your problem statement that should contain the following details: 
     1. Number of rows and columns in the provided data set
     2. Description of rows and columns in the data set
     3. Format of the solution that must be submitted by candidates
     4. Evaluation criteria of the problem statement.   
        Note: There are different types of evaluation metrics according to the problem types.
3. Select the difficulty level of your question from the list, Easy, Medium, or Hard.
4. In the **Maximum score** field, enter the maximum marks that you want to assign to candidates if they answer the question correctly. For example, **20** for Easy, **30** for Medium, and **50** for Hard questions.
5. In the **Tags** section, add the tags that are relevant to the question.  
   For example, if your problem is assessing the knowledge of Predictive analytics, Classification, and so on, then you can add multiple tags such as Machine Learning, Predictive analytics, and so on. These tags can be used to classify questions for specific profiles.
6. Click **Save as draft** to save this question.

You have successfully saved your draft.

## Uploading data set and test cases

To upload the data set and test cases of your question, follow these steps:

1. In the **Dataset** section, hover over **Dataset not added** and click **Upload file** to upload the data set of your question.   
   *Note*: The data set should be a **.rar** file. And, the maximum file size limit is 500 MB.
   
   ![mceclip1.png](https://help.hackerearth.com/hubfs/Knowledge%20Base%20Import/mceclip1-Jan-30-2023-11-28-00-7393-AM.png)
   
   The data set should consist of the following information:
   
     - Train data: Data set that candidates use to train their models
     - Test data: Data set that candidates use to predict an outcome
     - Sample submission format: Format that candidates should follow to create their submission file
   
    *Note:* The test data, train data, and sample submission should be .csv files.
2. Select the required file from your computer and click **Open**.
3. In the **Test cases** section, hover over **Online test cases not added** and click **Upload file** to upload the online test cases of the question.  
   ![mceclip2.png](https://help.hackerearth.com/hubfs/Knowledge%20Base%20Import/mceclip2-Jan-30-2023-11-27-59-5987-AM.png)
4. Select the required file from your computer and click **Open**.
5. Now, hover over **Offline test cases not added** and click **Upload file** to upload the offline test cases of the question.  
   ![mceclip3.png](https://help.hackerearth.com/hubfs/Knowledge%20Base%20Import/mceclip3-Jan-30-2023-11-28-01-9321-AM.png)
6. Select **Checker driven execution** to execute the solution based on the checker.
7. In the **Checker** section, hover over **Checker not added** and click **Upload file** to upload the checker file.  
   ![mceclip5.png](https://help.hackerearth.com/hubfs/Knowledge%20Base%20Import/mceclip5-Jan-30-2023-11-28-03-5927-AM.png)
8. Click **Upload file** beside **Checker** to upload the checker file.  
   *Note*: The checker file retrieves the ideal submission that contains the solution of the offline test cases and compares it to the candidate’s submission.
9. Select your checker language from the list.  
   *Note:* Currently, HackerEarth supports **45** languages.  
   ![mceclip6.png](https://help.hackerearth.com/hubfs/Knowledge%20Base%20Import/mceclip6-Jan-30-2023-11-28-04-7263-AM.png)

You have successfully uploaded your dataset, test cases, and checker file.

## Adding an editorial

Write a simple, elaborate explanation that defines the approach to solving the question. This is not visible to candidates and this section is displayed only after the challenge is over.

Your question is now ready. Click ![mceclip3.png](https://help.hackerearth.com/hubfs/Knowledge%20Base%20Import/mceclip3-Jan-30-2023-11-28-07-0043-AM.png)to save your changes and publish the question in the test.

## Settings for machine learning problems

The following settings are required to complete the creation of Machine Learning problems:

- Total number of submissions allowed
- Number of submissions allowed per day
- Number of submissions that should be considered for offline evaluation

- [Assessments: Recruiters](https://help.hackerearth.com/assessments-recruiters#main-content)

    - [Getting started](https://help.hackerearth.com/assessments-recruiters#getting-started)
    - [Account settings](https://help.hackerearth.com/assessments-recruiters#account-settings)
    - [Admin management](https://help.hackerearth.com/assessments-recruiters#admin-management)
    - [Creating tests automatically](https://help.hackerearth.com/assessments-recruiters#creating-tests-automatically)
    - [Creating tests manually](https://help.hackerearth.com/assessments-recruiters#creating-tests-manually)
    - [Test settings](https://help.hackerearth.com/assessments-recruiters#test-settings)
    - [Sections and question pooling](https://help.hackerearth.com/assessments-recruiters#sections-and-question-pooling)
    - [Libraries](https://help.hackerearth.com/assessments-recruiters#libraries)
    - [Multiple Choice Questions (MCQs)](https://help.hackerearth.com/assessments-recruiters#multiple-choice-questions-mcqs)
    - [Programming](https://help.hackerearth.com/assessments-recruiters#programming)
    - [Project](https://help.hackerearth.com/assessments-recruiters#project)
    - [Front end](https://help.hackerearth.com/assessments-recruiters#front-end)
    - [SQL](https://help.hackerearth.com/assessments-recruiters#sql)
    - [Data science](https://help.hackerearth.com/assessments-recruiters#data-science)
    - [Machine Learning (ML)](https://help.hackerearth.com/assessments-recruiters#machine-learning-ml)
    - [DevOps](https://help.hackerearth.com/assessments-recruiters#devops)
    - [Python project questions](https://help.hackerearth.com/assessments-recruiters#python-project-questions)
    - [Automation Testing](https://help.hackerearth.com/assessments-recruiters#automation-testing)
    - [Java Project](https://help.hackerearth.com/assessments-recruiters#java-project)
    - [C# project questions](https://help.hackerearth.com/assessments-recruiters#c-project-questions)
    - [Subjective](https://help.hackerearth.com/assessments-recruiters#subjective)
    - [Approximate](https://help.hackerearth.com/assessments-recruiters#approximate)
    - [Diagram](https://help.hackerearth.com/assessments-recruiters#diagram)
    - [File upload](https://help.hackerearth.com/assessments-recruiters#file-upload)
    - [Invites](https://help.hackerearth.com/assessments-recruiters#invites)
    - [Reports](https://help.hackerearth.com/assessments-recruiters#reports)
    - [Billing](https://help.hackerearth.com/assessments-recruiters#billing)
    - [HackerEarth Reports: Admins, Tests, and Teams](https://help.hackerearth.com/assessments-recruiters#hackerearth-reports-admins-tests-and-teams)
    - [Technical Content Updates](https://help.hackerearth.com/assessments-recruiters#technical-content-updates)
- [FaceCode](https://help.hackerearth.com/facecode#main-content)

    - [FaceCode and its features](https://help.hackerearth.com/facecode#facecode-and-its-features)
    - [Scheduling interviews on FaceCode](https://help.hackerearth.com/facecode#scheduling-interviews-on-facecode)
- [Assessments: ATS integrations](https://help.hackerearth.com/assessments-ats-integrations#main-content)

    - [Integration](https://help.hackerearth.com/assessments-ats-integrations#integration)
    - [iCIMS](https://help.hackerearth.com/assessments-ats-integrations#icims)
    - [Zoho Recruit](https://help.hackerearth.com/assessments-ats-integrations#zoho-recruit)
    - [SmartRecruiters](https://help.hackerearth.com/assessments-ats-integrations#smartrecruiters)
    - [EightFold](https://help.hackerearth.com/assessments-ats-integrations#eightfold)
    - [SuccessFactors](https://help.hackerearth.com/assessments-ats-integrations#successfactors)
    - [Greenhouse](https://help.hackerearth.com/assessments-ats-integrations#greenhouse)
    - [Lever](https://help.hackerearth.com/assessments-ats-integrations#lever)
    - [Linkedin Talent Hub](https://help.hackerearth.com/assessments-ats-integrations#linkedin-talent-hub)
    - [JazzHR](https://help.hackerearth.com/assessments-ats-integrations#jazzhr)
    - [Workable](https://help.hackerearth.com/assessments-ats-integrations#workable)
    - [Recruiterbox - Trakstar Hire](https://help.hackerearth.com/assessments-ats-integrations#recruiterbox-trakstar-hire)
    - [Jobvite](https://help.hackerearth.com/assessments-ats-integrations#jobvite)
    - [Ashby](https://help.hackerearth.com/assessments-ats-integrations#ashby)
- [Assessments: Product updates](https://help.hackerearth.com/assessments-product-updates#main-content)

    - [Release notes: HackerEarth Assessment](https://help.hackerearth.com/assessments-product-updates#release-notes-hackerearth-assessment)
    - [Root Cause Analysis (RCA)](https://help.hackerearth.com/assessments-product-updates#root-cause-analysis-rca)
    - [Content updates](https://help.hackerearth.com/assessments-product-updates#content-updates)
- [Assessments: Best practices](https://help.hackerearth.com/assessments-best-practices#main-content)

    - [Recruit](https://help.hackerearth.com/assessments-best-practices#recruit)
- [SSO](https://help.hackerearth.com/sso#main-content)

    - [SSO](https://help.hackerearth.com/sso#sso)
- [Upskilling](https://help.hackerearth.com/upskilling#main-content)

    - [Introduction: Upskilling](https://help.hackerearth.com/upskilling#introduction-upskilling)
- [Assessments: Candidates](https://help.hackerearth.com/assessments-candidates#main-content)

    - [Getting started](https://help.hackerearth.com/assessments-candidates#getting-started)
    - [Test environment](https://help.hackerearth.com/assessments-candidates#test-environment)
    - [Question types](https://help.hackerearth.com/assessments-candidates#question-types)
    - [FaceCode](https://help.hackerearth.com/assessments-candidates#facecode)
    - [Feedback and queries](https://help.hackerearth.com/assessments-candidates#feedback-and-queries)
- [Problem setting for HackerEarth](https://help.hackerearth.com/problem-setting-for-hackerearth#main-content)

    - [Rate cards](https://help.hackerearth.com/problem-setting-for-hackerearth#rate-cards)
- [Campus](https://help.hackerearth.com/campus#main-content)

    - [Recruiters](https://help.hackerearth.com/campus#recruiters)
    - [Recruiter FAQs](https://help.hackerearth.com/campus#recruiter-faqs)
    - [Candidate FAQs](https://help.hackerearth.com/campus#candidate-faqs)
- [Hackathons and Hiring Challenges](https://help.hackerearth.com/hackathons-and-hiring-challenges#main-content)

    - [Hackathons](https://help.hackerearth.com/hackathons-and-hiring-challenges#hackathons)
    - [Hiring challenges](https://help.hackerearth.com/hackathons-and-hiring-challenges#hiring-challenges)
- [Frequently Asked Questions (FAQs)](https://help.hackerearth.com/frequently-asked-questions-faqs#main-content)

    - [Assessments: Recruiters](https://help.hackerearth.com/frequently-asked-questions-faqs#assessments-recruiters)
    - [GDPR compliance (Candidates)](https://help.hackerearth.com/frequently-asked-questions-faqs#gdpr-compliance-candidates)
    - [GDPR compliance (Recruiters)](https://help.hackerearth.com/frequently-asked-questions-faqs#gdpr-compliance-recruiters)
    - [General](https://help.hackerearth.com/frequently-asked-questions-faqs#general)
    - [Assessments: Candidates](https://help.hackerearth.com/frequently-asked-questions-faqs#assessments-candidates)
    - [HackerEarth Vs ChatGPT](https://help.hackerearth.com/frequently-asked-questions-faqs#hackerearth-vs-chatgpt)
- [Profiles](https://help.hackerearth.com/profiles#main-content)

    - [Profiles - Recruiter](https://help.hackerearth.com/profiles#profiles-recruiter)
- [OnScreen](https://help.hackerearth.com/onscreen#main-content)

    - [OnScreen - Interview templates](https://help.hackerearth.com/onscreen#onscreen-interview-templates)
    - [OnScreen - Sending Invites](https://help.hackerearth.com/onscreen#onscreen-sending-invites)
    - [OnScreen - Download reports](https://help.hackerearth.com/onscreen#onscreen-download-reports)
    - [OnScreen - Interview Analytics](https://help.hackerearth.com/onscreen#onscreen-interview-analytics)
    - [OnScreen - Overview](https://help.hackerearth.com/onscreen#onscreen-overview)
    - [OnScreen - Interview Proctoring Settings](https://help.hackerearth.com/onscreen#onscreen-interview-proctoring-settings)

[![hackerearth-logo-light](https://help.hackerearth.com/hubfs/hackerearth-logo-light.svg "hackerearth-logo-light")](https://www.hackerearth.com/)

##### The skills intelligence platform for the AI era. Evaluate developers, candidates, and AI agents.

<https://www.linkedin.com/company/hackerearth/> <https://twitter.com/HackerEarth> <https://www.youtube.com/channel/UCYU6nvKyRYnE5kiG9JXkXpA>

© 2026 HackerEarth · All rights reserved