Trainline38 open jobs

Machine Learning Engineer

ML and AIPosted 13 days agofrom Trainline's own hiring page

Work type
RemoteIn the UK
Experience
Not stated
Pay
Not listedUsually ÂŁ53k a yearML and AI, median, all levels, in the UK (Payscale)
Posted
13 days 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, Statistics, Pandas and 7 more

About the job

About us

At Trainline, our purpose is to empower greener travel choices, connecting people and places. Trainline enables millions of travellers to find and book the best value tickets across carriers, fares, and journey options through our highly rated mobile app, website, and B2B partner channels. 

Great journeys start with Trainline đźš„ 

We’re Europe’s leading independent rail platform, helping millions of travellers find and book the best-value rail and coach journeys across our app, website and partner channels.

Our job is to make the green travel choice the best choice. By building a better train travel experience, we help more people choose rail - creating a positive impact for customers, our business and the planet.

We’re a team of more than 1,000 Trainliners from over 50 nationalities, working across London, Paris, Barcelona, Milan, Edinburgh and Madrid. Now is a brilliant time to join us and help shape the future of travel.

Introducing Machine Learning & AI at Trainline đź‘‹

Machine learning and AI are at the core of how Trainline is transforming travel, helping millions of customers make smarter, more sustainable journeys every day. Our ML models and AI solutions power critical aspects of our platform, including:

  • Advanced search and recommendations capabilities across our mobile and web applications

  • Pricing and routing optimisations to find the best fares for customers

  • Personalised user experiences enhanced by agentic AI

  • Data-driven digital marketing systems

  • AI agents improving customer support

Our machine learning teams own the complete delivery lifecycle from ideation to production. We work closely with stakeholders across the business to expand the understanding and impact of machine learning and AI throughout Trainline.

About The Role

We are looking for Machine Learning Engineers to join our team help shape the future of train travel. You’ll be joining a high-performing, deeply technical community of Machine Learning Engineers, Data Scientists, and Data Engineers to tackle complex problems by combining Trainline’s rich datasets with cutting edge algorithms. What unites our team is an expertise in the field, a love of what we do and the desire to create impactful solutions to support Trainline’s goals of encouraging sustainable travel.

As a part of Trainline you will be joining an environment where learning and development is top priority. You will have the opportunity to work with fellow ML & AI enthusiasts on large-scale production systems, delivering highly impactful products that make a difference to our millions of customers.

As a Machine Learning Engineer at Trainline you will... đźš„

  • Work in cross-functional teams combining data scientists, software, data and machine learning engineers, and product managers

  • Design and deliver machine learning models and/or AI solutions at scale that drive measurable impact for Trainline

  • Own the full end-to-end machine learning delivery lifecycle including data exploration, feature engineering, model selection and tuning, offline and online evaluation, deployments and maintenance

  • Partner with stakeholders to propose innovative data products that leverage Trainline’s extensive datasets and state of the art algorithms

  • Create the tools, frameworks and libraries that enables the acceleration of our ML & AI products delivery and improve our workflows

  • Take an active part in our AI and ML community and foster a culture of rigorous learning and experimentation

We'd love to hear from you if you...🔍

  • Have an advanced degree in Computer Science, Mathematics, Statistics or a similar quantitative discipline

  • Are proficient with Python, including open-source data libraries (e.g Pandas, Numpy, Scikit learn etc.)

  • Have experience productionising machine learning models and/or AI solutions

  • Are an expert in one of predictive modelling, classification, regression, optimisation, NLP algorithms or recommendation systems

  • Have experience with Spark

  • Have knowledge of DevOps technologies such as Docker and Terraform and ML Ops practices and platforms like ML Flow

  • Have experience with agile delivery methodologies and CI/CD processes and tools

  • Have a broad of understanding of data extraction, data manipulation and feature engineering techniques

  • Are familiar with statistical methodologies

  • Have great communication skills

Nice to have:

  • Experience with transport industry and/or geographical information systems (GIS)

  • Experience with cloud infrastructure

  • Experience with Large Language Models (fine tuning, RAG, agents)

  • Experience with graph technology and/or algorithms

More information:

Enjoy fantastic perks like private healthcare & dental insurance, a generous work from abroad policy, 2-for-1 share purchase plans, an EV Scheme to further reduce carbon emissions, extra festive time off, and excellent family-friendly benefits. 

We prioritise career growth with clear career paths, transparent pay bands, personal learning budgets, and regular learning days. Jump on board and supercharge your career from day one! 

We're operating a hybrid model and ask that Trainliners work from the office a minimum of 60% of their time over a 12-week period. We also have a 28-day Work from Abroad policy.

Our values represent the things that matter most to us and what we live and breathe everyday, in everything we do: 

  • đź’­ Think Big - We're building the future of rail 

  • ✔️ Own It - We focus on every customer, partner and journey 

  • 🤝  Travel Together - We're one team 

  • ♻️ Do Good - We make a positive impact 

We know that having a diverse team makes us better and helps us succeed. And we mean all forms of diversity - gender, ethnicity, sexuality, disability, nationality and diversity of thought. That's why we're committed to creating inclusive places to work, where everyone belongs and differences are valued and celebrated.

Interested in finding out more about what it's like to work at Trainline? Why not check us out on LinkedIn, Instagram and Glassdoor! 

Interested?Machine Learning Engineer at Trainline

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, Pandas and 7 more

Interview questions for this job

For the skills the ad mentions: Machine learning, Statistics, Pandas, LLMs and GenAI, Python, NLP, Spark, Docker, Terraform and CI/CD.

855 questions
  • What are deconvolutional layers?Machine learning

    Deconvolution layer is a very unfortunate name and should rather be called a transposed convolutional layer.

    Visually, for a transposed convolution with stride one and no padding, we just pad the original input (blue entries) with zeroes (white entries) (Figure 1).

    In case of stride two and padding, the transposed convolution would look like this (Figure 2):

    All credits for the great visualisations go to

    You can find more visualisations of convolutional arithmetics here.

    From Data Science Stack Exchange: asked by Martin Thoma, answered by David Dao (CC BY-SA 4.0)

  • Relationship between SVD and PCA. How to use SVD to perform PCA?Statistics

    Let the real values data matrix $\mathbf X$ be of $n \times p$ size, where $n$ is the number of samples and $p$ is the number of variables. Let us assume that it is centered, i.e. column means have been subtracted and are now equal to zero.

    Then the $p \times p$ covariance matrix $\mathbf C$ is given by $\mathbf C = \mathbf X^\top \mathbf X/(n-1)$. It is a symmetric matrix and so it can be diagonalized: $$\mathbf C = \mathbf V \mathbf L \mathbf V^\top,$$ where $\mathbf V$ is a matrix of eigenvectors (each column is an eigenvector) and $\mathbf L$ is a diagonal matrix with eigenvalues $\lambda_i$ in the decreasing order on the diagonal. The eigenvectors are called principal axes or principal directions of the data. Projections of the data on the principal axes are called principal components, also known as PC scores; these can be seen as new, transformed, variables. The $j$-th principal component is given by $j$-th column of $\mathbf {XV}$. The coordinates of the $i$-th data point in the new PC space are given by the $i$-th row of $\mathbf{XV}$.

    If we now perform singular value decomposition of $\mathbf X$, we obtain a decomposition $$\mathbf X = \mathbf U \mathbf S \mathbf V^\top,$$ where $\mathbf U$ is a unitary matrix (with columns called left singular vectors), $\mathbf S$ is the diagonal matrix of singular values $s_i$ and $\mathbf V$ columns are called right singular vectors. From here one can easily see that $$\mathbf C = \mathbf V \mathbf S \mathbf U^\top \mathbf U \mathbf S \mathbf V^\top /(n-1) = \mathbf V \frac{\mathbf S^2}{n-1}\mathbf V^\top,$$ meaning that right singular vectors $\mathbf V$ are principal directions (eigenvectors) and that singular values are related to the eigenvalues of covariance matrix via $\lambda_i = s_i^2/(n-1)$. Principal components are given by $\mathbf X \mathbf V = \mathbf U \mathbf S \mathbf V^\top \mathbf V = \mathbf U \mathbf S$.

    To summarize:

    Read the rest at the sourceFrom Cross Validated: asked by amoeba, answered by amoeba (CC BY-SA 4.0)

  • Change column type in pandasPandas

    You have four main options for converting types in pandas:

    1. to_numeric() - provides functionality to safely convert non-numeric types (e.g. strings) to a suitable numeric type. (See also to_datetime() and to_timedelta().)

    2. astype() - convert (almost) any type to (almost) any other type (even if it's not necessarily sensible to do so). Also allows you to convert to categorial types (very useful).

    3. infer_objects() - a utility method to convert object columns holding Python objects to a pandas type if possible.

    4. convert_dtypes() - convert DataFrame columns to the "best possible" dtype that supports pd.NA (pandas' object to indicate a missing value).

    Read on for more detailed explanations and usage of each of these methods.

    1. to_numeric()

    The best way to convert one or more columns of a DataFrame to numeric values is to use pandas.to_numeric().

    This function will try to change non-numeric objects (such as strings) into integers or floating-point numbers as appropriate.

    Basic usage

    The input to to_numeric() is a Series or a single column of a DataFrame.

    >>> s = pd.Series(["8", 6, "7.5", 3, "0.9"]) # mixed string and numeric values
    >>> s
    0      8
    1      6
    2    7.5
    3      3
    4    0.9
    dtype: object
    >>> pd.to_numeric(s) # convert everything to float values
    0    8.0
    1    6.0
    2    7.5
    3    3.0
    4    0.9
    dtype: float64
    

    As you can see, a new Series is returned. Remember to assign this output to a variable or column name to continue using it:

    # convert Series
    my_series = pd.to_numeric(my_series)
    # convert column "a" of a DataFrame
    df["a"] = pd.to_numeric(df["a"])
    

    You can also use it to convert multiple columns of a DataFrame via the apply() method:

    # convert all columns of DataFrame
    df = df.apply(pd.to_numeric) # convert all columns of DataFrame
    # convert just columns "a" and "b"
    df[["a", "b"]] = df[["a", "b"]].apply(pd.to_numeric)
    

    As long as your values can all be converted, that's probably all you need.

    Error handling

    But what if some values can't be converted to a numeric type?

    to_numeric() also takes an errors keyword argument that allows you to force non-numeric values to be NaN, or simply ignore columns containing these values.

    Here's an example using a Series of strings s which has the object dtype:

    >>> s = pd.Series(['1', '2', '4.7', 'pandas', '10'])
    >>> s
    0         1
    1         2
    2       4.7
    3    pandas
    4        10
    dtype: object
    

    Read the rest at the sourceFrom Stack Overflow: asked by user1642513, answered by Alex Riley (CC BY-SA 4.0)

  • Explain how the HyPE technique works in RAG.LLMs and GenAI

    The HyPE (Hypothetical Prompt Embedding) technique improves retrieval accuracy by addressing the semantic mismatch between user queries and document chunks.

    Unlike HyDE, which generates hypothetical answer documents at query time, HyPE precomputes hypothetical questions for each document chunk during the indexing phase. These questions are designed to capture the key concepts in the chunk, transforming retrieval into a "question-to-question" matching process, which reduces latency and improves retrieval.

    From RAG Interview Questions and Answers Hub (Apache 2.0)

  • Is there a scanf() or sscanf() equivalent?Python

    Not as such.

    For simple input parsing, the easiest approach is usually to split the line into whitespace-delimited words using the split() method of string objects and then convert decimal strings to numeric values using int() or float(). split() supports an optional “sep” parameter which is useful if the line uses something other than whitespace as a separator.

    For more complicated input parsing, regular expressions are more powerful than C’s sscanf and better suited for the task.

    From Python Frequently Asked Questions (PSF License Version 2)

  • Why do you think you're a good fit for our company?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)