I have a dataset with a variable weight of evidence(woe) that includes Inf/-inf. I used linear regression, however it could not be trained, giving error
Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : NA/NaN/Inf in 'y'
I am searching for a model that can train with Inf and predict woe values for test data. If it is not possible, is there another solution for Inf, like cleaning or mutation?