TabularLab Manual

V1.1.0 | 2026-07-01 | Beginner-friendly guide

Download GitHub

TabularLab V1.1.0 中文操作说明书

这份说明书面向第一次接触机器学习工具的用户。你不需要会写代码,只要准备一张表格,按照“导入数据、选择任务、设置字段、训练模型、查看结果、导出图表、进行预测”的顺序操作,就可以完成一次本地表格机器学习分析。

TabularLab 中文海报
TabularLab 中文海报。
软件名称 TabularLab : A lightweight toolkit for tabular machine learning.
当前版本 V1.1.0,发布日期 2026-07-01
最重要的一句话

TabularLab 所有数据都在本机浏览器或桌面 App 内处理,不需要上传到服务器。它适合教学、论文初步分析、材料数据表格探索、小型项目建模和快速出图。

2. 快速开始:5 分钟跑通一次分析

如果你只是想先体验软件,可以不用准备数据,直接使用内置示例数据。

下载软件

从发布页面下载桌面 App 后直接运行,或者在浏览器中打开项目根目录的 index.html

加载示例数据

在左侧“数据源”选择一个默认数据集,点击“加载示例数据”。

确认任务

在“任务设置”检查任务类型、目标列和特征列。示例数据通常会自动推荐。

训练模型

在“处理与训练”选择模型,点击“运行分析”。

看结果

进入“结果”标签页,查看指标、总结报告、结果分析图和可导出文件。

做预测

进入“预测”标签页,输入一条新样本,或上传一个新文件做批量预测。

Load Sample
图 1:加载示例数据。新手建议先用示例数据跑通流程,再换成自己的表格。

附录:机器学习基础概念(初学者阅读)

机器学习可以理解为:让软件从已有表格中学习“输入”和“答案”之间的关系,然后把这个关系用于新样本。TabularLab 面向的是表格机器学习,也就是每一行是一条样本、每一列是一种信息。

样本 / 行

一行是一条样本。例如一个材料、一条实验记录、一个学生、一件产品。模型会从很多行样本中学习规律。

变量 / 列

一列是一种信息。例如密度、温度、工艺、类别、强度、是否合格。列名应该清楚、稳定,不要用合并单元格。

特征列

特征是模型的输入,也就是用来判断答案的信息。例如成分、处理温度、晶粒尺寸、材料族、工艺路线。

目标列

目标是你希望模型预测的答案。例如屈服强度、材料类别、是否在热处理窗口内。回归和分类需要目标列,聚类不需要。

训练

训练就是让模型看已有数据,调整内部参数,让预测结果尽量接近真实答案。训练不是记住表格,而是学习可推广的规律。

预测

预测是把新样本的特征输入训练好的模型,让模型输出目标值、类别或簇编号。新样本必须包含训练时使用的特征列。

训练集 / 测试集

训练集用于学习规律;测试集暂时不让模型看到,用来检查模型对新数据的表现。测试集指标比训练集指标更接近真实使用效果。

交叉验证

K 折交叉验证会轮流用一部分数据做验证,其余数据训练。TabularLab 的 OOF 评估会把每一折验证预测拼接起来,让每条样本都被验证一次。

回归

回归预测连续数值。例:强度、容量、价格、温度。常看 R2、RMSE、MAE;R2 越高通常越好,RMSE/MAE 越低通常越好。

分类

分类预测类别标签。例:材料类别、合格/不合格、低/中/高等级。常看 Accuracy、Precision、Recall、F1 和混淆矩阵。

聚类

聚类没有标准答案,模型会根据特征相似性自动把样本分组。它适合探索材料族、发现异常样本或观察数据结构。

过拟合

过拟合是模型把训练数据细节甚至噪声学得太死,训练效果很好,但新数据效果差。降低模型复杂度、增加数据、交叉验证都能帮助发现过拟合。

TabularLab 中用到的主要算法

算法适用任务直观理解什么时候适合
Linear / Ridge / Lasso / ElasticNet回归用一组加权公式把特征组合成数值预测。想要速度快、可解释、作为基线模型时。
Linear SVR / Linear SVM回归 / 分类寻找能稳定分开样本或减少预测误差的线性边界。特征较多、关系近似线性时。
Decision Tree回归 / 分类像流程图一样不断问“某列是否大于某个值”。希望模型容易解释,但要注意过拟合。
Random Forest回归 / 分类训练很多棵树,再投票或平均。通用、稳健,适合很多非线性表格问题。
Gradient Boosting回归一轮一轮修正前面模型的错误。需要较强拟合能力,且愿意调参时。
KNN回归 / 分类找最相似的 K 个样本,用它们的答案做预测。数据量不大、相似样本确实有相似结果时。
Softmax Logistic分类给每个类别计算概率,选择概率最高的类别。多分类基线、需要快速稳定结果时。
Gaussian Naive Bayes分类估计各类别下特征分布,再判断新样本最像哪一类。需要非常快的分类基线时。
KMeans聚类把样本分成 K 组,每组围绕一个中心。你大致知道要分几类,且簇比较圆/集中时。
DBSCAN聚类按样本密度成团,孤立点会标为噪声。想发现异常点,或簇形状不规则时。
Agglomerative聚类从每个样本单独成组开始,逐步合并相近组。希望观察层次式分组关系时。

初学者推荐判断顺序

  1. 先问自己:我要预测数值、预测类别,还是只是自动分组?这决定回归、分类或聚类。
  2. 再确认目标列有没有被误选为特征。答案列不能作为输入,否则指标会虚高。
  3. 先用默认模型跑通流程,再比较 2-3 个模型,不要一开始就过度调参。
  4. 优先看测试集或交叉验证结果,不要只看训练过程或单个漂亮图。
  5. 如果指标很差,先检查数据质量、目标列、特征列和缺失值,而不是马上换复杂模型。
不要把编号当成特征

样本编号、实验编号、随机 ID 通常不代表真实规律。如果把它们作为特征,模型可能学到无意义的编号关系。

3. TabularLab 的完整工作流

  1. 准备表格:CSV、TSV、TXT、XLSX 或 XLS。
  2. 导入数据:上传文件或加载示例数据。
  3. 选择任务:回归、分类或聚类。
  4. 指定字段角色:哪些列是特征,哪些列是目标,哪些列忽略。
  5. 设置预处理:缺失值怎么填、类别文本怎么编码。
  6. 选择模型:不同任务会显示不同模型。
  7. 运行分析:训练模型并生成指标、图表和预测结果。
  8. 解释结果:看总结报告、指标、结果分析图。
  9. 导出文件:导出图表、结果 JSON、预测 CSV、处理后数据。
  10. 新数据预测:输入单条样本或上传批量预测文件。

4. 数据源:导入自己的表格或示例数据

Data Source
图 2:数据源面板。这里决定后续分析使用哪张表。

支持的文件类型

  • .csv:最推荐,兼容性最好。
  • .tsv / .txt:适合制表符或文本分隔的数据。
  • .xlsx / .xls:Excel 文件,软件会读取第一个工作表。

导入自己的数据

  1. 点击虚线框,选择你的文件;也可以把文件拖到虚线框内。
  2. 导入后,左侧会显示当前数据集名称、行数和列数。
  3. 进入“概览”查看字段摘要,确认列名、缺失值和数据类型是否合理。

数据质量检查

概览页会自动检查高缺失率列、常数列、疑似 ID 或唯一文本列、重复行、数值异常值,以及可能和目标列过于相似的目标泄露风险列。这些提示不会自动删除数据,而是帮助你决定哪些列需要忽略、修正或进一步检查。

先修数据,再看模型

如果数据质量检查提示目标泄露、重复行或大面积缺失,建议先修正字段角色和原始数据,再训练模型。否则指标可能很好看,但实际预测并不可靠。

加载示例数据

  1. 在“默认数据”下拉框选择一个示例。
  2. 阅读默认数据说明,了解它适合做回归、分类还是聚类。
  3. 点击“加载示例数据”。
表格准备建议

第一行应该是列名;不要合并单元格;每一列尽量只放一种含义;缺失值可以留空,后面由软件统一处理。

5. 任务设置:决定你要解决什么问题

Task Setup
图 3:任务设置面板。这里选择任务类型、目标列和特征列。
任务类型适合的问题目标列要求结果怎么看
回归预测数值,例如强度、容量、价格目标列必须是数值看 R2、RMSE、MAE 和真实值-预测值图
分类预测类别,例如材料类别、合格/不合格目标列通常是文本或类别看 Accuracy、分类报告和混淆矩阵
聚类自动分组,没有标准答案不需要目标列看簇数量、簇大小、投影散点图

如何选择目标列

目标列就是你希望预测的答案。回归和分类可以选择一个或多个目标列;聚类任务没有目标列。

如何选择特征列

特征列就是模型用来判断答案的输入信息。建议选择与目标有物理、业务或实验关系的列,去掉纯编号、备注、无关文本。

6. 字段角色:逐列确认特征、目标、忽略

Column Roles
图 4:字段角色表。每一列只能选择一种角色。
  • 特征:模型输入。模型会根据这些列学习规律。
  • 目标:模型要预测的答案。回归/分类需要,聚类不需要。
  • 忽略:不用进入模型。例如编号、备注、数据来源、重复列。
字段角色会直接影响结果

如果把答案列误选为特征,模型会“偷看答案”,指标会异常好但没有实际意义。如果把重要特征忽略,模型效果可能变差。

7. 处理与训练:清洗数据并训练模型

Processing and Training
图 5:处理与训练面板。这里控制缺失值、编码、模型和训练参数。

缺失值处理

  • 数值均值 / 类别众数:常用默认选项,适合大多数新手。
  • 数值中位数 / 类别众数:如果数据有极端值,中位数通常更稳。
  • 0 / Unknown:适合 0 或 Unknown 有明确业务含义的情况。

文本/符号编码

  • 独热编码:把类别拆成多个 0/1 列,适合多数分类文本。
  • 序号编码:把类别映射成数字,列数少但可能引入人为顺序。

模型选择建议

任务新手推荐什么时候换模型
回归Linear / Ridge、Random Forest、Gradient Boosting线性模型解释性强;森林/提升模型通常拟合能力更强。
分类Softmax、Random Forest、Gaussian Naive Bayes类别边界复杂时尝试森林或 KNN;需要快速基线可用朴素贝叶斯。
聚类KMeans不知道簇形状时可试 DBSCAN;希望层次合并时用 Agglomerative。

训练/测试划分和交叉验证

测试集比例决定多少数据留作最终评估。启用交叉验证后,软件会轮流把每一折作为验证集,再拼接所有验证预测,得到更稳的 OOF 评估。

自动调参

自动调参会在运行分析前尝试多组主要模型参数,例如正则化强度、学习率、树深度、树数量、K 值或提升轮数。软件会用内部验证分数比较候选参数,找到更好的组合后自动写回当前参数输入框,再用这组参数训练最终模型。

  • 贝叶斯调参:更适合快速试探关键参数,候选数量较少,速度通常更快。
  • 网格搜索:按预设参数表逐项组合尝试,覆盖更规则,但可能更慢。
  • 使用建议:先用默认参数跑通流程;如果结果稳定但还想提升指标,再开启自动调参。数据较大或模型较复杂时,自动调参会明显增加训练时间。

8. 结果解读:不要只看一个数字

Results
图 6:结果页。包含评估模式说明、结果总结、指标卡、模型输出和结果分析图。

结果总结

V1.1.0 新增结果总结,会自动写出输入数据、任务、目标、特征数量、评估方式和主要效果指标。适合直接复制到实验记录或报告初稿。

回归指标

  • R2:越接近 1 越好。负数说明模型可能比简单平均值还差。
  • RMSE:均方根误差,越小越好,对大误差更敏感。
  • MAE:平均绝对误差,越小越好,直观表示平均偏差。

分类指标

  • Accuracy:预测正确比例。类别很不均衡时不能只看它。
  • Precision:预测为某类时,有多少是真的。
  • Recall:真实为某类时,有多少被找出来。
  • F1:Precision 和 Recall 的综合。

聚类指标

  • 簇大小:每一簇有多少样本,能发现是否某一簇过大或过小。
  • 噪声点:DBSCAN 中无法归入任何簇的样本。
  • Inertia:KMeans 的簇内距离,通常越小越紧凑,但不能单独决定最佳簇数。

逆向推荐(仅回归)

回归模型训练完成后,结果页会显示“逆向设计”面板。你可以输入一个或多个期望目标性能,并设置推荐数量 Top N。软件会在训练特征空间内生成 30000 个均匀候选点,排除上传数据中已经存在的已知特征组合,然后用当前模型预测每个候选点。

推荐结果按预测性能与期望性能之间的 L2 距离排序,距离越小表示越接近期望目标。报告会列出搜索方法、搜索空间、跳过的已知点数量、推荐特征组合、预测值和误差。

逆向约束和导出

逆向设计支持给特征加搜索约束。数值特征可以填写最小值和最大值,类别特征可以填写允许类别(用逗号分隔)。如果不填写约束,软件会使用上传数据中该特征的完整范围或已见类别。逆向结果可以导出为 CSV 或 JSON,便于保存 Top N 推荐、L2 距离、推荐特征、预测值、误差和搜索空间。

逆向推荐不是实验保证

推荐点来自当前模型在已导入特征范围内的预测,只能作为候选设计或实验优先级参考。模型训练数据少、指标较差或特征缺少关键物理信息时,推荐结果也会不可靠。

特征重要性

结果页会显示特征重要性表格和横向条形图。线性模型使用系数大小,树模型使用分裂次数,其他模型使用置换重要性近似。图表展示 Top 20 特征,表格展示更多特征、重要性数值和计算方法。它可以帮助判断模型主要依赖哪些输入,也能发现疑似 ID、泄露列或无意义特征是否影响了结果。

9. 图表和导出:把图直接用于论文或报告

Results Plot
图 7:结果分析图。回归、分类、聚类会显示不同图和不同参数设置。

可视化标签页支持的图

  • 直方图:看单个数值列的分布,Y 轴固定为 Count。
  • 琴图:看单个数值列的分布轮廓,Y 轴固定为 Count。
  • 散点图:看两个数值列之间的关系,可按目标列着色。
  • 相关性热力图:看多个数值特征之间的线性相关程度,可调整最大特征数和配色风格。
  • 目标关系图:分类时显示堆叠计数,回归时显示特征与目标散点。

结果分析图对应任务

  • 回归:真实值-预测值散点图,可调整坐标、刻度、散点大小。
  • 分类:混淆矩阵,可调整热力图风格、标签角度、矩阵数字字号和颜色。
  • 聚类:投影散点图,可选择 PCA、t-SNE、前两个数值特征、前两个编码特征。

导出 PNG 还是 SVG

  • PNG:位图,适合快速插入幻灯片和文档。
  • SVG:矢量图,适合论文、期刊排版和后期编辑。
论文出图建议

优先导出 SVG;把字体、字号、标签距离、颜色和图宽图高调好后再导出。若标签重叠,先增大图宽、调整 X/Y 标签角度,再调标签距离。

10. 预测:用训练好的模型预测新样本

Predict
图 8:预测页。可以输入单条样本,也可以上传文件批量预测。

单条预测

  1. 先完成一次训练,否则没有模型可用。
  2. 进入“预测”标签页。
  3. 在每个特征输入框里填入新样本的值。
  4. 点击“预测”,查看输出。

批量预测

  1. 准备一个新 CSV 或 Excel 文件。
  2. 这个文件必须包含训练时使用的特征列,列名要一致。
  3. 上传后软件会检查缺失特征列。
  4. 点击批量预测,下载追加预测列后的文件。
预测文件必须和训练特征一致

如果训练时用了 densitytemperatureprocess 三列,新文件也必须有这些列。其他列可以保留,但不会作为模型输入。

保存和加载模型

训练完成后可以在结果页保存模型 JSON。该文件包含任务类型、目标列、特征列、预处理器、编码信息、模型参数和模型本身。以后可以加载这个模型文件继续做单条预测或批量预测,不需要重新训练。加载模型后,新预测文件仍然必须包含训练时使用的同名特征列。

11. 数据预览和处理后数据

Preview
图 9:数据预览。用于检查导入数据是否读取正确。
  • 可调整预览行数,快速检查前几行数据。
  • 目标列会用特殊样式标出,便于检查字段角色。
  • “保存处理后数据”会导出经过缺失值处理和编码后的建模数据。
什么时候导出处理后数据

如果你希望在论文补充材料、其他统计软件或 Python/R 中复现模型输入,可以导出处理后数据。

12. 导出、保存和引用

可以导出的内容

  • 图表:PNG 或 SVG。
  • 结果:JSON,包含任务、目标、特征、指标、交叉验证等信息。
  • 预测:CSV,包含真实值、预测值或聚类结果。
  • 模型:JSON,包含预处理器、模型参数和训练后的模型,可重新加载用于预测。
  • 逆向设计:CSV 或 JSON,包含 Top N 推荐、预测值、误差、L2 距离和搜索空间。
  • HTML 报告:包含结果总结、复现信息、特征重要性、逆向推荐和模型输出,可直接保存归档。
  • 处理后数据:CSV,包含预处理后的建模输入。
  • 引用:文本引用和 BibTeX。

复现信息

结果 JSON、HTML 报告和模型输出日志都会包含复现信息,例如软件版本、生成时间、数据集名称、任务类型、目标列、特征列、缺失值策略、编码策略、模型参数、随机种子、测试集比例、评估方式和训练/测试划分。写论文或项目报告时,建议把这些信息和导出的模型或结果文件一起保存。

推荐引用格式

Bin Cao. (2026). TabularLab : A lightweight toolkit for tabular machine learning. Version 1.1.0. https://github.com/bin-cao/TabularLab

BibTeX

@software{Cao2026TabularLab,
  author = {Bin Cao},
  title = {TabularLab : A lightweight toolkit for tabular machine learning.},
  year = {2026},
  version = {1.1.0},
  url = {https://github.com/bin-cao/TabularLab},
  note = {A lightweight toolkit for tabular machine learning}
}

13. 常见问题和排错

为什么运行按钮没有效果?

  • 确认已经加载数据。
  • 确认回归/分类任务选择了目标列。
  • 确认至少选择了一个特征列。
  • 回归任务的目标列必须是数值列。

为什么指标很好但实际没用?

常见原因是把答案相关列误选为特征,例如预测强度时把“强度等级”或“是否合格”也作为特征。请回到字段角色检查。

为什么分类 Accuracy 很高,但某些类别很差?

可能类别不均衡。请看分类报告中每个类别的 Precision、Recall、F1 和 Support,再看混淆矩阵。

为什么图表文字重叠?

可以调大图宽/图高,调小字号,增加标签距离,或修改 X/Y 标签角度。相关热力图还可以减少最大特征数。

为什么 t-SNE 每次看起来不完全一样?

t-SNE 是非线性投影,主要用于观察局部邻近关系,不建议把坐标轴数值当作物理含义。TabularLab 为了浏览器性能,对较大数据采用前 180 行拟合并映射其余点。

什么时候不要使用 TabularLab?

TabularLab 适合中小型数据、教学和快速探索,不适合直接替代严格的生产级建模平台。医疗、金融、法律、安全等高风险决策请使用经过验证的专业流程。

TabularLab V1.1.0 English User Manual

This manual is written for beginners. You do not need to write code. Prepare a spreadsheet, then follow the workflow: import data, choose a task, define column roles, train a model, read results, export figures, and make predictions.

TabularLab English poster
TabularLab English poster.
VersionV1.1.0, released on 2026-07-01
The most important idea

TabularLab processes your table locally in the browser or desktop app. It is suitable for teaching, early-stage research analysis, material data exploration, small tabular ML projects, and publication-ready chart export.

2. Quick Start: run one analysis in about five minutes

If you do not have your own data yet, start with a built-in sample dataset.

Download the software

Download a desktop app from the release page, or open index.html in a browser.

Load sample data

Choose a default dataset in the Data Source panel and click Load Sample.

Check the task

Confirm the task type, target columns, and feature columns in Task Setup.

Train the model

Choose preprocessing and model settings, then click Run Analysis.

Read results

Open the Results tab to inspect metrics, summary report, and result plots.

Predict new data

Use the Predict tab for single-row prediction or batch prediction from a file.

Load Sample
Figure 1: Load a sample dataset. Beginners should first run a sample before using their own table.

Appendix: Machine Learning Basics for Beginners

Machine learning means learning a relationship from existing examples, then applying that relationship to new samples. In TabularLab, the examples are rows in a table, and the information used by the model is stored in columns.

Sample / row

One row is one sample, such as one material, experiment record, student, or product. The model learns from many rows.

Variable / column

One column is one type of information, such as density, temperature, process route, class label, or strength.

Feature column

A feature is an input used by the model, such as composition, treatment temperature, grain size, material family, or process route.

Target column

The target is the answer you want to predict. Regression and classification need target columns; clustering does not.

Training

Training adjusts a model so its predictions match known answers. The goal is not memorization, but a pattern that works on new data.

Prediction

Prediction applies a trained model to a new sample. The new table must contain the same feature columns used during training.

Train/test split

Training rows fit the model. Test rows are hidden during training and used to estimate performance on unseen data.

Cross validation

K-fold cross validation repeatedly trains on K-1 folds and validates on the held-out fold. TabularLab reports OOF predictions by combining all held-out predictions.

Regression

Regression predicts a continuous number, such as strength, capacity, price, or temperature. Common metrics include R2, RMSE, and MAE.

Classification

Classification predicts a category, such as material class, pass/fail, or low/medium/high. Common outputs include accuracy, F1, and a confusion matrix.

Clustering

Clustering groups samples without known answers. It is useful for exploration, family discovery, and anomaly inspection.

Overfitting

Overfitting means a model fits training details or noise too closely, so it looks good on training data but performs poorly on new data.

Main algorithms used by TabularLab

AlgorithmTaskPlain-language ideaGood starting point when
Linear / Ridge / Lasso / ElasticNetRegressionCombine features with weights to predict a number.You want a fast, interpretable baseline.
Linear SVR / Linear SVMRegression / ClassificationFind a stable linear boundary or linear prediction rule.You have many features and roughly linear behavior.
Decision TreeRegression / ClassificationAsk a sequence of if/then questions about feature values.You want an interpretable model, while watching for overfitting.
Random ForestRegression / ClassificationTrain many trees and average or vote their outputs.You need a robust general-purpose tabular model.
Gradient BoostingRegressionBuild models sequentially, each one correcting earlier errors.You need stronger fitting power and can tune parameters.
KNNRegression / ClassificationFind the K most similar samples and use their answers.Your dataset is small and similar samples should have similar results.
Softmax LogisticClassificationEstimate class probabilities and choose the most likely class.You need a fast multiclass baseline.
Gaussian Naive BayesClassificationEstimate feature distributions for each class and pick the most likely class.You need a very fast classification baseline.
KMeansClusteringSplit samples into K groups around cluster centers.You roughly know the number of groups.
DBSCANClusteringBuild clusters from dense regions and mark isolated points as noise.You want anomaly detection or irregular cluster shapes.
AgglomerativeClusteringStart with one group per sample, then merge nearby groups step by step.You want hierarchical grouping behavior.

Beginner checklist

  1. Decide whether you need to predict a number, predict a class, or discover groups.
  2. Make sure answer-like columns are not selected as features.
  3. Run a default model first, then compare a small number of alternatives.
  4. Trust test-set or cross-validation results more than training impressions.
  5. If metrics are poor, check data quality, target choice, features, and missing values before switching to a complex model.
Do not use IDs as features unless they carry meaning

Sample IDs, random IDs, and experiment numbers usually do not describe real patterns. Using them as features can make the model learn meaningless shortcuts.

3. Full workflow

  1. Prepare a clean table in CSV, TSV, TXT, XLSX, or XLS format.
  2. Import the table or load a built-in sample dataset.
  3. Choose regression, classification, or clustering.
  4. Assign each column as feature, target, or ignored.
  5. Set missing-value handling and categorical encoding.
  6. Choose a model and validation settings.
  7. Run the analysis.
  8. Read the summary, metrics, plots, and logs.
  9. Export charts, results, predictions, or processed data.
  10. Use the trained model for new single-row or batch prediction.

4. Data Source: import your own table or sample data

Data Source
Figure 2: Data Source panel. This panel decides which table is used for the analysis.

Supported file types

  • .csv: recommended for most users.
  • .tsv / .txt: useful for tab-separated or plain text tables.
  • .xlsx / .xls: Excel files; TabularLab reads the first worksheet.

Import your own data

  1. Click the dashed upload box or drag your file into it.
  2. After import, check the current dataset name, row count, and column count.
  3. Open Overview to inspect column types, missing values, and examples.

Data quality check

The Overview tab automatically checks high-missing columns, constant columns, ID-like or unique text columns, duplicate rows, numeric outliers, and possible target-leakage columns whose names are too similar to target names. These warnings do not delete data; they help you decide which columns need to be ignored, corrected, or reviewed.

Fix data before trusting metrics

If data quality warnings show target leakage, duplicate rows, or severe missingness, review column roles and raw data before training. Otherwise metrics may look strong while real prediction remains unreliable.

Table preparation tips

The first row should contain column names. Avoid merged cells. Each column should have one meaning. Empty cells are allowed and can be handled later by preprocessing.

5. Task Setup: define your question

Task Setup
Figure 3: Task Setup panel. Choose task type, target columns, and feature columns.
TaskUse caseTarget requirementMain result
RegressionPredict a number, such as strength or capacityNumeric targetR2, RMSE, MAE, actual-vs-predicted plot
ClassificationPredict a class labelCategorical or text targetAccuracy, classification report, confusion matrix
ClusteringAutomatically group samplesNo target columnCluster labels, cluster sizes, projection plot

The target is the answer you want to predict. Features are the input columns used to make that prediction. For clustering, there is no target column.

6. Column Roles: feature, target, or ignored

Column Roles
Figure 4: Column Roles table. Each column should have exactly one role.
  • Feature: input information used by the model.
  • Target: the answer to predict. Regression/classification use targets; clustering does not.
  • Ignore: columns excluded from modeling, such as notes, IDs, or duplicate information.
Column roles directly affect model validity

If you accidentally use an answer-like column as a feature, the model can appear very accurate but will not be meaningful.

7. Processing & Training: clean data and train a model

Processing and Training
Figure 5: Processing & Training panel. Configure missing values, encoding, model, and validation settings.

Missing-value handling

  • Numeric mean / category mode: a good default for many datasets.
  • Numeric median / category mode: more robust when numeric columns contain outliers.
  • 0 / Unknown: useful when zero or Unknown has a clear meaning.

Categorical encoding

  • One-hot: converts categories into separate 0/1 columns. Recommended for most categorical features.
  • Ordinal: maps categories to numbers. It uses fewer columns but may introduce artificial order.

Model choice

  • Regression: start with Linear/Ridge, Random Forest, or Gradient Boosting.
  • Classification: start with Softmax, Random Forest, or Gaussian Naive Bayes.
  • Clustering: start with KMeans; try DBSCAN for irregular clusters.

Use train/test split for a simple evaluation. Use cross-validation OOF evaluation when you want a more stable estimate across all usable rows.

Auto tuning

Auto tuning tests multiple important model-parameter settings before the final run, such as regularization strength, learning rate, tree depth, tree count, K value, or boosting rounds. TabularLab compares candidate settings with an internal validation score, writes the best parameters back into the current parameter inputs, and then trains the final model with those settings.

  • Bayesian tuning: a faster search over key parameters with fewer candidate trials.
  • Grid search: a more regular sweep over preset parameter combinations, but it can take longer.
  • Recommendation: run the default model first. Enable auto tuning only after the workflow is correct and you want to improve metrics. Larger datasets and more complex models will take longer.

8. Results: read more than one number

Results
Figure 6: Results tab. It contains evaluation mode, summary report, metric cards, logs, and result plots.

Result summary

V1.1.0 adds an automatic result summary: input data, task, target, feature count, evaluation mode, and main effect metrics. It is useful for lab notes and report drafts.

Regression metrics

  • R2: closer to 1 is better. Negative values indicate poor performance.
  • RMSE: lower is better and penalizes large errors strongly.
  • MAE: lower is better and is easy to interpret as average absolute error.

Classification metrics

  • Accuracy: overall correct prediction rate.
  • Precision: when the model predicts a class, how often it is correct.
  • Recall: when a sample truly belongs to a class, how often the model finds it.
  • F1: a balance between precision and recall.

Clustering outputs

  • Cluster sizes: how many rows belong to each cluster.
  • Noise: DBSCAN samples not assigned to any cluster.
  • Projection plot: PCA, t-SNE, numeric-feature, or encoded-feature projection.

Inverse recommendation (regression only)

After training a regression model, the Results tab shows an Inverse Design panel. Enter one or more desired target performance values and choose the recommendation count Top N. TabularLab generates 30000 uniformly distributed candidate points inside the trained feature space, excludes feature combinations already present in the uploaded data, and predicts every remaining candidate with the current model.

Recommendations are sorted by the L2 distance between predicted target values and desired target values. Smaller distance means the candidate is closer to the requested performance. The report includes the search method, feature-space coverage, skipped known points, recommended feature combinations, predicted values, and errors.

Inverse constraints and export

Inverse design supports optional search constraints. Numeric features can use narrower minimum and maximum values. Categorical features can use comma-separated allowed categories. Empty constraint fields use the full imported range or all observed categories. Inverse results can be exported as CSV or JSON with Top N recommendations, L2 distance, recommended features, predicted values, errors, and search-space information.

Inverse recommendation is not an experimental guarantee

The recommendations are model predictions inside the imported feature ranges. Use them as candidate designs or experiment-priority suggestions. If the training data are sparse, metrics are weak, or key physical features are missing, the recommended points may be unreliable.

Feature importance

The Results tab shows both a feature-importance table and a horizontal bar chart. Linear models use coefficient magnitude, tree models use split counts, and other models use approximate permutation importance. The chart shows the top 20 features, while the table lists more features, importance values, and the calculation method. Use it to understand what the model relies on and to spot possible ID, leakage, or meaningless features.

9. Charts and export

Results Plot
Figure 7: Result analysis plot. Different tasks show different plots and parameter controls.

Visualization tab charts

  • Histogram: distribution of one numeric column. Y is fixed to Count.
  • Violin plot: smoothed distribution shape of one numeric column. Y is fixed to Count.
  • Scatter plot: relationship between two numeric columns, optionally colored by target.
  • Correlation heatmap: correlations among numeric features; max features and color style are adjustable.
  • Target plot: target relationship plot for classification or regression tasks.

Result plot by task

  • Regression: actual-vs-predicted scatter plot.
  • Classification: confusion matrix with adjustable label angles, heatmap style, number size, and number color.
  • Clustering: projection scatter plot with PCA, t-SNE, numeric-feature, and encoded-feature projection options.

PNG or SVG

Use PNG for quick reports and slides. Use SVG for papers because it is a vector format and remains sharp when resized.

10. Prediction

Predict
Figure 8: Predict tab. Use one manually entered sample or upload a batch file.

Single prediction

  1. Train a model first.
  2. Open the Predict tab.
  3. Fill each feature value for the new sample.
  4. Click Predict and read the output.

Batch prediction

  1. Prepare a new CSV or Excel file.
  2. Make sure it contains the same feature columns used during training.
  3. Upload the file and check the requirement panel.
  4. Download the file with appended prediction columns.

Save and load models

After training, use Save Model in the Results tab to export a model JSON file. It contains the task, targets, feature columns, preprocessor, encoding information, model parameters, and trained model. Later, load that model file to continue single-row or batch prediction without retraining. A loaded model still requires new prediction files to contain the same feature column names used during training.

11. Data Preview and processed data

Preview
Figure 9: Preview tab. Check whether the imported data was read correctly.
  • Adjust preview row count to inspect more rows.
  • Target columns are highlighted to help verify roles.
  • Save Processed Data exports the modeling table after missing-value handling and encoding.

12. Export and citation

  • Charts: PNG or SVG.
  • Results: JSON with task, targets, features, metrics, and validation information.
  • Predictions: CSV with actual/predicted values or cluster labels.
  • Model: JSON with preprocessor, model parameters, and trained model, reloadable for prediction.
  • Inverse design: CSV or JSON with Top N recommendations, predicted values, errors, L2 distance, and search space.
  • HTML report: a report containing summary, reproducibility information, feature importance, inverse recommendations, and model output.
  • Processed data: CSV after preprocessing.
  • Citation: plain text citation and BibTeX.

Reproducibility information

Results JSON, HTML reports, and model output logs include reproducibility information such as software version, generation time, dataset name, task, targets, features, missing-value strategy, encoding strategy, model parameters, random seed, test size, evaluation mode, and train/test split. Save this information with exported models or result files for papers and project records.

Bin Cao. (2026). TabularLab : A lightweight toolkit for tabular machine learning. Version 1.1.0. https://github.com/bin-cao/TabularLab

13. FAQ

Why does Run Analysis not work?

  • Make sure a dataset is loaded.
  • For regression/classification, make sure a target column is selected.
  • Make sure at least one feature column is selected.
  • For regression, the target column must be numeric.

Why are metrics good but the model is not useful?

You may have included answer-like columns as features. Recheck Column Roles and remove leaked information.

Why do chart labels overlap?

Increase chart width or height, reduce font size, adjust X/Y label distance, or change X/Y label angle. For correlation heatmaps, reduce the maximum feature count.

When should I avoid using TabularLab?

TabularLab is designed for small to medium datasets, teaching, and fast exploration. It is not a replacement for validated production ML workflows in high-risk medical, financial, legal, or safety decisions.