');
function adjustReadingListIcon(isInReadingList){
$readingListToggle.toggleClass("fa-plus", !isInReadingList);
$readingListToggle.toggleClass("fa-check", isInReadingList);
var tooltipMessage = isInReadingList ? "edit in reading lists" : "add to reading list";
$readingListToggle.attr("title", tooltipMessage);
$readingListToggle.attr("data-original-title", tooltipMessage);
}
$.ajax({
url: "/readingList/isInReadingList",
data: {
productId: 1538
}
}).done(function (data) {
adjustReadingListIcon(data && data.hasProductInReadingList);
}).catch(function(e){
console.log(e);
adjustReadingListIcon(false);
});
$readingListToggle.on("click", function(){
if(codePromise == null){ showToast() }
loadCode().then(function(store){
store.requestReadingListSpecificationForProduct({
id: window.readingListsServerVars.externalId,
manningId: window.readingListsServerVars.productId,
title: window.readingListsServerVars.title
});
ReadingLists.ReactDOM.render(
ReadingLists.React.createElement(ReadingLists.ManningOnlineReadingListModal, {
store: store,
}),
document.getElementById("reading-lists-modal")
);
}).catch(function(e){
console.log("Error loading code reading list code");
});
});
var codePromise
var readingListStore
function loadCode(){
if(codePromise) { return codePromise }
return codePromise = new Promise(function (resolve, reject){
$.getScript(window.readingListsServerVars.libraryLocation).done(function(){
hideToast()
readingListStore = new ReadingLists.ReadingListStore(
new ReadingLists.ReadingListProvider(
new ReadingLists.ReadingListWebProvider(
ReadingLists.SourceApp.marketplace,
getDeploymentType()
)
)
);
readingListStore.onReadingListChange(handleChange);
readingListStore.onReadingListModalChange(handleChange);
resolve(readingListStore);
}).catch(function(){
hideToast();
console.log("Error downloading reading lists source");
$readingListToggle.css("display", "none");
reject();
});
});
}
function handleChange(){
if(readingListStore != null) {
adjustReadingListIcon(readingListStore.isInAtLeastOneReadingList({
id: window.readingListsServerVars.externalId,
manningId: window.readingListsServerVars.productId
}));
}
}
var $readingListToast = $("#reading-list-toast");
function showToast(){
$readingListToast.css("display", "flex");
setTimeout(function(){
$readingListToast.addClass("shown");
}, 16);
}
function hideToast(){
$readingListToast.removeClass("shown");
setTimeout(function(){
$readingListToast.css("display", "none");
}, 150);
}
function getDeploymentType(){
switch(window.readingListsServerVars.deploymentType){
case "development":
case "test":
return ReadingLists.DeploymentType.dev;
case "qa":
return ReadingLists.DeploymentType.qa;
case "production":
return ReadingLists.DeploymentType.prod;
case "docker":
return ReadingLists.DeploymentType.docker;
default:
console.error("Unknown deployment environment, defaulting to production");
return ReadingLists.DeploymentType.prod;
}
}
});
}
});
prerequisites
intermediate Python • basics of scikit-learn • basics of pandas • basics of data science
skills learned
using machine learning to analyze and visualize location-based and time dependent data to make predictions • interactive data visualization • evaluating risks of bias and discrimination in production models
Roman Yurchak
5 weeks · 5-7 hours per week · INTERMEDIATE
A big city receives thousands of daily calls to its emergency services, reporting everything from illegal parking to life-threatening emergencies. In this liveProject, you’ll take on the role of a data scientist called in to advise on how the city can better allocate resources for these safety events. Your challenge is to create a machine learning model that can predict when and where different emergencies will occur. To do this, you’ll analyze data to identify trends, build and enhance a predictive model, and make your model explainable with model interpretability tools. You’ll also perform checks to ensure that the model won’t lead to bias or discrimination, and tweak your model so it can account for major lockdown events such as a pandemic.
This project is designed for learning purposes and is not a complete, production-ready application or solution.
liveProject mentor Hadrien Lacroix shares what he likes about the Manning liveProject platform.
project
$49.99
$37.49
you save $12.50 (25%)
with subscription
$24.99
project author
Roman Yurchak
Roman Yurchak is a Data Scientist in Paris, who works as a consultant for companies designing machine learning systems. He is also a core developer at the scikit-learn library. In the past, during his PhD at Ecole Polytechnique, he worked on predictive modeling in plasma physics.
prerequisites
This liveProject is for data scientists and data engineers, and software engineers looking to break into machine learning. To begin this liveProject, you will need to be familiar with:
TOOLS
Intermediate Python
Basics of pandas
Basics of scikit-learn
Basics of Jupyter notebook
TECHNIQUES
Basics of data science
Basics of data visualization
features
Self-paced
You choose the schedule and decide how much time to invest as you build your project.
Project roadmap
Each project is divided into several achievable steps.
Get Help
While within the liveProject platform, get help from other participants and our expert mentors.
Compare with others
For each step, compare your deliverable to the solutions by the author and other participants.
book resources
Get full access to select books for 90 days. Permanent access to excerpts from Manning products are also included, as well as references to other resources.
related titles
related titles
choose your plan
pro
monthly
annual
$24.99
$249.99
only $20.83 per month
access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
choose another free product every time you renew
choose twelve free products per year
exclusive 50% discount on all purchases
Predicting Urban Events with scikit-learn project for free
team
monthly
annual
$49.99
$399.99
only $33.33 per month
five seats for your team
access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
choose another free product every time you renew
choose twelve free products per year
exclusive 50% discount on all purchases
Predicting Urban Events with scikit-learn project for free