Supervised vs. Unsupervised Methods in Machine Learning
The split is not about which algorithm is fashionable. It is about whether each example already has an answer.
If the table carries a label, the task is supervised: learn the map from the other columns to that label. If it does not, the task is unsupervised: look for structure the table never names. People sometimes list a third family, reinforcement learning, where the signal is a reward collected over a sequence of actions. A static bioactivity table has no such loop. This note stays with the two tasks that table can actually support.
Read the row before you name the task
Take a chemical table with one molecule per line and columns such as molecule_chembl_id, smiles, standard_value, and class.
A row is one observation. The ChEMBL ID and the SMILES string identify that molecule. They are columns, but they are not ready-made features. A model needs numbers, and a SMILES string becomes numbers only after you compute descriptors or a fingerprint.
standard_value is already a number. If that number is what you are trying to predict, the task is regression. class is a category. In the labelling used on the acetylcholinesterase set, 1 means active and 0 means inactive. If that category is what you are trying to predict, the task is classification.
Calling every column a feature hides this. The features are the numeric columns you show the model. The label is the column you withhold. The identifier is neither.
Supervised learning
The model sees pairs: inputs, and the answer that went with them. After training, it assigns an answer to a row whose answer was hidden.
Two task types cover most bioactivity models.
- Classification predicts a discrete label. Active or inactive, after you have defined those words with a cutoff, is classification.
- Regression predicts a continuous value. Predicting the IC50 or the pIC50 itself, rather than a class derived from it, is regression.
The cutoff that created class is part of the supervised problem. Change the cutoff and you have changed the labels, even if every SMILES string stays the same.
Unsupervised learning
Here the model never sees an answer column. It can group rows, compress them, or estimate where the points sit densely. It cannot be “right” in the sense of matching a class you never provided.
Three techniques are the ones that show up on a chemical table.
- Clustering groups points by similarity. On molecules, that is often a series of close analogs, or a point that sits in no series.
- Dimensionality reduction draws a lower-dimensional map of the same rows. The map is a view of the representation you chose, not a photograph of chemical space.
- Density estimation asks where the observations concentrate, which is also how isolated points become visible.
Association rules, known in retail as market-basket analysis, ask which items occur together in a basket. A single-molecule bioactivity table is not a basket. That method belongs to a different kind of data.
Evaluation is the uncomfortable part. With no held-out label, accuracy is the wrong word. What you can check is whether the grouping is stable under a second run or a second sample, and whether it lines up with a hypothesis you did not feed into the fit. Neither check turns the output into a supervised prediction.
Bottom line
Supervised learning requires a label on the training rows. Unsupervised learning starts without one. Classification and regression are the supervised pair. Clustering, projection, and density estimation are the unsupervised ones you will actually use on a compound table.
Choose the family from the table in front of you. If the answer column is missing, no change of algorithm will create it.