Before revision: We introduce  a path-dependent geometric framework which generalizes the HJM modeling approach to a wide variety of other asset classes.
After revision: We introduce an unsupervised and non-anticipative machine learning algorithm which is able to detect and remove arbitrage from a path-dependent geometric framework which generalizes the HJM modeling approach to a wide variety of other asset classes.