Information & AI guides →

Information & AI · AI fundamentals and applications

Start learning AI with inputs, targets and evaluation

Edited by: Hitoiki Arcade / Hitoiki Learning team · Published: · References and presentation updated: · Editorial policy

When you hear that AI learns from data, first ask what goes in and what should be predicted. Identifying the input attributes and target makes learning methods and evaluation easier to understand. This guide focuses on predictive machine learning and the conditions for checking its results.

Classification, numerical prediction and text generation are different tasks even when all are called AI. The examples concern supervised learning and separated evaluation. An automatically produced result should not outrank human inspection merely because it is automatic; compare relevant outcomes and failures.

Identify what the labeled examples teach

Supervised learning uses examples pairing inputs with known targets. Predicting delivery time in minutes targets a number; sorting email into spam and ordinary mail targets categories. Features provide input information, while labels supply the target values. Keep those roles separate when describing the task.

Incorrect labels affect the relationship being learned. Real historical records can also contain judgments that should not become desirable standards. Ask where the examples came from and how their targets were assigned. That question is often more useful at the outset than memorizing a model's name.

Try a quiz on AI fundamentals and applications

Each section link opens a quiz on related topics. Questions may cover more than that section, so check the range and difficulty before starting.

Separate choosing a model from its final evaluation

Training data are used to learn the model, validation data to guide choices such as settings, and test data for final evaluation. Repeatedly changing settings after inspecting the same final test can indirectly fit its peculiarities. Avoiding direct training on that set does not prevent all information leakage.

Imagine judging new-task ability with a test whose answers you have repeatedly studied. Evaluation needs new examples and relevance to actual use. Check for duplicated examples across learning and evaluation, and ask whether the intended population and conditions still match those represented in the data.

Do not add authority merely because a result is automatic

Automation bias favors an automated system over a non-automated process regardless of their error rates. Choosing a worse-performing inspection model because it is AI replaces performance evidence with a label. Distinguish who produced a result from the evidence supporting it.

An evaluation score is tied to its dataset and conditions. Success with an earlier population need not continue after users or circumstances change. Define the intended job, consequences of failure and points of human checking to make the comparison between convenience and suitability concrete.

Connect weights to outputs and loss to updates

Features supply inputs, labels supply targets and weights are learned coefficients multiplying the inputs. With inputs 2 and 3, weights 0.5 and 1 and zero bias, the weighted sum is 2×0.5+3×1 = 4. Computing with learned coefficients is inference; adjusting them using loss, the discrepancy from targets, is training. Identify where learned values are used and where they change.

A gradient indicates a direction of increasing loss for small parameter changes. Gradient descent moves oppositely by an amount controlled by a learning rate, not necessarily toward smaller weights. ReLU returns zero for a negative weighted sum and the sum itself when positive. Small changes within the negative region leave its output unchanged. A unit remaining there can lose that gradient route for updating its incoming weights: a dead ReLU.

ReLU means Rectified Linear Unit. Read max(0,x) as an input–output rule: return zero for a negative value and otherwise return the value. Connecting the region where output does not change with the update signal makes the dead-ReLU mechanism easier to follow than the name alone.

Separate prediction from updating weights

Separate prediction from updating weightsInputs and weights feed a calculation leading to a prediction. Prediction and target meet at loss. A dashed route returns to update weights during training. Solid lines mark prediction computation.InputsWeightsUse the weightsPredictionTargetLossDashed: update weights
Inference uses weights. Training uses loss from the target discrepancy to update them. The dashed route is for training; no numerical output is supplied.

Check metric populations and the material behind an answer

Precision asks what fraction of positive predictions are correct; recall asks what fraction of actual positives were found. Eight correct cases among ten detections gives 8/10, while finding eight among twenty actual positives gives 8/20. Strong training results with poor new-example performance raise overfitting concerns. Separate validation for model selection from the final test, and exclude information unavailable at the actual prediction time.

RAG supplies retrieved documents alongside a pretrained model as external material for an answer. That addition is not itself retraining the weights. Check what was retrieved, what the documents support and whether generated claims stay within that support. A score, available documents or an automated producer alone does not establish suitability for every task or the correctness of every claim.

RAG means Retrieval-Augmented Generation. In classification, TP means True Positive, FP False Positive and FN False Negative. Retrieving material for an answer and counting classification outcomes are different jobs; the presence of retrieved documents is not a substitute for measuring relevant performance.

TRY & READ

Check your understanding with examples

Compare the choices before opening the answer and explanation. Reading an example does not save a test answer or score.

Example 1 · AI fundamentals and applications

Which approach learns predictions from data pairing inputs with known answers?

  1. Supervised learning
  2. Reinforcement learning
  3. Inference
  4. Unsupervised learning
Read the answer and explanation

Answer: Supervised learning

Supervised learning uses examples pairing inputs with known targets. Email features paired with spam or ordinary-mail labels, for example, provide training signals for classification. “Supervised” refers to having target information in those examples, not necessarily a person answering every prediction in real time.

Read reasoning and more detail

How the labels are assigned affects what is learned, so inspect both the examples and the quality of their targets.

Sources for this example

Example 2 · AI fundamentals and applications

What may happen if model settings are repeatedly changed after viewing the same final test scores?

  1. Selection cannot affect evaluation unless it updates weights
  2. Selection may fit test quirks and make evaluation optimistic
  3. An untrained-on test is unaffected by selection
  4. A better test score means greater independence
Read the answer and explanation

Answer: Selection may fit test quirks and make evaluation optimistic

Repeated setting changes guided by the final test can indirectly fit that test’s peculiarities. Even without directly training on its examples, the choice of which settings to retain uses information from its results. Use validation data for selection and reserve the final test for evaluation.

Read reasoning and more detail

A score achieved after repeatedly adapting to known questions is not the same evidence as performance on previously unseen ones.

Sources for this example

Example 3 · AI fundamentals and applications

What tendency favors an AI's results as 'correct because automated' even when it performs worse than human checks?

  1. Automation bias
  2. Confirmation bias
  3. Selection bias
  4. Historical bias
Read the answer and explanation

Answer: Automation bias

Automation bias favors an automated result without adequately comparing error performance. Here, the stated condition is that human inspection performs better, yet “because it is AI” replaces that evidence as the reason for trusting the result. The producer’s label and evidence of performance are different.

Read reasoning and more detail

Compare errors under the relevant conditions rather than treating automation itself as proof of correctness.

Sources for this example

Sources for this guide

Continue with a quiz

Topics: AI fundamentals and applications. Range: Everyday knowledge, Broader knowledge, General knowledge. Difficulty: Basic, Standard. These are selected initially. You can change these on the setup screen.

Try this topic in a quiz

This opens the setup screen with this subject and topic selected. Check the mode and question count before you start.

A test shows explanations after submission. Continuous challenge explains each answer. Review uses unresolved mistakes recorded on this device. Casual mode does not update learning records.

Enjoyed it? Share the link

Only the page address is shared. Your saves and results are not included.

Link to this page