MISCLASIFICATION COST. Matrix confusion

Dear all,

I would like how can I introduce to modify the confusion matrix when I use the CostSensitiveClassifier. There is anyway to optimize the cost in an automatic way?

Thank in advance for your time and attention,

marta