🔒
Quality Assured Publisher
Serving Researchers Since 2012

DAISY: Data Analysis & Intelligent System for You – A Constrained Agent-Guided Machine Learning Workflow

DOI : 10.5281/zenodo.24747319
Download Full-Text PDF Cite this Publication

Text Only Version

DAISY: Data Analysis & Intelligent System for You – A Constrained Agent-Guided Machine Learning Workflow

Swayam Ballal

Department of Information Technology Vidyalankar Institute of Technology, Mumbai, India.

Ansh Kudalkar

Department of Information Technology Vidyalankar Institute of Technology, Mumbai, India.

Jatin Rathod

Department of Information Technology Vidyalankar Institute of Technology, Mumbai, India.

Pallavi Kharat

Department of Information Technology Vidyalankar Institute of Technology, Mumbai, India.

Abstract – DAISY is a web application for creating machine learning models out of tabular data. It integrates data cleaning, exploratory data analysis, feature engineering, model selection, model training, model evaluation and model exportation in a single workflow. It uses a Sense-Reason-Act pattern: Python visualises the data set, suggests some action, and predefined functions execute the action and record the outcomes. The first cleaning logic we had was not specific enough. The system required more information on the individual columns and data set to make a decision on how to process the missing data, and categorical or irrelevant attributes, and made improvements to the agents to provide more specific guidance. We also experienced API failures, quota limits and slow responses on longer pipelines, which prompted us to look for other language model providers. Our choice was Groq because it was quicker to respond through the development process. A saved Adult Census Income based on a histogram was applied to a gradient-boosting (GB) machine learning algorithm with test accuracy of 87.59%, test weighted F1 of 87.28%, and ROC AUC of 0.9269. There were 32,561 records and 15 columns in the evaluated file, and the run consisted of training, validation and test partitions of 19,536, 6,512 and 6,513 records, respectively, with random seed 42. The baseline that was the majority class achieved an accuracy of 75.88% and weighted F1 of 65.47%. There are two limitations on these test results: test records were duplicated and two of the test records exactly matched training records. This one-shot benchmark test is not a general superiority test over the datasets. This is not yet a complete benchmarking and reliability study.

The web interface is hosted on Vercel and can be accessed at https://daixy.vercel.app/

Index Termsagentic AI, automated machine learning, tabular data, data preprocessing, model evaluation, large language models

  1. INTRODUCTION

    The creation of a machine learning model is more than just picking an algorithm and training it. The data needs to be analysed, data missing, some of the categorical features to be encoded, and some features to be removed because they are not helpful. These decisions are based on the information. For example, a zero might represent an actual measurement in one column, but a missing value in another, and applying one rule to all datasets can lead to errors rather than error correction. These

    same repetitive tasks impeded our previous machine learning / data analysis coursework.

    We created DAISY to present these decisions in one interactive process. Users upload a data set, select a target for prediction, go through data preparation, exploratory analysis, feature engineering, model recommendation, training, evaluation, and export. A language model is used to interpret the dataset profile and recommend actions, while Python handles numerical operations. This division allows the system to explain its recommendations, without needing the language model to make predictions and evaluation metrics. DAISY is designed for students, beginners, and data analysts who wish to avoid the tedious process of manually doing all preparation steps to create models.

    The design was influenced by development. At an early point some cleaning suggestions were too general, and we looked into what the agent was recommending and why each operation was being suggested. To correct this, the dataset statistics were provided to the agents in more detail and they were provided with more precise information as to when to perform an action, and a recursive feature elimination (RFE) feature selection option was added. We also performed the entire workflow on larger data sets. Those runs highlighted API/quota issues, which resulted in longer sessions being broken, and forced us to look at other options. The API keys of our first provider were used up in a hurry, and its sessions were long. It then went to NVIDIA’s hosted models, and they were used up even faster. We selected Groq because it worked quicker and for our bigger runs.

    1. Related Work

      There are also traditional AutoML frameworks such as Auto- sklearn [1] which automate preprocessing, model selection, hyperparameter tuning and ensembling, and new agent-based systems such as AutoML-Agent [2], AutoMind [3], LAMBDA

      [4] which investigate automation via LLM, code execution, and debugging, as well as DatawiseAgent [5] and AutoKaggle [6]. DAISY is motivated by ReAct [7] and Toolformer [8] which separate reasoning from execution in a conversational, guided pipeline. It is a less flexible agent-based approach which offers

      more constrained recommendations which are validated by deterministic handlers and dataset schemas, thus making it easier to reject invalid output. BoostClean [9] provides insights for data-cleaning decisions and research into LLM hallucinations [10] guides the validation of recommendations, but DAISY adds value in exploring how these execution limitations influence workflow completion, cost, and predictive utility.

    2. Scope And Contribution

    In this work, we document three engineering aspects: (1) a stage based data-science service, (2) an application programming interface (API) constraint that enforces LLM proposals to execute in Python, and (3) a reproducible model delivery. This is the base implementations provided (daisy-v03 ZIP). The checked commits in the main and daisy-v03 branches of the supplementary repository at github.com/swwwayam/daisy contain the same backend tree; there are 7 Python files in the backend branch that differ from the archive. Repository updates are handled on their own not to confuse the implemented, version-specific/expected behaviour, with the planned behaviour.

  2. M ETHODOLOGY

    1. System Architecture and Technology Stack

      Backend is a python application with FastAPI and Uvicorn. FastAPI offers an API for uploading, summary, chat, cleaning, exploratory data analysis (EDA), feature engineering, model selection, training, evaluation, and downloading. The BaseModel classes (e.g., dataset identifier, target column, candidate models, test proportion) are the Pydantic classes for fields on a request. The Multipart File Handling feature allows you to upload CSV files. The configured front end origins that call the service are allowed to call the service via cross-origin resource sharing. The technology stack is summarized in Table I

      TABLE I. Technology stack and implementation roles

      Layer or module

      Technology

      Role

      API and requests

      FastAPI, Uvicorn, Pydantic

      HTTP service, request schema

      Data operations

      pandas, NumPy

      Profiling, transformations, numerical arrays

      Reasoning

      OpenAI SDK with Groq

      Structured lans and explanatory text

      Feature engineering

      sklearn.preprocessing

      Label encoding and fitted scalers

      Training and evaluation

      scikit-learn

      Ten estimators, splits and metrics

      Export and inference

      joblib, JSON, zipfile

      Fitted bundle and preprocessing replay

      Frontend

      React, TypeScript, Vite

      Interactive workspace and API calls

      Interface presentation

      Tailwind CSS, GSAP, Three.js

      Styling and visualization support

      pandas provides a set of DataFrame objects and NumPy arrays, allowing end users to do schema inspection, missing-value handling, grouping, correlation, and feature manipulation. The NumPy library contains numerical operations, finite value checking and calculating error values and the scikit-learn library contains preprocessing transformers, supervised estimators, data splitting and evaluation functions [11]. The export module uses SciPy to output the version of the dependency, and it is not a dependency agent, nor a different project-level learning algorithm. The frontend is built with React and TypeScript using Vite.

      Browser fetch requests are used to interface the workspace with the Python API. There also exist several packages that are declared on the front end but not used to train the tabular models, like Tailwind CSS, GSAP and Three.js for displaying or visualizing the tabular models but not to train them. PyTorch, TensorFlow, XGBoost, LightGBM, LangChain, and a vector database are not included in the core ML execution path in the inspected backend. NVIDIA is not responsible for the reasoning section, if the diagnostic script is used separately. The in- memory dictionaries contain objects in the dataset, stage results, parent identifiers and recorded transformations. Each version of a dataset/exported artifact is distinct and has a universally unique identifier. Parent links allow chat to retrieve outcomes from the previous stages, as they are linked to original, cleaned and engineered data. The model is zipped up and exported to a set directory, which has been set up (and is not linked to a persistent dataset or workflow storage). The state of the in-memory data will be lost when the application is restarted.

    2. Language Model Interface and Constrained Execution

    The process of calling Groq by DAISY is done via the OpenAI- compatible client, with the default reasoning model (openai/gpt-oss-120b) and with temperature set to 0.2, top_p to 0.95, and streaming turned off. These are default source- configuration parameters, which might be different in deployed instances. Lower temperature decreases the variance but doesn’t make the LLM output certain. This paper does not include credentials, as they are provided in the environment.

    Reliability was the main factor that influenced provider choice. Long sessions with our initial provider’s API keys were soon used up and even with NVIDIA’s hosted models, these were also soon consumed. We were looking for something that could aid us with our bigger runs and Groq did just that.

    In each stage, Sense-Reason-Act is followed. Sense: Generates a Python profile; Reason sends the appropriate statistical information to the model and asks for a plan/explanation; Act: sends the supported actions to the predefined functions. Requests are limited to 2,500 tokens and feature engineering is returned as a native JSON object, while the other planning stages return native instructions that are parsed as a JSON object. The ‘feature parser’ will not accept empty plans, bad plans, plans with too many actions (more than 10), plans with unsupported types or strategies, or plans without reasoning strings. Parsing and semantic validation are independent, so an acceptable JSON plan may be for an improper operation.

    Let As be the set of actions supported by stage s and ps be the sequence of proposed actions. The dispatcher will perform the action only if the type of action is listed in the stage’s handler map, and the names from the estimator are checked against the classification or regression vocabulary one by one. While this will stop arbitrary generated code from being used as a transformation, it won’t check each parameter or statistical argument. For instance, there may be information to be retrieved that is lost because of a permitted feature removal action.

    Cleaning and feature engineering work on copies of the DataFrame and restore the previous state prior to the operation. Exceptions re-enter that state and add a failed-action record, unknown actions are logged as skipped unless the feature parser already rejected the action. Later stage responses include workflow identifiers, dataset identifiers, status, reasoning, actions, summaries, metrics and execution time all defined in agent_schema.py. The response envelope is not still consistent across stages, as the earlier cleaning and EDA stages still have their original structure

  3. RESULTS AND DISCUSSION

    1. Implementation Findings

      The prototype covers the full pipeline: CSV ingestion, cleaning, EDA, feature engineering, model recommendation, training, evaluation, and export. Table II separates implemented capabilities from pending evidence. The archive includes tests for task inference, invalid model names, feature transformations, training metrics, verdict fallback, and export, including wrong-task and invented estimator names. A full test run was not conducted, so no pass count is reported, and the existence of rejection paths is not a measured hallucination- reduction rate.

      TABLE II. Implementation evidence and research status

      Area

      Present evidence

      Pending evidence

      Preparation

      Profiling and transformation handlers

      Cleaning quality benchmark

      Modeling

      Ten estimator constructors; Adult Census Income case

      study

      Multi-dataset, repeated-split, and AutoML comparisons

      Validation

      Vocabulary checks and included tests

      Executed study with rejection rates

      Delivery

      Model ZIP and replay helper

      Deployment and compatibility trials

      Explainability and memory

      Planned extensions

      SHAP and persistent retrieval

    2. System Interface

      Figs. 1,2 & 3 show the implemented interface, the public landing pages.

      Fig. 1. DAISY landing page and interactive network visualization.

      Fig. 2. Authentication view for entering the private workspace.

      Fig. 3. Dataset-upload workspace and further pipeline steps.

    3. Validity Limits

      The purpose of the “clean” and “transform” operations in the supplied archive is to learn these operations prior to training, and to use information from rows that are treated as “held out” rows for imputation statistics, scaler parameters and category frequencies. Full-dataset profiles can be used for feature selections. Both may be optimistic when making performance estimates. The later commits (main 7b635336ac8d; daisy-v03 c262565fb3d5) split the rows first, fit the transformations just to the training rows, replay them to the held-out rows, and store the fingerprints of the dataset and the partition. This resolves a leakage problem in the parameter fitting, but may not work with operation selection if the profiles used are full-dataset profiles, and has not been tested in real-world use. Other constraints are: heuristic task inference, incomplete semantic alidation, in- memory workflow state, no systematic hyperparameter tuning, and limited action vocabularies which may result in worse statistical decisions while invalid dispatch is still possible. A final study should rely on publicly documented binary, multiclass, regression datasets, include all preprocessing in training folds, report on the untouched test partition, and compare to deterministic-pipeline, tree-ensemble and AutoML

      and fixed-rule (LLM ablation) baselines, along with reliability tests to malformed plans and invalid model names.

    4. Adult Census Income Evaluation

    The Adult Census Income file had 32,561 records and 15 columns and the binary target was income [12]. With seed 42, the run used 19,536 training, 6,512 validation, and 6,513 test records. The best result was achieved by the selected histogram- based gradient boosting classifier, 87.59% test accuracy, 87.28% weighted F1, and 0.9269 ROC-AUC, compared to 75.88% accuracy and 65.47% weighted F1 for the majority class baseline. For the >50K class, precision was 0.7803, recall 0.6760, and F1 0.7244. These are just reproductions of prediction and not a new training run. The artifact shows keep: Duplicate_policy, duplicate test and duplicate validation records are exactly the same as training records, and therefore test result have residual overlap and are not a completely independent estimate. This does not illustrate that DAISY improves over other systems and extends to other datasets. Additional runs with larger data sets were also conducted, but they are not reported reported here.

  4. CONCLUSION

DAISY combines the most common workflow steps of a tabular machine learning workflow in a single application for profiling data sets, recommending language models, transforming data in Python, supervised training, evaluation, and export of a model. One of the design considerations was to distinguish between recommendation and action – every action for cleaning had to be based on the data and could not be done automatically for any reason because an AI model recommended it.

This is confirmed by our experience in development. Generalised cleaning instructions were provided on some of the datasets for the first cleaning agent; therefore, the information and instructions it was given were refined to become more specific. Other challenges included API failures and usage limits with longer pipeline runs, impacting our language model provider selection. These problems demonstrated that there is a relationship between an agent’s quality and its reasoning capabilities and the reliability of the service provided.

The saved histogram-based Gradient Boosting classifier was able to achieve the following scores on the Adult Census Income dataset [12]: Test accuracy 87.59%, weighted F1 score 87.28%, and ROC-AUC score 0.9269. The highest accuracy baseline was the majority class with an accuracy of 75.88% and weighted F1 of 65.47%. The recall for >50K class is 0.6760, and there are two test records that matched training records due to duplicate records being stored. This is a proof of one of the saved-model case studies, but it does not demonstrate that DAISY will always be better than other approaches, or that it will generalize to arbitrary datasets.

Future work should involve repeat testing on additional datasets, rigorously validate preprocessing decisions, and systematically measure API failures, response time, and workflow completion. Also, we will work on adding more descriptions and adding persistence for the workflow state and completed features will be distinguished from incomplete features.

The project source code and current implementation can be found in Github at https://github.com/swwwayam/daisy and

deployed on vercel at https://daixy.vercel.app/. The back-end service is deployed locally.

REFERENCES

  1. M. Feurer, A. Klein, K. Eggensperger, J. Springenberg, M. Blum, and F. Hutter, “Efficient and robust automated machine learning,” in Adv. Neural Inf. Process. Syst., vol. 28, 2015.

  2. P. Trirat, W. Jeong, and S. J. Hwang, “AutoML-Agent: A multi-agent LLM framework for full-pipeline AutoML,” in Proc. 42nd Int. Conf. Mach. Learn., PMLR, vol. 267, pp. 6009960146, 2025.

  3. Y. Ou et al., “AutoMind: Adaptive knowledgeable agent for automated data science,” 2025, arXiv:2506.10974.

  4. M. Sun et al., “LAMBDA: A large model-based data agent,” J. Amer. Statist. Assoc., 2025, doi: 10.1080/01621459.2025.2510000.

  5. Z. You et al., “DatawiseAgent: A notebook-centric LLM agent framework for adaptive and robust data science automation,” 2025, arXiv:2503.07044.

  6. Z. Li et al., “AutoKaggle: A multi-agent framework for autonomous data science competitions,” 2024, arXiv:2410.20424.

  7. S. Yao et al., “ReAct: Synergizing reasoning and acting in language models,” in Proc. Int. Conf. Learn. Represent., 2023.

  8. T. Schick et al., “Toolformer: Language models can teach themselves to use tools,” in Adv. Neural Inf. Process. Syst., vol. 36, 2023.

  9. S. Krishnan, M. J. Franklin, K. Goldberg, and E. Wu, “BoostClean: Automated error detection and repair for machine learning,” 2017, arXiv:1711.01299.

  10. L. Huang et al., “A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions,” arXiv:2311.05232, 2023, revised 2024.

  11. F. Pedregosa et al., “Scikit-learn: Machine learning in Python,” J. Mach. Learn. Res., vol. 12, pp. 28252830, 2011.

  12. B. Becker and R. Kohavi, “Adult” [Dataset], UCI Machine Learning Repository, 1996, doi: 10.24432/C5XW20.