📘 CodingMarble Learn

No-Code AI: Building Models with Orange Widgets

No-code AI tools let you build and test machine-learning models by dragging blocks instead of writing code. In Orange, each block is a widget: File loads data, Data Table and Scatter Plot show it, model widgets (kNN, Tree, Logistic Regression, Naive Bayes) learn from it, Test & Score measures accuracy using cross-validation or a train-test split, Confusion Matrix shows which classes get mixed up, and Predictions applies the model to new data. No-code tools are fast and friendly, but you still need clean data, a clear question and careful evaluation.

🎬 Step-by-step story

  1. In a no-code AI tool you drag blocks called widgets onto a canvas and join them with lines. Data flows along the lines.
  2. The File widget loads a table. Each row is one example. Input columns are features; the answer column is the target.
  3. The Scatter Plot widget draws the data. If the groups look separate, a model can learn them.
  4. Model widgets such as kNN and Tree learn from the data. Test & Score checks them on data they have not seen and shows accuracy.
  5. The Confusion Matrix shows right answers on the diagonal and mistakes elsewhere, so you see which classes get mixed up.
  6. Free play: move a new flower and change k. Watch kNN pick the most common type among its nearest neighbours.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Does no-code mean there is no programming at all?

The tool runs code behind each widget; you just do not type it.

What is the difference between a feature and a target?

Features are inputs (petal size). The target is the answer to learn (flower type).

Why plot the data before modelling?

You can see if classes separate, spot odd points and choose a suitable model.

How does Test and Score know the right answers?

It hides part of the labelled data while training, then compares predictions with the hidden labels.

Accuracy is high. Why look at the confusion matrix?

It shows exactly which classes get mixed up, which accuracy alone hides.

What happens when I change k?

The number of voting neighbours changes, so answers near borders can flip.

What is no-code AI?

No-code AI means building AI models with a visual tool instead of typing code. You drag, drop and connect blocks. The tool does the programming for you.

Examples of no-code tools: Orange (free data-mining tool with widgets), browser tools that train an image or sound classifier from your webcam, and spreadsheet add-ons that make predictions.

Orange basics: canvas, widgets and links

Orange has a canvas (work area) and a widget panel. A widget is a block that does one job. You join widgets with links; data flows from the output of one to the input of the next. A chain of widgets is a workflow.

GroupUseful widgets
DataFile, Data Table, Select Columns, Data Sampler
VisualiseScatter Plot, Distributions, Box Plot
ModelkNN, Tree, Logistic Regression, Naive Bayes, Random Forest, Linear Regression
EvaluateTest and Score, Confusion Matrix, Predictions
Unsupervisedk-Means, Hierarchical Clustering

Building a classification model step by step

  1. File: load a dataset (for example a flower or student-marks table). Set the answer column as target; the others are features.
  2. Data Table: check rows, columns and missing values.
  3. Scatter Plot: colour points by target to see if classes separate.
  4. Model widgets: add kNN and Tree, linked from File.
  5. Test and Score: link the data and the models. Choose cross-validation (e.g. 10 folds) or random sampling (e.g. 80% train). Read CA (classification accuracy), precision, recall and F1.
  6. Confusion Matrix: link from Test and Score to see mistakes per class.
  7. Predictions: link a model and a new data file to label new rows.

How kNN decides

k-nearest neighbours finds the k closest examples to the new one and picks the most common class. Small k follows the data closely; large k gives smoother decisions.

Reading the results

Accuracy (CA) = correct ÷ total. Precision = of the items the model called "yes", how many were really "yes". Recall = of the real "yes" items, how many the model found. F1 balances the two.

In the confusion matrix, rows are actual classes and columns are predicted classes. Numbers on the diagonal are correct. Off-diagonal numbers show which classes the model confuses.

Compare models side by side in Test and Score and choose the best one for your problem. Also check for bias: does the data fairly represent everyone the model will be used on?

Try it: the 3D and at home

In free play, put the new flower right between type B and type C. Change k from 1 to 15. Does the answer change? Why is k usually an odd number?

At home or in the lab: make a small table of 20 fruits with weight (g), length (cm) and type. Load it into Orange (or a free browser classifier), draw a scatter plot, train kNN and Tree, and compare their accuracy in Test and Score.

Key formulas and definitions

Worked examples

1. You want to see if three flower types form separate groups. Which widget helps?

Scatter Plot, with points coloured by the target (flower type).

2. Test and Score shows kNN CA = 0.94 and Tree CA = 0.90. Which model is better on this data, and by how much?

kNN, by 0.04 (4 percentage points) in accuracy.

3. A confusion matrix for spam has: actual spam predicted spam 40, actual spam predicted not-spam 10, actual not-spam predicted spam 5, actual not-spam predicted not-spam 45. Find accuracy, precision and recall for "spam".

Accuracy = (40 + 45) ÷ 100 = 85%. Precision = 40 ÷ (40 + 5) ≈ 0.89. Recall = 40 ÷ (40 + 10) = 0.80.

4. kNN with k = 3: the nearest neighbours of a new fruit are apple, orange, apple. What is the prediction?

Apple (2 votes out of 3).

Common mistakes

Practice quiz

1. In Orange, a block that does one job is called a:
2. Which widget loads a dataset?
3. Which widget compares the accuracy of several models?
4. In a confusion matrix, correct predictions are on the:
5. kNN predicts a class by:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is Orange in AI?

Orange is a free, open-source data-mining tool where you build machine-learning workflows by connecting widgets, without writing code.

What does CA mean in Test and Score?

Classification accuracy: the fraction of test examples the model labels correctly.

Is no-code AI used in real jobs?

Yes, to explore data and test ideas quickly. Large or custom systems are usually built later with code.

Where this is taught

CBSE (India)Class 12AI with Orange Data Mining Tool

Learn first

Learn next

Related lessons

All Computer Science lessons