AI Hosting & Deployment
Monitoring & Cost Optimization
This lesson covers monitoring and cost optimization in AI, including how to check a system's live performance and trigger alerts, and how to optimize costs by reducing computational resources. We will also explore how to save and load models, and how to optimize hyperparameters.
Why It Matters
Monitoring and cost optimization are crucial in AI as they help ensure a system's performance and efficiency. By monitoring a system's live performance, we can identify issues before they become major problems. Additionally, optimizing costs helps reduce waste and save resources, which is especially important in AI where computational resources can be expensive.
Key Points
Key Concepts
A technique used to escape plateaus in optimization problems by keeping a list of recently visited states and forbidding the algorithm to return to those states.
A technique used to escape plateaus in optimization problems by randomly perturbing the current assignment.
A technique used to concentrate the search on the important constraints by giving them a numeric weight.
A search algorithm that uses a heuristic function to guide the search towards the goal state.
Code Examples
Saving a model using joblib
import joblib joblib.dump(final_model, "my_california_housing_model.pkl")
Loading a model using joblib
import joblib final_model = joblib.load("my_california_housing_model.pkl")