跳到正文 / Skip to content
◈ AI 知识地图 0.18 · 2026-07-30
关于与纠错文字目录 / Search

Self-tests and data practice

Start with a self-test, then run a small reproducible task using real data. Answer feedback and review results stay in this browser, separate from reading progress.

Foundation self-tests

These eight introductory questions sample a few topics; they are not an assessment of every concept on the site. Answer independently before reading feedback.

Learning a classifier from Iris examples with species labels is which task?
Which data should determine standardization parameters?
Training accuracy is high but independent test performance is poor. What should you investigate?
Predicting one of three discrete flower species is what kind of output?
What does RAG typically add before generating an answer?
What does attention most directly compute?
Which approach better evaluates a prompt revision?
Before an agent calls a tool that can write data, what should you consider?

Real data: Iris classification

Task: predict one of three Iris species from four sepal/petal measurements. The material contains 150 real observations. Introductory level; allow 20–30 minutes including code reading. Basic lists, means and distances are prerequisites.

  1. Download the CSV and Python script into the same directory. Python 3 standard library is sufficient; alternatively run the task in this browser.
  2. Keep source order. Within each class, use every fifth observation starting with the first for testing and the rest for training: 120 train and 30 test.
  3. Compute means and population standard deviations on training data only. Standardize and calculate class centroids; predict the nearest centroid. Break ties by sorted class name.
  4. Compare the confusion matrix with expected results and explain where mistakes cluster. When changing the model or split, keep an independent test set rather than repeatedly selecting with test results.

Download CSV · Download Python · Expected results JSON · Source and license

python practice-iris.py
Expected results and interpretation

This fixed procedure should classify 25/30 correctly (about 83.33%). Matrix rows are true classes, columns predictions, ordered setosa, versicolor, virginica: [[10,0,0],[0,5,5],[0,0,10]].

This is a teaching baseline on a small dataset, not a best-score claim or evidence of performance on other flowers or datasets. The lab uploads no data and trains no online model.

Source: Fisher, R. (1936), Iris — UCI; DOI 10.24432/C56C76; CC BY 4.0

Source: scikit-learn — Data leakage

The download uses UCI’s corrected bezdekIris.data, adding a header and normalized newlines while preserving row order. Retrieved 2026-11-01.

English-source reading aids

These are locally written reading aids, not full translations. Check the originals. Previews do not embed external sites or automatically send reading content.

Reading an English paper: Transformer

Map the architecture diagram to encoder, decoder and attention, then inspect training and evaluation. Translation results have specific experimental conditions and cannot be generalized to every modern model. Terms: encoder; decoder; self-attention.

Source: Vaswani et al., Attention Is All You Need (2017)

Reading English documentation: avoiding leakage

Focus on splitting first and fitting on training data only, then distinguish fit from transform in the examples. This lab computes means and scales on training data; test data is used for final evaluation.

Source: scikit-learn — Common pitfalls and recommended practices

Further questions

Where did the name “artificial intelligence” come from?

The 1955 proposal for the Dartmouth summer research project used “artificial intelligence”; the project was planned for 1956. The name denotes a research direction, not a claim that machines have every human mental property. Distinguish the proposal date from the event year.

Source: McCarthy, Minsky, Rochester & Shannon — Dartmouth research proposal (1955)

Is AI development inevitable?

This is an open question. Discuss technical capability, sustained resources and choices about deployment separately. Capability and adoption are different; costs, policy, risks and public choices affect the path. State a testable condition and evidence that could change your view rather than treating a position as a single-answer quiz.

Source: Stanford AI100 — historical background (2016; not a forecast)

Compiled 2026-11-01. Papers retain their publication year; disputed research questions are not graded by a single position.