Machine Learning Scientist, Generative Modelling
ML and AIPosted over 2 months agofrom Relationrx's own hiring page
- Work type
- On-siteLondon
- Experience
- Not stated
- Pay
- Not listedUsually £53k a yearML and AI, median, all levels, in the UK (Payscale)
- Posted
- Over 2 months agoOpen 2 months
Skills it mentions
Add your skills to see which ones you have.
About the job
About Relation
Relation is a sector defining TechBio company developing transformational medicines, with technology at our core. Our ambition is to understand human biology in unprecedented ways, discovering therapies to treat some of life’s most devastating diseases. We leverage single-cell multi-omics from patient tissue, functional assays, and machine learning to drive disease understanding, from cause to cure.
We are scaling rapidly and building a team of exceptional individuals to push the boundaries of drug discovery. You will work in highly interdisciplinary teams where biology, computation, and engineering come together to solve complex problems that have not been solved before. Our state-of-the-art wet and dry labs in the heart of London are designed to accelerate this integration and translate insight into impact.
We are committed to building diverse and inclusive teams. Relation is an equal opportunities employer and does not discriminate on the basis of gender, sexual orientation, marital or civil partnership status, gender reassignment, race, colour, nationality, ethnic or national origin, religion or belief, disability, or age.
By joining Relation, you will help define how medicines are discovered and deliver meaningful impact for patients.
The opportunity
Relation is offering an outstanding opportunity for a Machine Learning Scientist to help build the next generation of generative and predictive models of cellular behaviour. Your work will be central to our mission to understand and control cellular decision-making, enabling novel therapeutic strategies grounded in generative models.
You'll be joining a team with access to cutting-edge multiomic and interventional datasets, advanced computational infrastructure, and deep interdisciplinary expertise. We embrace modern ML tooling, including agentic workflows, to accelerate the pace of research iteration. This is an opportunity to push the boundaries of what generative modelling can achieve in complex, high-dimensional, and noisy real-world systems, and to see your work tested directly in experimental biology.
Day to day, you will
Design and implement generative modelling approaches that learn intervention effects from diverse biological data, including single-cell perturbation experiments.
Develop models that go beyond correlation, focusing on generalisation, counterfactual prediction, and experimental design.
Collaborate with experimental teams to design and validate computational hypotheses via iterative strategies that identify the highest-signal next experiment.
Evaluate models not just for fit, but for causal coherence, mechanistic fidelity, and utility in guiding real-world interventions.
Communicate findings clearly to colleagues and stakeholders from different disciplines.
Professionally, you will have
PhD in ML, statistics, computer science, or a related quantitative field.
Deep expertise in generative modelling.
Strong foundations in probabilistic modelling, representation learning, or neural network architectures for structured or sequential data.
Excellence in Python and familiarity with scalable ML tooling and high-performance computing.
A disciplined approach to model evaluation, with experience designing experiments that go beyond standard benchmarks to test real-world utility.
Willingness and ability to engage deeply with biological data; prior experience with single-cell or perturbational datasets is a strong plus.
Bonus experience:
Track record of impactful publications or open-source contributions in ML.
Experience working in interdisciplinary teams or applying ML in real-world settings.
Personally, you
Are comfortable working in a matrixed environment, balancing multiple stakeholders and contributing effectively across teams.
Take ownership of your work, proactively seek opportunities to contribute, and enable others to do their best work.
Communicate openly and directly, give and receive feedback constructively, and handle challenging conversations with respect.
Actively seek out diverse perspectives, build strong working relationships, and contribute to shared goals across teams.
Embrace challenges with openness and resilience, set high standards for yourself, and strive to deliver meaningful outcomes.
Working Style & Culture at Relation
At Relation, we operate in a matrixed, interdisciplinary environment, where impact is driven through collaboration across scientific, technical, and operational domains. We collaborate, and you will partner with colleagues across multiple teams and projects, contributing your expertise while aligning to shared company priorities. We work together and win together! The patient is waiting!
Recruitment Agencies
Please note that Relation does not accept unsolicited resumes from agencies. Resumes should not be forwarded to our job aliases or employees. Relation will not be liable for any fees associated with unsolicited CVs.
Interested?Machine Learning Scientist, Generative Modelling at Relationrx
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, Deep learning and 2 more
Interview questions for this job
For the skills the ad mentions: Machine learning, Statistics, Deep learning, Networking and Python.
How to interpret the AU ROC score?Machine learningIntermediate
AUC score is the value of Area Under the ROC Curve.
If we assume ROC curve consists of dots, $
(x_1, y_1), (x_2, y_2), \cdots, (x_m,y_m)$, then$
AUC = \frac{1}{2} \sum_{i=1}^{m-1}(x_{i+1}-x_i)\cdot (y_i+y_{i+1})$An excellent model has AUC near to the 1 which means it has good measure of separability. A poor model has AUC near to the 0 which means it has worst measure of separability. When AUC score is 0.5, it means model has no class separation capacity whatsoever.
From Data Science Interviews (CC BY 4.0)
How to understand the drawbacks of K-means?Statistics
While I like David Robinson's answer here a lot, here's some additional critique of k-means.
Clustering non-clustered data
Run k-means on uniform data, and you will still get clusters! It doesn't tell you when the data just does not cluster, and can take your research into a dead end this way.
Sensitive to scale
Rescaling your datasets will completely change results. While this itself is not bad, not realizing that you have to spend extra attention to scaling your data is bad. Scaling factors are extra $d$ hidden parameters in k-means that "default" to 1 and thus are easily overlooked, yet have a major impact (but of course this applies to many other algorithms, too).
This is probably what you referred to as "all variables have the same variance". Except that ideally, you would also consider non-linear scaling when appropriate.
Also be aware that it is only a heuristic to scale every axis to have unit variance. This doesn't ensure that k-means works. Scaling depends on the meaning of your data set. And if you have more than one cluster, you would want every cluster (independently) to have the same variance in every variable, too.
Here is a classic counterexample of data sets that k-means cannot cluster. Both axes are i.i.d. in each cluster, so it would be sufficient to do this in 1 dimension. But the clusters have varying variances, and k-means thus splits them incorrectly.
I don't think this counterexample for k-means is covered by your points:
- All clusters are spherical (i.i.d. Gaussian).
- All axes have the same distribution and thus variance.
- Both clusters have 500 elements each.
Yet, k-means still fails badly (and it gets worse if I increase the variance beyond 0.5 for the larger cluster) But: it is not the algorithm that failed. It's the assumptions, which don't hold. K-means is working perfectly, it's just optimizing the wrong criterion.
Even on perfect data sets, it can get stuck in a local minimum
Below is the best of 10 runs of k-means on the classic A3 data set. This is a synthetic data set, designed for k-means. 50 clusters, each of Gaussian shape, reasonably well separated. Yet, it only with k-means++ and 100 iterations I did get the expected result... (below is 10 iterations of regular k-means, for illustration).
You'll quickly find many clusters in this data set, where k-means failed to find the correct structure. For example in the bottom right, a cluster was broken into three parts. But there is no way, k-means is going to move one of these centroids to an entirely different place of the data set - it's trapped in a local minimum (and this already was the best of 10 runs!)
And there are many of such local minima in this data set. Very often when you get two samples from the same cluster, it will get stuck in a minimum where this cluster remains split, and two other clusters merged instead. Not always, but very often. So you need a lot of iterations to have a lucky pick. With 100 iterations of k-means, I still counted 6 errors, and with 1000 iterations I got this down to 4 errors. K-means++ by the way it weights the random samples, works much better on this data set.
Means are continuous
While you can run k-means on binary data (or one-hot encoded categorical data) the results will not be binary anymore. So you do get a result out, but you may be unable to interpret it in the end, because it has a different data type than your original data.
Hidden assumption: SSE is worth minimizing
This is essentially already present in above answer, nicely demonstrated with linear regression. There are some use cases where k-means makes perfect sense. When Lloyd had to decode PCM signals, he did know the number of different tones, and least squared error minimizes the chance of decoding errors. And in color quantization of imaged, you do minimize color error when reducing the palette, too. But on your data, is the sum of squared deviations a meaningful criterion to minimize?
Read the rest at the sourceFrom Cross Validated: asked by KevinKim, answered by Has QUIT--Anony-Mousse (CC BY-SA 3.0)
Time series prediction using ARIMA vs LSTMDeep learning
Statement 1 is correct, statement 2 is correct, but requires elaboration, and statement 3 is incorrect for seasonal ARIMA:
The following might point you in the right direction but hopefully you'll get a few more answers with more depth in the arena of LSTM.
You mention that you have tried both algorithms and that you are simply trying to figure out which one is better, which leads me to think you may be having more trouble with the data science process and cross validation than with the specifics of the models.
Time series in general:
Time series, in general, are difficult to forecast. If they were easy to forecast then all data scientists would be wealthy, having accurately forecast the value of all of the stocks. The reality is that hedge funds, on average, do not outperform the market and that time series forecasting is typically very poor and applies only to very short durations. The main problems are that there is a lot of noise, there are many hidden influences, models are overly simplistic, influencers do not behave as we think they should, the interplay between linearity and nonlinearity is subtle and confusing, ... ad infinitum.
ARIMA
You are incorrect in your assessment that ARIMA requires stationary time series to forecast on. Non-seasonal ARIMA has three input values to help control for smoothing, stationarity, and forecasting ARIMA(p,d,q), where:
- p is the number of autoregressive terms,
- d is the number of nonseasonal differences needed for stationarity, and
- q is the number of lagged forecast errors in the prediction equation.
By contrast seasonal ARIMA has six input values ARIMA(p,d,q,P,D,Q), where:
- P is the number of seasonal autoregressive terms,
- D is the number of seasonal differences, and
- Q is the number of seasonal moving-average terms.
Subject to the qualifying statements above, I suggest playing with seasonal ARIMA to get a feel for the intricacies involved in smoothing, de-seasoning, de-trending, de-noiseing, and forecasting.
LSTM
I don't know enough about LSTM to add much here. I will add that red flags tend to be raised when someone begins at data science exercise with deep learning. I suggest learning as much as you can using ARIMA and then applying some of your ARIMA expertise to help you learn LSTM. Neural networks can be a very powerful tool, but they:
- can take a long time to run,
- often require more data to train than other models, and
- have lots of input parameters to tune.
Cross validation and comparing models:
Time series are fun in that all training data can usually be turned into supervised learning training sets. Once can simply take a time series and roll back time. That is... pick a point in time and pretend that you don't have any additional data, then produce a forecast and see how well you did. You can march through the time series doing this $n$ times in order to get an assessment of the performance of your model and to compare models while taking the necessary precautions to prevent overfitting.
Hope this helps and good luck!
From Data Science Stack Exchange: asked by ahajib, answered by AN6U5 (CC BY-SA 3.0)
How does IPv6 subnetting work and how does it differ from IPv4 subnetting?Networking
The first thing that should be mentioned about IPv6 subnetting is that a different mode of thought is called for. In IPv4 you usually think about how many addresses you have available and how you can allocate enough of them to each end user. In IPv6 you usually think about how many
/64-subnets you have available and how you can allocate them to end users. You almost never worry about how many IP addresses will be used in a given subnet. Except for some special cases like point to point links, each subnet just simply has far more addresses available than it will ever require, so instead you worry only about allocating subnets, not hosts inside them.IPv6 subnets are usually
/64because that is required in order for SLAAC (stateless address auto-configuration) to work. Even where SLAAC is not in use, there may be other reasons to use/64. For example, there might be some end user devices out there that just assume/64, or else routing subnets narrower than/64might be inefficient on some routers because the router implementer has optimized the case of/64or wider routes in order to save routing table memory.Why is it recommended to use
/127for point to point links?For the specific case of point-to-point links,
/127is recommended instead of/64in order to avoid a vulnerability where packets addressed to any one of the quadrillions of unused addresses on the subnet cause unwanted neighbour solicitation requests and table entries that could drown a router. Such misaddressed packets may be malicious or accidental. But even if you actually configure a point-to-point link as/127, some people advocate assigning a whole/64anyway just to be consistent.Why would virtual machines be provisioned with subnets narrower than
/64?I don't know specifically why virtual machines would be provisioned with subnets narrower than
/64. Perhaps because a hosting provider assumed that a server was like an end-user and required only a single/64subnet, not anticipating that the server would actually be a collection of VMs requiring an internal routing topology? It could be done also simply as a matter of making the addressing plan easier to memorize: the host getsPREFIX::/64, then each VM getsPREFIX:0:NNNN::/96where NNNN is unique to the VM and the VM can allocatePREFIX:0:NNNN:XXXX:YYYYas it pleases.Can I map directly from IPv4 subnets to IPv6 subnets? For instance, does an IPv4
/24correspond directly to an IPv6/56or/120?From a low-level perspective of how addressing and routing works, the prefix length has the same meaning in IPv6 and IPv4. On that level, you can make an analogy such as "an IPv4
/16uses half the bits for the network address and half the bits for the host address, that's like a/64in IPv6". But this comparison is not really apt. Strong conventions have emerged in IPv6 which make the divisions of network sizes look somewhat more like the old world of classful networks in IPv4. To be sure, IPv6 didn't reintroduce classful addressing in which the most significant few bits of the address force a particular netmask, but what IPv6 does have is certain [de facto/conventional] standard network sizes:Read the rest at the sourceFrom Server Fault: asked by Michael Hampton, answered by Celada (CC BY-SA 4.0)
How do I modify a string in place?Python
You can’t, because strings are immutable. In most situations, you should simply construct a new string from the various parts you want to assemble it from. However, if you need an object with the ability to modify in-place Unicode data, try using an
io.StringIOobject or thearraymodule:>>> import io >>> s = "Hello, world" >>> sio = io.StringIO(s) >>> sio.getvalue() 'Hello, world' >>> sio.seek(7) 7 >>> sio.write("there!") 6 >>> sio.getvalue() 'Hello, there!' >>> import array >>> a = array.array('w', s) >>> print(a) array('w', 'Hello, world') >>> a[0] = 'y' >>> print(a) array('w', 'yello, world') >>> a.tounicode() 'yello, world'From Python Frequently Asked Questions (PSF License Version 2)
Why did you leave your last job?Behavioural
The employer may ask you questions about leaving your last job.
If you've been out of work for a long time, explain why. Talk about the positive things you've done while away from work. For example, networking, retraining, volunteering or keeping fit.
If you:
- left by choice: be positive about why you want a new job and describe why their company suits you better
- got made redundant: explain the situation, be positive and describe how you've responded since
- were fired for misconduct or poor performance: explain why your standards dropped, what you've learned and how you've improved since the experience
From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Senior Data ScientistMubi, London, hybridToday
- AI Inference EngineerBaseten, Remote, LondonYesterday
- Staff Machine Learning EngineerDeliveroo, London, hybridYesterday
- Data ScientistFaculty, Remote, London2 days ago
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)
