Philosophy-informed Machine Learning