liveBook · Manning

Continuous improvement

As explained in Starting Data Analytics with Generative AI and Python

A feedback loop is a recurring cycle in which information about outcomes is communicated back to participants to guide improvements or decisions.

An analysis rarely becomes useful in one pass. A first request may be vague, a generated chart may answer the wrong question, or a model’s output may be misread. Continuous improvement means using what you learn from each result to make the next request, analysis, or decision better. It works at two levels: refine your own work with an AI assistant, and share feedback among the people who use, maintain, and oversee the AI. section 1.2.1 section 8.4.5

For an analytical task, make the loop concrete:

  • State the business question, relevant data properties, and requirements. Treat the first answer as a starting point, not a finished pipeline. section 1.2.1 section 2.6.2
  • Inspect the proposed method and output. If the answer is too generic or unsuitable, ask about the specific problem and revise the request. section 8.4.2
  • Check whether the result answers the intended question; repeat at any scale, from the overall analysis design to data cleaning or chart formatting. section 1.2.1

Refining a review-score chart

Suppose daily bars make changes in review scores hard to judge. A useful follow-up is: “Show the proportion of each review score by month instead of by day.” The resulting Python workflow converts review dates to monthly periods with `dt.to_period('M')`, groups records by month and score, divides each score count by its month’s total, and plots stacked bars. Inspect the chart before claiming a pattern: low scores spiked in November and December 2016, while a possible spring rise was too weak to pursue without more precise predictive analysis. Generated code can also fail, so run and check it rather than trusting the response alone. section 2.6.2

Conversational AI tools may retain enough context for a follow-up such as “change the grouping to monthly.” With a less context-aware implementation, resupply the earlier request with the new requirements. Check that the model’s context capacity covers the exchange; otherwise, relevant details may not be available for the next answer. section 8.4.2

The wider feedback loop reaches beyond prompts. Users can report whether outputs help decisions, identify edge cases, and flag performance, usability, security, or downtime problems. Developers can report adoption, costs, and risks to management; independent auditors can add an outside assessment. Feedback might prompt a change to testing, infrastructure, or the product roadmap. Regular conversation and recorded conclusions may be more useful than an elaborate feedback system. The aim is not endless revision, but clearer decisions about what to improve—or whether to continue at all. section 8.4.5

How Starting Data Analytics with Generative AI and Python covers it

How deep it goes
Describes prompt revision, output checking, and stakeholder feedback categories rather than a formal improvement algorithm.
Examples
Uses monthly review-score proportions, a cautiously interpreted seasonal signal, and reports of edge cases and technical problems.
What you can do after
Practice/perform it by revising requests after inspecting results and routing observed model problems to the people who can act.
How it connects
Links prompt refinement and context awareness with data quality, time series analysis, model evaluation, and risk mitigation.

Also explained in

Compare how 30 books explain continuous improvement →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Starting Data Analytics with Generative AI and Python. The section links point to the parts of the book it draws on.