Suppose I want to fit a linear model to non-linear rational features. Something like RationalTransformer instead of SplineTransformer in Scikit-Learn, that uses a basis of rational functions. The domain of my raw features before being transformed are (theoretically) unbounded non-negative numbers, such as "time since X happened", "total time spent on the website", or "bid in an auction".
Where would you put the poles? Why?
Note, I'm not aiming on fitting one rational curve. I'm aiming at a component I can use in a pipeline that transformes features before model fitting, such as MinMaxScaler or SplineTransformer in scikit-learn.
Update
Comments asked for explanation about sklearn. So sklearn pipelines consist of a sequence of "transformer" classes that manipulate the data in a (possibly) data dependent way, followed by an "estimator" that is in practice a model being trained that provides predictions. During the "fit" stage, each component estimates some parameters from the data. For example, a scaling component may estimate mean and standard deviation. The SplineTransformer class is one such transformers, that estimates the spline's knots from the data, such as empirical quantiles, or uniformly distributed knots between minimum and maximum observed value of each feature. But since it doesn't know which model is going to be fit, it cannot depend on the actual model (Ridge / Linear Regression / Logistic Regression / etc...)