In order to be able to obtain the best possible parameters, it will be necessary to identify the most preponderant parameters and which correspond to the rules most activated during the operation of the ANFIS. For this we can use classic methods such as least squares or heuristic methods such as GA, PSO, firefly ...
For more details and information about this subject i suggest you to see links and attached files on topic.