Data Scientist - Algorithms, Mapping
ML and AIPosted over 2 months agofrom Lyft's own hiring page
- Work type
- On-siteToronto
- Experience
- 3+ years
- Pay
- Not listedUsually C$98k a yearML and AI, median at 1–4 years, in Canada (Payscale)
- Posted
- Over 2 months agoOpen 3 months
Skills it mentions
Add your skills to see which ones you have.
About the job
At Lyft, our purpose is to serve and connect. We aim to achieve this by cultivating a work environment where all team members belong and have the opportunity to thrive.
As a Data Scientist on the Mapping team, you will collaborate with our world class team of scientists, engineers, product managers, and designers to grow and improve the quality of recommended routes and accuracy of our travel time estimations. We're looking for a passionate, driven Data Scientist who is excited to dive into our geospatial, behavioural and mobility data, and build a best-in-class mapping product that provides safe, efficient, and seamless navigation for our rideshare drivers.
Data Science is at the heart of Lyft’s products and decision-making. You will leverage data and rigorous, analytical thinking to shape our mapping products and make business decisions that put our customers first. The Mapping team serves models and systems that determine the most efficient routes, fastest travel estimates and process real-time map data signals to detect traffic, closures and slowdowns. Working with our business and analytics partners, the team owns tools to ensure Lyft offers routes that our users trust. This will involve identifying and scoping opportunities, recommending technical solutions, designing experiments, and measuring the impact of new features. You will help us solve some of the most impactful problems in Mapping, including:
- How do we accurately predict acute and chronic traffic conditions?
- How do we improve the recommendations of our routing algorithms?
- How do we keep our travel estimation promises to our riders and drivers?
- How do we benchmark and measure the success of our services?
Responsibilities:
- Own the complete lifecycle of algorithmic solutions from problem formulation, data exploration, and feature engineering to deployment, monitoring, and iteration
- Prioritize and lead deep dives into our data to uncover new product and business opportunities
- Partner closely with Engineering to build and scale production-grade ML systems, real-time inference services, batch pipelines, and feature stores
- Design, implement, and analyze different types of experiments, and facilitate and foster data-driven and informed decision making and prioritization
- Drive scientific excellence by introducing modern techniques in ML, optimization, reinforcement learning, or graph-based methods to unlock new product capabilities
- Establish metrics that measure the health of our products, as well as rider and driver experience
- Translate complex business challenges into concrete algorithmic solutions in close collaboration with Product, Engineering, Operations, and Science teams
Experience:
- Advanced degree in a quantitative field such as statistics, physics, economics, operations research, neuroscience, or engineering, or relevant work experience
- 3+ years hands-on experience in a data science or machine learning role working with production machine learning models and optimization systems
- Passion for solving unstructured and non-standard mathematical problems
- Experience independently driving multi-project algorithmic scopes and navigating technical ambiguity from ideation to delivery
- Experience with machine learning models in production, making practical tradeoffs among algorithm sophistication, compute complexity, maintainability, and extensibility in production environments
- Strong oral and written communication skills, and ability to collaborate with and influence cross-functional partners
- Working knowledge of modern machine learning frameworks and distributed computing systems, including PyTorch, TensorFlow, Ray, Spark, etc.
Benefits:
- Extended health and dental coverage options, along with life insurance and disability benefits
- Mental health benefits
- Family building benefits
- Child care and pet benefits
- Access to a Lyft funded Health Care Savings Account
- RRSP plan with company match to help save for your future
- In addition to provincial observed holidays, salaried team members are covered under Lyft's flexible paid time off policy. The policy allows team members to take off as much time as they need (with manager approval). Hourly team members get 15 days paid time off, with an additional day for each year of service
- Lyft is proud to support new parents with 18 weeks of paid time off, designed as a top-up plan to complement provincial programs. Biological, adoptive, and foster parents are all eligible.
- Subsidized commuter benefits and Lyft ride credits
Lyft is committed to creating an inclusive workforce that fosters belonging. Lyft believes that every person has a right to equal employment opportunities without discrimination because of race, ancestry, place of origin, colour, ethnic origin, citizenship, creed, sex, sexual orientation, gender identity, gender expression, age, marital status, family status, disability, pardoned record of offences, or any other basis protected by applicable law or by Company policy. Lyft also strives for a healthy and safe workplace and strictly prohibits harassment of any kind. Accommodation for persons with disabilities will be provided upon request in accordance with applicable law during the application and hiring process. Please contact your recruiter if you wish to make such a request.
Lyft highly values having employees working in-office to foster a collaborative work environment and company culture. This role will be in-office on a hybrid schedule — Team Members will be expected to work in the office at least 3 days per week, including on Mondays, Wednesdays, and Thursdays. Lyft considers working in the office at least 3 days per week to be an essential function of this hybrid role. Your recruiter can share more information about the various in-office perks Lyft offers. Additionally, hybrid roles have the flexibility to work from anywhere for up to 4 weeks per year. #Hybrid
The expected base pay range for this position in the Toronto area is CAD $108,000 - CAD $135,000, not inclusive of potential equity offering, bonus or benefits. Salary ranges are dependent on a variety of factors, including qualifications, experience and geographic location. Your recruiter can share more information about the salary range specific to your working location and other factors during the hiring process.
Lyft may use artificial intelligence to screen applicants, however, Lyft employees make the ultimate selection and hiring decisions.
This job fills an existing vacancy.
Interested?Data Scientist - Algorithms, Mapping at Lyft
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on Machine learning, Statistics, PyTorch and 2 more
Interview questions for this job
For the skills the ad mentions: Machine learning, Statistics, PyTorch, TensorFlow and Spark.
Bagging, boosting and stacking in machine learningMachine learning
All three are so-called "meta-algorithms": approaches to combine several machine learning techniques into one predictive model in order to decrease the variance (bagging), bias (boosting) or improving the predictive force (stacking alias ensemble).
Every algorithm consists of two steps:
Producing a distribution of simple ML models on subsets of the original data.
Combining the distribution into one "aggregated" model.
Here is a short description of all three methods:
Bagging (stands for Bootstrap Aggregating) is a way to decrease the variance of your prediction by generating additional data for training from your original dataset using combinations with repetitions to produce multisets of the same cardinality/size as your original data. By increasing the size of your training set you can't improve the model predictive force, but just decrease the variance, narrowly tuning the prediction to expected outcome.
Boosting is a two-step approach, where one first uses subsets of the original data to produce a series of averagely performing models and then "boosts" their performance by combining them together using a particular cost function (=majority vote). Unlike bagging, in the classical boosting the subset creation is not random and depends upon the performance of the previous models: every new subsets contains the elements that were (likely to be) misclassified by previous models.
Stacking is a similar to boosting: you also apply several models to your original data. The difference here is, however, that you don't have just an empirical formula for your weight function, rather you introduce a meta-level and use another model/approach to estimate the input together with outputs of every model to estimate the weights or, in other words, to determine what models perform well and what badly given these input data.
Here is a comparison table:
As you see, these all are different approaches to combine several models into a better one, and there is no single winner here: everything depends upon your domain and what you're going to do. You can still treat stacking as a sort of more advances boosting, however, the difficulty of finding a good approach for your meta-level makes it difficult to apply this approach in practice.
Short examples of each:
- Bagging: Ozone data.
- Boosting: is used to improve optical character recognition (OCR) accuracy.
- Stacking: is used in classification of cancer microarrays in medicine.
From Cross Validated: asked by Bucsa Lucian, answered by Alexander Galkin (CC BY-SA 3.0)
What happens if the explanatory and response variables are sorted independently before regression?Statistics
I'm not sure what your boss thinks "more predictive" means. Many people incorrectly believe that lower $p$-values mean a better / more predictive model. That is not necessarily true (this being a case in point). However, independently sorting both variables beforehand will guarantee a lower $p$-value. On the other hand, we can assess the predictive accuracy of a model by comparing its predictions to new data that were generated by the same process. I do that below in a simple example (coded with
R).options(digits=3) # for cleaner output set.seed(9149) # this makes the example exactly reproducible B1 = .3 N = 50 # 50 data x = rnorm(N, mean=0, sd=1) # standard normal X y = 0 + B1*x + rnorm(N, mean=0, sd=1) # cor(x, y) = .31 sx = sort(x) # sorted independently sy = sort(y) cor(x,y) # [1] 0.309 cor(sx,sy) # [1] 0.993 model.u = lm(y~x) model.s = lm(sy~sx) summary(model.u)$coefficients # Estimate Std. Error t value Pr(>|t|) # (Intercept) 0.021 0.139 0.151 0.881 # x 0.340 0.151 2.251 0.029 # significant summary(model.s)$coefficients # Estimate Std. Error t value Pr(>|t|) # (Intercept) 0.162 0.0168 9.68 7.37e-13 # sx 1.094 0.0183 59.86 9.31e-47 # wildly significant u.error = vector(length=N) # these will hold the output s.error = vector(length=N) for(i in 1:N){ new.x = rnorm(1, mean=0, sd=1) # data generated in exactly the same way new.y = 0 + B1*x + rnorm(N, mean=0, sd=1) pred.u = predict(model.u, newdata=data.frame(x=new.x)) pred.s = predict(model.s, newdata=data.frame(x=new.x)) u.error[i] = abs(pred.u-new.y) # these are the absolute values of s.error[i] = abs(pred.s-new.y) # the predictive errors }; rm(i, new.x, new.y, pred.u, pred.s) u.s = u.error-s.error # negative values means the original # yielded more accurate predictions mean(u.error) # [1] 1.1 mean(s.error) # [1] 1.98 mean(u.s<0) # [1] 0.68 windows() layout(matrix(1:4, nrow=2, byrow=TRUE)) plot(x, y, main="Original data") abline(model.u, col="blue") plot(sx, sy, main="Sorted data") abline(model.s, col="red") h.u = hist(u.error, breaks=10, plot=FALSE) h.s = hist(s.error, breaks=9, plot=FALSE) plot(h.u, xlim=c(0,5), ylim=c(0,11), main="Histogram of prediction errors", xlab="Magnitude of prediction error", col=rgb(0,0,1,1/2)) plot(h.s, col=rgb(1,0,0,1/4), add=TRUE) legend("topright", legend=c("original","sorted"), pch=15, col=c(rgb(0,0,1,1/2),rgb(1,0,0,1/4))) dotchart(u.s, color=ifelse(u.s<0, "blue", "red"), lcolor="white", main="Difference between predictive errors") abline(v=0, col="gray") legend("topright", legend=c("u better", "s better"), pch=1, col=c("blue","red"))The upper left plot shows the original data. There is some relationship between $x$ and $y$ (viz., the correlation is about $.31$.) The upper right plot shows what the data look like after independently sorting both variables. You can easily see that the strength of the correlation has increased substantially (it is now about $.99$). However, in the lower plots, we see that the distribution of predictive errors is much closer to $0$ for the model trained on the original (unsorted) data. The mean absolute predictive error for the model that used the original data is $1.1$, whereas the mean absolute predictive error for the model trained on the sorted data is $1.98$—nearly twice as large. That means the sorted data model's predictions are much further from the correct values. The plot in the lower right quadrant is a dot plot. It displays the differences between the predictive error with the original data and with the sorted data. This lets you compare the two corresponding predictions for each new observation simulated. Blue dots to the left are times when the original data were closer to the new $y$-value, and red dots to the right are times when the sorted data yielded better predictions. There were more accurate predictions from the model trained on the original data $68\%$ of the time.
Read the rest at the sourceFrom Cross Validated: asked by arbitrary user, answered by gung - Reinstate Monica (CC BY-SA 3.0)
Why do we call .detach() before calling .numpy() on a Pytorch Tensor?PyTorch
I think the most crucial point to understand here is the difference between a
torch.tensorandnp.ndarray:
While both objects are used to store n-dimensional matrices (aka "Tensors"),torch.tensorshas an additional "layer" - which is storing the computational graph leading to the associated n-dimensional matrix.So, if you are only interested in efficient and easy way to perform mathematical operations on matrices
np.ndarrayortorch.tensorcan be used interchangeably.However,
torch.tensors are designed to be used in the context of gradient descent optimization, and therefore they hold not only a tensor with numeric values, but (and more importantly) the computational graph leading to these values. This computational graph is then used (using the chain rule of derivatives) to compute the derivative of the loss function w.r.t each of the independent variables used to compute the loss.As mentioned before,
np.ndarrayobject does not have this extra "computational graph" layer and therefore, when converting atorch.tensortonp.ndarrayyou must explicitly remove the computational graph of the tensor using thedetach()command.Computational Graph
From your comments it seems like this concept is a bit vague. I'll try and illustrate it with a simple example.
Consider a simple function of two (vector) variables,xandw:x = torch.rand(4, requires_grad=True) w = torch.rand(4, requires_grad=True) y = x @ w # inner-product of x and w z = y ** 2 # square the inner productIf we are only interested in the value of
z, we need not worry about any graphs, we simply moving forward from the inputs,xandw, to computeyand thenz.However, what would happen if we do not care so much about the value of
z, but rather want to ask the question "what iswthat minimizeszfor a givenx"?
To answer that question, we need to compute the derivative ofzw.r.tw.
How can we do that?
Using the chain rule we know thatdz/dw = dz/dy * dy/dw. That is, to compute the gradient ofzw.r.twwe need to move backward fromzback towcomputing the gradient of the operation at each step as we trace back our steps fromztow. This "path" we trace back is the computational graph ofzand it tells us how to compute the derivative ofzw.r.t the inputs leading toz:z.backward() # ask pytorch to trace back the computation of zWe can now inspect the gradient of
zw.r.tw:w.grad # the resulting gradient of z w.r.t w tensor([0.8010, 1.9746, 1.5904, 1.0408])Note that this is exactly equals to
2*y*x tensor([0.8010, 1.9746, 1.5904, 1.0408], grad_fn=<MulBackward0>)since
dz/dy = 2*yanddy/dw = x.Each tensor along the path stores its "contribution" to the computation:
z tensor(1.4061, grad_fn=<PowBackward0>)Read the rest at the sourceFrom Stack Overflow: asked by Josiah Yoder, answered by Shai (CC BY-SA 4.0)
What's the difference between tf.placeholder and tf.Variable?TensorFlow
In short, you use
tf.Variablefor trainable variables such as weights (W) and biases (B) for your model.weights = tf.Variable( tf.truncated_normal([IMAGE_PIXELS, hidden1_units], stddev=1.0 / math.sqrt(float(IMAGE_PIXELS))), name='weights') biases = tf.Variable(tf.zeros([hidden1_units]), name='biases')tf.placeholderis used to feed actual training examples.images_placeholder = tf.placeholder(tf.float32, shape=(batch_size, IMAGE_PIXELS)) labels_placeholder = tf.placeholder(tf.int32, shape=(batch_size))This is how you feed the training examples during the training:
for step in xrange(FLAGS.max_steps): feed_dict = { images_placeholder: images_feed, labels_placeholder: labels_feed, } _, loss_value = sess.run([train_op, loss], feed_dict=feed_dict)Your
tf.variableswill be trained (modified) as the result of this training.See more at https://www.tensorflow.org/versions/r0.7/tutorials/mnist/tf/index.html. (Examples are taken from the web page.)
From Stack Overflow: asked by J.Doe, answered by Sung Kim (CC BY-SA 3.0)
What does "Stage Skipped" mean in Apache Spark web UI?Spark
Typically it means that data has been fetched from cache and there was no need to re-execute given stage. It is consistent with your DAG which shows that the next stage requires shuffling (
reduceByKey). Whenever there is shuffling involved Spark automatically caches generated data:Shuffle also generates a large number of intermediate files on disk. As of Spark 1.3, these files are preserved until the corresponding RDDs are no longer used and are garbage collected. This is done so the shuffle files don’t need to be re-created if the lineage is re-computed.
From Stack Overflow: asked by Aravind Yarram, answered by zero323 (CC BY-SA 3.0)
Have you ever failed at a task?Behavioural
Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:
- when have you faced a challenging situation?
- can you tell us about a personal achievement at work?
- have you ever taken the initiative?
- have you ever failed at a task?
Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.
If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.
Use the STAR method to help structure your answers.From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Senior Director - Chief Developer and AI AdoptionRoyal Bank of Canada, Toronto, on-siteToday
- Principal AI DeveloperMaintainX, Remote, Toronto +1Yesterday
- Solution Engineer – AI & Digital InnovationCapco, Toronto, on-siteYesterday
- Senior Software Engineer, AIVelocity Global India, Remote, Toronto2 days ago
More like this: Machine learning and AI jobs in Toronto (142), Jobs in Toronto (1,712) and Machine learning and AI jobs in Canada (405)


