How do I have access to them. How should the code look like. I have asked the question here: Access to brain script through other script · Issue #1720 · Unity-Technologies/ml-agents · GitHub
So this would help for understanding the question.
Maybe you did it but:
- Check the brain assigment in editor.
- Check if the wanted ??? for GetComponent exists on the brain object.