@datagrok/eda
v1.10.0
Published
Exploratory Data Analysis Tools
Keywords
Readme
EDA
EDA is a package for the Datagrok platform. It provides the following exploratory data analysis and machine learning tools:
Dimensionality reduction
Multivariate analysis
- Partial least squares regression (PLS)
- Quadratic PLS regression
Supervised machine learning
- Linear regression
- Softmax classifier
- PLS regression
- Gradient Boosting
- Support vector machine (SVM) classification and regression
- Random forest
- Extra trees (extremely randomized trees)
- Hist gradient boosting (histogram-based)
- CatBoost
- Decision tree
- k-nearest neighbors classification and regression
- Naive Bayes classifier
- Linear discriminant analysis (LDA) classifier
- Neural network (multilayer perceptron)
- RealMLP (tuned-default tabular MLP, pytabkit)
- TabM (parameter-efficient MLP ensemble)
The machine learning methods, PCA and PLS run on Crux (scikit-learn, XGBoost and CatBoost ports and the RealMLP / TabM neural tabular models compiled to WebAssembly). Classifiers return the class probabilities (
proba_<class>columns) after the prediction; SVM only with Class probabilities checked (Platt scaling: an internal 5-fold cross-validation, about 5 times the training time), which Forge sets from its Predict probability. Every classifier's training function declaresmeta.mlprobabilities(true, or the name of the input that turns the probabilities on); Forge shows AUC-ROC and the ROC curve from them.Eda:classificationReportgives Forge AUC-ROC, average precision, the per-class values and the ROC and precision-recall curves (Forge computes balanced accuracy and MCC itself).Models saved before the move to Crux are still applied, with the same predictions as before (prediction only, no class probabilities): PLS regression models with stored feature names, Linear regression models from EDA 1.8.0 and Softmax, XGBoost and SVM models from EDA 1.9.0. Older models must be retrained.
Training and applying models with these methods in the platform's UI needs the Forge plugin (ML | Models); without it the platform shows no predictive modeling tool.
Hyperparameters: XGBoost has Iterations (boosting rounds), Rate (eta), Max depth, L2 / L1 (lambda / alpha on the leaf weights), Row sample and Column sample (the share of rows / features sampled for each tree, default 1) and Model seed. SVM has Max iterations (default 1000000): the solver stops there unconverged and still returns the model, so a setting that does not converge (some polynomial kernels with a large gamma ran for over 15 minutes) cannot hang a search; it is not searched. A Model seed input exists only where Crux uses one: Random Forest, Extra Trees, Hist Gradient Boosting, CatBoost, Decision Tree, Neural Network, RealMLP, TabM, XGBoost (only with a sample below 1) and Linear Regression (its solvers are deterministic with these settings). PLS Regression, Softmax, SVM, k-nearest neighbors, Naive Bayes and LDA have no seed (SVM with Class probabilities uses the fixed seed 0, so its probabilities are reproducible).
Inputs that depend on others:
meta.mlenabledon a training function lists, per input, the conditions under which it is used (JSON{"<input>": <condition> | [<condition>, ...]}; a condition's clauses must all hold, an array means any of them; a clause is"<other input>": [values],"<other input>": {"gt": n}/{"lt": n}or"task": ["classification" | "regression"]). Forge disables an input whose rule fails and keeps its value. SVM: Gamma for the RBF, polynomial and sigmoid kernels, Degree for polynomial, Offset for polynomial and sigmoid, Epsilon for regression; Linear Regression: Iterations only with L1 > 0; XGBoost: Model seed only with Row sample or Column sample below 1.Search spaces: every training function declares
meta.mlparallel(fits may run in parallel: EDA runs Crux in a pool of up to four workers, half the logical CPUs) and, every method but Naive Bayes,meta.mlspace: the ranges of its settings worth searching, in theml.tunespace format (int/floatwithlow,highandlog,categoricalwithchoices) plus the end that gives the simpler model (simpler). Forge's Tune samples these ranges (narrowed by the user's Search options); its first trial is the form's current values when they lie inside the ranges, and the seed is never searched. For example, XGBoost searches Iterations 10-100, Rate 0.03-0.5, Max depth 1-10, L2 0.1-10 and L1 0.01-10 (log scale but for the depth), Row sample and Column sample 0.5-1.Group comparison
- Two-sample t-test (Welch and Student)
- One-way analysis of variances (ANOVA)
- Control comparisons against a single control (Dunnett's test and Holm-corrected Welch's t-tests)
Missing data imputation
- k-nearest neighbors method (KNN)
Multi-objective optimization
