Machine learning entanglement freedom