liveBook · Manning

Machine learning

As explained in Vibe Engineering

Machine learning is the field and set of computational methods in which models learn patterns from data to make predictions or decisions.

Machine learning uses patterns in data to make predictions or decisions. In data science, an LLM can help find datasets and create analysis notebooks, but runnable output is not proof of correctness: flawed logic can still produce plausible numbers and charts. Check results against the data and business context. section 4.0 section 4.1

Choose data for the intended task, not just for convenience:

  • Check that a dataset is available and large enough for the analysis. section 4.1
  • For supervised prediction, check whether a target label is available; for clustering, consider whether the resulting groups have real-world meaning. section 4.1
  • Treat synthetic data cautiously in real-world analysis. Cleaner, controlled records may be useful for demonstrations while offering less meaningful distributions. section 4.1

Drug-price prediction

A drug-price prediction problem can use dosage value and unit, salt name, whether the drug contains multiple salts, and manufacturer name as inputs. Including the manufacturer allows the proposed model to predict prices across companies rather than for just one. section 4.5

Use Case
Dataset A (Indian)
Dataset B (Synthetic)
Exploratory Data Analysis (EDA)
✅ Strong — real distributions, price trends
⚠️ Limited — synthetic distributions
Supervised ML for Prediction
⚠️ Limited (no target label by default)
⚠️ Same — likely no target labels
Clustering / Unsupervised learning
✅ Yes — cluster by manufacturer, composition
⚠️ Yes but less real-world meaning
NLP/Categorization
⚠️ Yes — text fields (names/composition)
⚠️ Yes (names) but synthetic semantics
Recommender systems
⚠️ Possible but needs augmentation
❌ Limited
Benchmarking models / DEMO
⚠️ Possible but raw
✅ Ideal due to cleaner, controlled data
Aspect
Indian Medicine Dataset (A)
Kaggle Medicine Dataset (B)
Source
Scraped real data
Synthetic generated data
Size
~250 K records
~50 K records
Real-world
✅ Yes
❌ No
Cleanliness
⚠️ No (requires cleaning)
✅ Likely
Usability for Research
High
Moderate
ML Power
Good for real analysis
Good for ML practice

Compare a real medicine dataset with a synthetic one across prediction, clustering, categorization, and benchmarking uses. section 4.1

How Vibe Engineering covers it

How deep it goes
Introduces dataset selection and prediction inputs while deferring detailed machine learning and deep learning explanations.
Examples
Compares real and synthetic medicine datasets and specifies drug-price prediction features.
What it assumes
Assumes basic programming knowledge but teaches the necessary machine learning concepts without prior ML experience.
What you can do after
Evaluate/understand dataset suitability and the inputs to a drug-price prediction problem.
How it connects
Connects machine learning with supervised prediction, clustering, exploratory data analysis, and synthetic data.

Also explained in

Compare how 49 books explain machine learning →

Related concepts

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