Giter Site home page Giter Site logo

dataset_split's Introduction

dataset_split

Take Home Test: Reformat a Public Dataset for LLM Training

Delivery

  • Reformatted Dataset: a.json
  • Transformation Code: data_split.py
  • Statistics: 106155
  • Performance Metrics: 1.0415241718292236 seconds

Test content

Take Home Test: Reformat a Public Dataset for LLM Training

Objective

The goal of this task is to prepare public datasets for more effective use in training and fine-tuning Large Language Models (LLMs). You are required to reformat a specific subset of a public dataset into a structured, consistent format to facilitate its usability.

Detailed Instructions

1. Dataset Selection and Preparation

  • Dataset: You are assigned the Headline subset of the AdaptLLM/finance-tasks dataset.

  • Task Description: Each entry in the input column contains multiple "Yes" or "No" questions alongside their respective answers. Your task is to:

    • Develop a Python script to parse and separate each question and its answer from the entry.

    • Save each question-answer pair in a structured JSON format as follows:

      {
        "id": "<unique_identifier>",
        "Question": "<question_text>",
        "Answer": "<answer_text>"
      }
    • You are encouraged to introduce additional attributes if needed to preserve the integrity and completeness of the information. Adding relevant tag information is strongly recommended.

  • Automation Requirement: The task must be completed using Python. Manual editing or data manipulation is strictly prohibited. Your script should efficiently handle variations in data format within the column.

2. Deliverables

  • Reformatted Dataset: Provide the schema of the final format you adopted for saving the results.
  • Transformation Code: Submit the complete code used for converting the dataset into the designated format.
  • Statistics: Report the total number of question-answer pairs extracted from the dataset.
  • Performance Metrics: Document the time taken to complete the dataset cleanup and transformation process.

dataset_split's People

Contributors

eemrr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.