Spotify81 open jobs

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
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on Machine learning, Python, Scala and 4 more

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.

Spotify is an equal opportunity employer. You are welcome at Spotify for who you are, no matter where you come from, what you look like, or what’s playing in your headphones. Our platform is for everyone, and so is our workplace. The more voices we have represented and amplified in our business, the more we will all thrive, contribute, and be forward-thinking! So bring us your personal experience, your perspectives, and your background. It’s in our differences that we will find the power to keep revolutionizing the way the world listens.   At Spotify, we are passionate about inclusivity and making sure our entire recruitment process is accessible to everyone. We have ways to request reasonable accommodations during the interview process and help assist in what you need. If you need accommodations at any stage of the application or interview process, please let us know - we’re here to support you in any way we can.  

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.

525 questions
  • Difference between isna() and isnull() in pandasMachine learning

    Pandas isna() vs isnull().

    I'm assuming you are referring to pandas.DataFrame.isna() vs pandas.DataFrame.isnull(). Not to confuse with pandas.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 na and null are two separate things. Read this post for more information.

    However, in python, pandas is built on top of numpy, which has neither na nor null values. Instead numpy has NaN values (which stands for "Not a Number"). Consequently, pandas also uses NaN values.

    In short

    • To detect NaN values numpy uses np.isnan().

    • To detect NaN values pandas uses either .isna() or .isnull().
      The NaN values 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 profile module).

    • Writing benchmark scripts will allow you to iterate quickly when searching for improvements (see the timeit module).

    • 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 collections module.

    • 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 related sorted() 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 m on an object o of a class C, and that class does not support method m, then Scala will look for an implicit conversion from C to something that does support m. A simple example would be the method map on String:

    "abc".map(_.toInt)
    

    String does not support the method map, but StringOps does, and there's an implicit conversion from String to StringOps available (see implicit def augmentString on Predef).

    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 about breakOut, 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 foo method 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 getIndex can receive any object, as long as there is an implicit conversion available from its class to Seq[T]. Because of that, I can pass a String to getIndex, and it will work.

    Behind the scenes, the compiler changes seq.IndexOf(value) to conv(seq).indexOf(value).

    This is so useful that there is syntactic sugar to write them. Using this syntactic sugar, getIndex can 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 Integral class you mentioned is a classic example of type class pattern. Another example on Scala's standard library is Ordering. 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 sorted on Seq needs an implicit Ordering. To create a method reverseSort, one could write:

    def reverseSort[T : Ordering](seq: Seq[T]) = seq.sorted.reverse
    

    Because Ordering[T] was implicitly passed to reverseSort, it can then pass it implicitly to sorted.

    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 in autograd.
    • model.eval() changes the forward() behaviour of the module it is called upon
    • eg, it disables dropout and has batch norm use the entire population statistics

    with torch.no_grad

    The torch.autograd.no_grad documentation 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 have requires_grad=True. In this mode, the result of every computation will have requires_grad=False, even when the inputs have requires_grad=True.

    model.eval()

    The nn.Module.eval documentation 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

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)