Applications of the extension theory in machine learning field