Multi-Agent-Based Collaborative Machine Learning in Distributed Resource Environments