Machine Learning Engineer - Subscriptions
ML and AIPosted 6 weeks agofrom Spotify's own hiring page
- Work type
- HybridLondon
- Experience
- Not stated
- Pay
- Not listedUsually £53k a yearML and AI, median, all levels, in the UK (Payscale)
- Posted
- 6 weeks ago
Skills it mentions
Add your skills to see which ones you have.
About the job
At Spotify, our Subscriptions Mission focuses on creating experiences that help listeners discover the value of Spotify, become subscribers, and stay with us for the long term. By combining technology, experimentation, and a deep understanding of our users, we help connect artists and fans while building a sustainable subscription business.
Within the Subscriptions Mission, the Subs Foundational Models Product Area is part of the Subs User Understanding Studio. We build scalable machine learning solutions that personalize the subscriber journey, from conversion through to long-term retention. Working closely with teams across the mission, we develop ML solutions that improve key business metrics, including subscriber growth, monthly active users, and Premium retention.
We're looking for a Machine Learning Engineer to join our Radius squad. You'll take ownership of impactful ML initiatives, develop and improve production models, and contribute to the foundational ML capabilities that power personalization and optimization across Subscriptions.
Your work could include reducing friction for Free users while balancing retention and conversion, improving payment experiences to reduce Premium churn, or developing reusable models such as subscriber embeddings that support multiple products and use cases.
What You'll Do
- Lead multi-week ML initiatives end to end, from translating business requirements into technical specifications to shipping models and measuring their impact on subscriber metrics
- Own components of our ML systems, making independent technical trade-offs and keeping them observable, reliable, and well documented
- Collaborate with a multi-functional agile team spanning user research, design, data science, product management, and engineering to build new product features that advance our mission to connect artists and fans in personalised and relevant ways
- Prototype new approaches and productionise solutions at scale for our hundreds of millions of active users
- Help drive optimisation, testing, and tooling to improve quality
- Unblock and share context with your teammates to raise the whole squad's velocity
- Use AI-assisted engineering to move faster and remove repetitive toil, while owning the quality of everything you ship
- Partner closely with senior and staff ML engineers, and be part of an active group of machine learning practitioners in your mission and across Spotify
Who You Are
- You have experience building and shipping production ML systems
- You have a strong background in machine learning, theory, and practice
- You are comfortable explaining the intuition and assumptions behind ML concepts
- You can own well-scoped ML projects end to end and make sound technical decisions independently
- You communicate clearly with stakeholders and can explain the reasoning behind your technical choices
- You are curious, open to feedback, and keen to grow your scope over time
- You have hands-on experience implementing and maintaining production ML systems in Python, Scala, or similar languages, including model development with PyTorch
- You are experienced with building data pipelines, and you are self-sufficient in getting the data you need to build and evaluate your models
- You preferably have experience with cloud platforms like GCP or AWS
- You care about agile software processes, data development, reliability, and focused experimentation
- You have a desire to drive business impact
Where You'll Be
-
We offer you the flexibility to work where you work best! For this role, you can be within the EMEA region as long as we have a work location
-
This team operates within the Central European and GMT time zone for collaboration.
Interested?Machine Learning Engineer - Subscriptions at Spotify
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on Machine learning, Python, Scala and 4 more
Interview questions for this job
For the skills the ad mentions: Machine learning, Python, Scala, PyTorch, ETL pipelines, Google Cloud and AWS.
Difference between isna() and isnull() in pandasMachine learning
Pandas
isna()vsisnull().I'm assuming you are referring to
pandas.DataFrame.isna()vspandas.DataFrame.isnull(). Not to confuse withpandas.isnull(), which in contrast to the two above isn't a method of the DataFrame class.These two DataFrame methods do exactly the same thing! Even their docs are identical. You can even confirm this in pandas' code.
But why have two methods with different names do the same thing?
This is because pandas' DataFrames are based on R's DataFrames. In R
naandnullare two separate things. Read this post for more information.However, in python, pandas is built on top of numpy, which has neither
nanornullvalues. Instead numpy hasNaNvalues (which stands for "Not a Number"). Consequently, pandas also usesNaNvalues.In short
To detect
NaNvalues numpy usesnp.isnan().To detect
NaNvalues pandas uses either.isna()or.isnull().
TheNaNvalues are inherited from the fact that pandas is built on top of numpy, while the two functions' names originate from R's DataFrames, whose structure and functionality pandas tried to mimic.
From Data Science Stack Exchange: asked by Vaibhav Thakur, answered by Djib2011 (CC BY-SA 4.0)
My program is too slow. How do I speed it up?Python
That’s a tough one, in general. First, here is a list of things to remember before diving further:
Performance characteristics vary across Python implementations. This FAQ focuses on CPython.
Behaviour can vary across operating systems, especially when talking about I/O or multi-threading.
You should always find the hot spots in your program before attempting to optimize any code (see the
profilemodule).Writing benchmark scripts will allow you to iterate quickly when searching for improvements (see the
timeitmodule).It is highly recommended to have good code coverage (through unit testing or any other technique) before potentially introducing regressions hidden in sophisticated optimizations.
That being said, there are many tricks to speed up Python code. Here are some general principles which go a long way towards reaching acceptable performance levels:
Making your algorithms faster (or changing to faster ones) can yield much larger benefits than trying to sprinkle micro-optimization tricks all over your code.
Use the right data structures. Study documentation for the Built-in Types and the
collectionsmodule.When the standard library provides a primitive for doing something, it is likely (although not guaranteed) to be faster than any alternative you may come up with. This is doubly true for primitives written in C, such as builtins and some extension types. For example, be sure to use either the
list.sort()built-in method or the relatedsorted()function to do sorting (and see the Sorting Techniques for examples of moderately advanced usage).Abstractions tend to create indirections and force the interpreter to work more. If the levels of indirection outweigh the amount of useful work done, your program will be slower. You should avoid excessive abstraction, especially under the form of tiny functions or methods (which are also often detrimental to readability).
If you have reached the limit of what pure Python can allow, there are tools to take you further away. For example, Cython can compile a slightly modified version of Python code into a C extension, and can be used on many different platforms. Cython can take advantage of compilation (and optional type annotations) to make your code significantly faster than when interpreted. If you are confident in your C programming skills, you can also write a C extension module yourself.
See also
The wiki page devoted to performance tips.
From Python Frequently Asked Questions (PSF License Version 2)
Where does Scala look for implicits?Scala
Types of Implicits
Implicits in Scala refers to either a value that can be passed "automatically", so to speak, or a conversion from one type to another that is made automatically.
Implicit Conversion
Speaking very briefly about the latter type, if one calls a method
mon an objectoof a classC, and that class does not support methodm, then Scala will look for an implicit conversion fromCto something that does supportm. A simple example would be the methodmaponString:"abc".map(_.toInt)Stringdoes not support the methodmap, butStringOpsdoes, and there's an implicit conversion fromStringtoStringOpsavailable (seeimplicit def augmentStringonPredef).Implicit Parameters
The other kind of implicit is the implicit parameter. These are passed to method calls like any other parameter, but the compiler tries to fill them in automatically. If it can't, it will complain. One can pass these parameters explicitly, which is how one uses
breakOut, for example (see question aboutbreakOut, on a day you are feeling up for a challenge).In this case, one has to declare the need for an implicit, such as the
foomethod declaration:def foo[T](t: T)(implicit integral: Integral[T]) {println(integral)}View Bounds
There's one situation where an implicit is both an implicit conversion and an implicit parameter. For example:
def getIndex[T, CC](seq: CC, value: T)(implicit conv: CC => Seq[T]) = seq.indexOf(value) getIndex("abc", 'a')The method
getIndexcan receive any object, as long as there is an implicit conversion available from its class toSeq[T]. Because of that, I can pass aStringtogetIndex, and it will work.Behind the scenes, the compiler changes
seq.IndexOf(value)toconv(seq).indexOf(value).This is so useful that there is syntactic sugar to write them. Using this syntactic sugar,
getIndexcan be defined like this:def getIndex[T, CC <% Seq[T]](seq: CC, value: T) = seq.indexOf(value)This syntactic sugar is described as a view bound, akin to an upper bound (
CC <: Seq[Int]) or a lower bound (T >: Null).Context Bounds
Another common pattern in implicit parameters is the type class pattern. This pattern enables the provision of common interfaces to classes which did not declare them. It can both serve as a bridge pattern -- gaining separation of concerns -- and as an adapter pattern.
The
Integralclass you mentioned is a classic example of type class pattern. Another example on Scala's standard library isOrdering. There's a library that makes heavy use of this pattern, called Scalaz.This is an example of its use:
def sum[T](list: List[T])(implicit integral: Integral[T]): T = { import integral._ // get the implicits in question into scope list.foldLeft(integral.zero)(_ + _) }There is also syntactic sugar for it, called a context bound, which is made less useful by the need to refer to the implicit. A straight conversion of that method looks like this:
def sum[T : Integral](list: List[T]): T = { val integral = implicitly[Integral[T]] import integral._ // get the implicits in question into scope list.foldLeft(integral.zero)(_ + _) }Context bounds are more useful when you just need to pass them to other methods that use them. For example, the method
sortedonSeqneeds an implicitOrdering. To create a methodreverseSort, one could write:def reverseSort[T : Ordering](seq: Seq[T]) = seq.sorted.reverseBecause
Ordering[T]was implicitly passed toreverseSort, it can then pass it implicitly tosorted.Where do Implicits come from?
Read the rest at the sourceFrom Stack Overflow: asked by Daniel C. Sobral, answered by Daniel C. Sobral (CC BY-SA 4.0)
Evaluating pytorch models: `with torch.no_grad` vs `model.eval()`PyTorch
TL;DR:
Use both. They do different things, and have different scopes.
with torch.no_grad- disables tracking of gradients inautograd.model.eval()changes theforward()behaviour of the module it is called upon- eg, it disables dropout and has batch norm use the entire population statistics
with torch.no_gradThe
torch.autograd.no_graddocumentation says:Context-manager that disabled [sic] gradient calculation.
Disabling gradient calculation is useful for inference, when you are sure that you will not call
Tensor.backward(). It will reduce memory consumption for computations that would otherwise haverequires_grad=True. In this mode, the result of every computation will haverequires_grad=False, even when the inputs haverequires_grad=True.model.eval()The
nn.Module.evaldocumentation says:Sets the module in evaluation mode.
This has any effect only on certain modules. See documentations of particular modules for details of their behaviors in training/evaluation mode, if they are affected, e.g.
Dropout,BatchNorm, etc.The creator of pytorch said the documentation should be updated to suggest the usage of both, and I raised the pull request.
From Stack Overflow: asked by Tom Hale, answered by Tom Hale (CC BY-SA 4.0)
Please explain in detail data warehousing architectureETL pipelines
The source layer, where data is collected from various sources and stored in staging tables. The integration layer, where data is cleansed, transformed, and combined into a single format for loading into the data warehouse. The storage layer, where the data is stored in a central repository or data warehouse. The access layer, where business intelligence tools and applications can retrieve the data for analysis and reporting.
From Tech Vault (Apache 2.0)
Why do you want to work for us?Behavioural
Employers want to see that you have a genuine interest in working for them by asking questions like:
- what do you know about our company?
- why do you think you're a good fit for our company?
- why do you want to work for us?
To prepare for questions about the employer, you need to research the company. You should look at their website and 'about us' pages to find out more about their products, services and values.
Show what you've learned about the company throughout the interview.From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Senior Data ScientistMubi, London, hybridToday
- AI Inference EngineerBaseten, Remote, LondonYesterday
- Senior Machine Learning Scientist, Reasoning Systems (Drug Discovery)Relationrx, London, on-siteYesterday
- Staff Machine Learning EngineerDeliveroo, London, hybridYesterday
More like this: Machine learning and AI jobs in London (281), Jobs in London (4,438) and Machine learning and AI jobs in the UK (484)

