AI Wiki中文/EN

Practice projects

12 downloadable small-scale baselines. Python 3.10+, standard library only, with data descriptions, commands, and assessment tasks.

These projects use original small datasets to practice methods and experimental workflows. They do not establish real-world performance; the reproduction project is a workflow exercise, not a full paper replication.

01

Tabular prediction: a reliable baseline

Compare logistic regression with a majority-class baseline on independent training and test data.

Data: Seeded two-dimensional synthetic classification data.

Assessment: Vary label noise and report accuracy means and ranges across at least five seeds; fit preprocessing only on training data.

Download project ↓

02

Image classification: from pixels to labels

Classify noisy horizontal and vertical lines with a nearest-centroid model.

Data: Original synthetic 8×8 grayscale images; no external images.

Assessment: Test shifted lines and explain the difference between training and evaluation distributions.

Download project ↓

03

Text classification: naive Bayes

Estimate class-conditional word probabilities with add-one smoothing.

Data: Original short sentences with distinct training and test examples.

Assessment: Add negation, unknown words, and repetitions; explain failures of bag-of-words and conditional independence.

Download project ↓

04

Time series: a seasonal baseline

Compare seasonal-naive and last-value forecasts in a time-respecting rolling evaluation.

Data: A synthetic series with trend, seasonality, and noise.

Assessment: Change the seasonal period, specify information available at each forecast, and report MSE and failure periods.

Download project ↓

05

Recommendation: user and item biases

Estimate user and item biases from training ratings and evaluate held-out ratings.

Data: Synthetic ratings for 8 users and 8 items.

Assessment: Add cold-start users, compare global-mean and bias models, and explain why missing ratings are not negative feedback.

Download project ↓

06

Retrieval-based answering: return evidence

Build TF-IDF retrieval and return source evidence without generating unsupported answers.

Data: Four original short documents and four labeled queries.

Assessment: Add synonyms and unanswerable queries, report Recall@1, and design no-match handling.

Download project ↓

07

Small language model: character bigrams

Estimate character transitions, evaluate held-out perplexity, and sample text.

Data: A small original English corpus with add-one smoothing.

Assessment: Compare unigram and bigram baselines and explain why fluent fragments do not establish semantic understanding.

Download project ↓

08

Generative modeling: fitting and sampling

Fit a one-dimensional Gaussian by maximum likelihood and generate new samples.

Data: A synthetic training distribution with known mean and variance.

Assessment: Replace training data with a bimodal distribution and explain what a single Gaussian cannot represent.

Download project ↓

09

Reinforcement learning: a tabular policy

Train Q-learning in a five-state environment, then evaluate a greedy policy separately.

Data: Locally generated transitions; no external simulator.

Assessment: Compare exploration rates and seeds; verify that terminal transitions do not bootstrap.

Download project ↓

10

Causal analysis: identify confounding

Compare unadjusted group differences with effects adjusted for a confounder.

Data: A synthetic causal model with a known treatment effect of 2.

Assessment: Vary treatment assignment and sample size; report bias and state identification assumptions.

Download project ↓

11

Model serving: a testable interface

Expose a fixed teaching classifier through local POST /predict, validate inputs, and test error responses.

Data: JSON input with two finite numeric features; default tests do not start a server.

Assessment: Test missing fields, wrong types, infinite values, and unsupported methods; explain what production serving additionally needs.

Download project ↓

12

Reproducible experiment: ablation and reporting

Compare full and ablated features under fixed splits to reproduce an experimental workflow.

Data: Original synthetic data; this reproduces a workflow, not a published benchmark result.

Assessment: Record environment, seeds, splits, and budget; run five seeds and report differences and counterexamples.

Download project ↓

No matches. Try a synonym or acronym.

0 results shown

Wrap the whole query in double quotes for a phrase match.