concept algorithm in category AI

This is an excerpt from Manning's book Grokking Artificial Intelligence Algorithms.
Algorithms are used for many different solutions. For example, we can enable live video chat across the world through compression algorithms, and we can navigate cities through map applications that use real-time routing algorithms. Even a simple “Hello World” program has many algorithms at play to translate the human-readable programming language into machine code and execute the instructions on the hardware. You can find algorithms everywhere if you look closely enough.
Figure 1.4 A number-guessing-game algorithm flow chart
![]()
The solve function ties everything together and should give you a better idea of the sequence of operations and the overall life cycle of the algorithm. Notice that the algorithm runs for several defined total iterations. The ant colony is also initialized to its starting point at the beginning of each iteration, and a new best ant is determined after each iteration:
Grasping a machine learning life cycle, preparing data, and selecting algorithms

This is an excerpt from Manning's book Zero to AI: A non-technical, hype-free guide to prospering in the AI era.
Anytime we want to evaluate a new house on the market, we can feed its features to the model, and get a prediction about its value on the market. This second step is called inference, and is what makes the model useful for the business because it’s producing estimates on new houses being listed on our platform. Once the model is trained, we can ask Engineers to plug it into our web application, and start answering customers requests as they come in.
In reality, your algorithm performs very poorly, even though it is correct 90% of the time. As you can see, looking at true positives and false negatives is a much more useful strategy to avoid being fooled by high-accuracy performances.
Now, False Positives, False Negatives, True positives and True negatives are absolute metrics. It’s always a good idea to report them to some absolute metric that isn’t sensitive to the number of samples combined. There are two metrics that help us with this, called “precision” and “recall”. Here’s what they tell us:

This is an excerpt from Manning's book Succeeding with AI: How to make AI work for your business.
AI and machine learning (ML) are closely related. ML allows computers to learn an underlying pattern in data on their own, without being programmed with the prior knowledge of those data [17]. Today, in business and industry, most AI projects use algorithms that are (strictly speaking) part of ML.[2] There’s a lot of confusion among the wider public about what ML can do, so if you aren’t an expert in ML, it’s easy to imagine that ML is some magical box that’s given data and somehow produces an impressive result.
2Exceptions are in the field of robotics, which can use algorithms that are traditionally not part of ML but are part of AI as a broader field. The broader field of AI includes not only ML, but also fields of robotics and machine perception [18]. To address the broadest category of projects used in the industry today, the early chapters in this book primarily concentrate on projects using ML.
Historically, AI algorithms were egalitarian with regards to the data they accepted as input. All data was considered equal, and AI algorithms typically trusted all their data equally. While that may have been a reasonable assumption at the time those algorithms were developed, that assumption didn’t age well. Even now, algorithms that can operate with data sources of different veracity are rare. However, having data sources of differing veracity is the rule and not the exception in the industry. This section explains why you’ll typically deal with data of variable correctness, how industry typically deals with data of different veracity, and why this area is worth watching closely.