TryMLEasy builds aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Gurneet1928/TryMLEasy/llms.txt
Use this file to discover all available pages before exploring further.
tf.keras.Sequential model dynamically from a layer table you fill in on the Neural Network Configurations page. You define the hidden layers; the app automatically prepends an Input layer sized to your feature set and appends a fixed Dense(1) output layer. Once the architecture is verified on the Neural Network Architecture page, training hyperparameters (epochs and batch size) are set on the Training Neural Networks page. This reference documents every option available across those three pages.
Model Architecture
The model is assembled as atf.keras.Sequential stack with three parts:
- Input layer — added automatically; shape is set to the number of features selected on the Feature Selection page (
xtrain.shape[1]). - Hidden layers — one or more
Denselayers defined by you in the layer editor table. - Output layer — added automatically as
Dense(1)(single neuron, no activation).
model.summary() on the Architecture Verification page so you can inspect parameter counts before training.
Layer Configuration
Hidden layers are defined in a dynamic table on the Neural Network Configurations page. Each row in the table represents oneDense layer added to the model in order. The table has the following columns:
| Column | Type | Constraints | Default | Description |
|---|---|---|---|---|
| Layer Name | Text | Required | A Happy Layer | A display label for the layer. Has no effect on model behaviour — used for your own reference only. |
| Neurons | Integer | Min: 2, Max: 100, step: 1, required | 10 | Number of units in the Dense layer. |
| Activation Function | Select | relu, sigmoid, tanh, required | relu | The activation function applied element-wise after the linear transformation. |
Index requirement: TryMLEasy requires you to manually set the row index when adding each new layer. Rows without an explicit index value will not be accepted when you click “Verify Architecture”. This is a known UX limitation — the team is actively working to improve this experience.
Activation Functions
- ReLU
- Sigmoid
- Tanh
Rectified Linear UnitReLU outputs the input directly if it is positive, and zero otherwise. It is the default and recommended choice for hidden layers because it:
- Introduces non-linearity without saturating for positive inputs.
- Helps avoid the vanishing gradient problem that affects sigmoid and tanh in deep networks.
- Is computationally cheap to evaluate and differentiate.
Training Hyperparameters
Training hyperparameters are set on the Training Neural Networks page:| Parameter | Input Type | Minimum | Description |
|---|---|---|---|
| Epochs | Integer | 1 | Number of complete passes over the full training dataset. More epochs allow the model to learn longer but increase risk of overfitting. |
| Batch Size | Integer | 1 | Number of training samples processed before performing a single weight update. Smaller batches produce noisier but more frequent updates; larger batches are smoother but require more memory. |
| Optimizer | Fixed | — | Adam — adaptive learning rate optimiser. Not configurable in the current version. |
| Loss Function | Fixed | — | Mean Squared Error (MSE) — average of squared differences between predictions and true values. Not configurable in the current version. |
| Validation data | Automatic | — | The xtest / ytest split produced by the Feature Selection page is used as the validation set at every epoch. |
Training Output
While training runs, TryMLEasy streams per-epoch metrics to the page in real time using a custom Keras callback, then renders a final summary and plot.Per-Epoch Log
Each epoch appends one line to the page:| Column | Description |
|---|---|
| Epoch | Zero-indexed epoch number. |
| Loss | MSE on the training split for that epoch. |
| Val_Loss | MSE on the test (validation) split for that epoch. |
Final Test Evaluation
After all epochs complete, the model is evaluated on the test set one final time:Training vs. Validation Loss Plot
A matplotlib line chart is displayed showing bothtrain_loss and val_loss over all epochs. Use this plot to:
- Confirm that training loss is decreasing — if it is not, try more epochs or a larger network.
- Detect overfitting: a growing gap where
val_lossrises whiletrain_losscontinues to fall. - Detect underfitting: both losses remain high — try adding more neurons or layers.