liveBook · Manning

Labeled data

As explained in Investing for Programmers

Labeled data is data paired with known target values or categories for supervised learning.

Labeled data pairs measurable inputs with known outcomes. In supervised learning, financial features such as prices, earnings, or macroeconomic indicators are paired with labels such as future direction, return, or cluster. section 8.1 section 8.1.2

Common labeling patterns include:

  • Classification assigns categories such as buy, sell, hold, strong buy, or strong sell. section 8.1
  • Regression assigns numeric outcomes, such as the percentage change in a stock’s price over one year. section 8.1
  • Cluster labels can identify groups of companies with similar exploratory results, including a group associated with higher returns. section 8.1.2

A next-day price target

A stock table can use Open, High, Low, Close, and Volume as features, then create a Target column from the next day’s Close. A random forest trains on earlier rows, predicts held-out rows, and compares predictions with actual prices using RMSE and a plot.

How Investing for Programmers covers it

How deep it goes
Explains labels, features, dataset structure, and model training, while deferring detailed feature-selection challenges.
Examples
Uses stock directions, returns, company clusters, next-day prices, and a random-forest prediction table.
What it assumes
Assumes measurable financial observations and teaches the distinction between features, identifiers, labels, and outcomes.
What you can do after
Build it from scratch by assembling features and targets, training a supervised model, and comparing predictions with held-out outcomes.
How it connects
Connects supervised learning with unsupervised learning, classification, regression, features, clusters, and analytical datasets.

Also explained in

Compare how 6 books explain labeled data →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Investing for Programmers. The section links point to the parts of the book it draws on.